git-2.53.0-1.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/gitk:10:5: error[SC1035]: You need a space after the [ and before the ].
Error: SHELLCHECK_WARNING: [#def2]
/usr/bin/gitk:10:5: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/bin/gitk:10:5: error[SC1073]: Couldn't parse this test expression. Fix to allow more checks.
Error: SHELLCHECK_WARNING (CWE-398): [#def4]
/usr/bin/gitk:10:12: error[SC1072]: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.
Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/usr/libexec/git-core/git-difftool--helper:8:1: warning[SC2034]: TOOL_MODE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-456): [#def6]
/usr/libexec/git-core/git-difftool--helper:8:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/libexec/git-core/git-difftool--helper:86:2: warning[SC2034]: LOCAL appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/libexec/git-core/git-difftool--helper:87:2: warning[SC2034]: REMOTE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/libexec/git-core/git-filter-branch:100:1: warning[SC2034]: USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/libexec/git-core/git-filter-branch:108:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-456): [#def11]
/usr/libexec/git-core/git-filter-branch:121:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-480): [#def12]
/usr/libexec/git-core/git-filter-branch:368:10: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-156): [#def13]
/usr/libexec/git-core/git-filter-branch:498:28: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def14]
/usr/libexec/git-core/git-filter-branch:527:12: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-477): [#def15]
/usr/libexec/git-core/git-filter-branch:551:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-569): [#def16]
/usr/libexec/git-core/git-filter-branch:558:37: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def17]
/usr/libexec/git-core/git-filter-branch:558:44: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-252): [#def18]
/usr/libexec/git-core/git-filter-branch:656:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-561): [#def19]
/usr/libexec/git-core/git-gui:10:2: warning[SC2093]: Remove "exec " if script should continue after this command.
Error: SHELLCHECK_WARNING (CWE-456): [#def20]
/usr/libexec/git-core/git-gui:12:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-569): [#def21]
/usr/libexec/git-core/git-gui:12:13: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def22]
/usr/libexec/git-core/git-gui:12:31: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-456): [#def23]
/usr/libexec/git-core/git-gui:13:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-398): [#def24]
/usr/libexec/git-core/git-gui:13:33: error[SC1036]: '(' is invalid here. Did you forget to escape it?
Error: SHELLCHECK_WARNING (CWE-398): [#def25]
/usr/libexec/git-core/git-gui:13:33: error[SC1088]: Parsing stopped here. Invalid use of parentheses?
Error: SHELLCHECK_WARNING: [#def26]
/usr/libexec/git-core/git-gui--askpass:14:1: error[SC1049]: Did you forget the 'then' for this 'if'?
Error: SHELLCHECK_WARNING (CWE-398): [#def27]
/usr/libexec/git-core/git-gui--askpass:14:1: error[SC1073]: Couldn't parse this if expression. Fix to allow more checks.
Error: SHELLCHECK_WARNING: [#def28]
/usr/libexec/git-core/git-gui--askpass:14:5: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-569): [#def29]
/usr/libexec/git-core/git-gui--askpass:14:14: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def30]
/usr/libexec/git-core/git-gui--askpass:14:16: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING: [#def31]
/usr/libexec/git-core/git-gui--askpass:16:3: error[SC1050]: Expected 'then'.
Error: SHELLCHECK_WARNING (CWE-398): [#def32]
/usr/libexec/git-core/git-gui--askpass:16:8: error[SC1072]: Unexpected . Fix any mentioned problems and try again.
Error: SHELLCHECK_WARNING: [#def33]
/usr/libexec/git-core/git-gui--askyesno:15:5: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-569): [#def34]
/usr/libexec/git-core/git-gui--askyesno:15:13: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def35]
/usr/libexec/git-core/git-gui--askyesno:15:15: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING: [#def36]
/usr/libexec/git-core/git-gui--askyesno:20:1: error[SC1049]: Did you forget the 'then' for this 'if'?
Error: SHELLCHECK_WARNING (CWE-398): [#def37]
/usr/libexec/git-core/git-gui--askyesno:20:1: error[SC1073]: Couldn't parse this if expression. Fix to allow more checks.
Error: SHELLCHECK_WARNING: [#def38]
/usr/libexec/git-core/git-gui--askyesno:20:5: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-569): [#def39]
/usr/libexec/git-core/git-gui--askyesno:20:14: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def40]
/usr/libexec/git-core/git-gui--askyesno:20:16: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING: [#def41]
/usr/libexec/git-core/git-gui--askyesno:23:3: error[SC1050]: Expected 'then'.
Error: SHELLCHECK_WARNING (CWE-398): [#def42]
/usr/libexec/git-core/git-gui--askyesno:23:8: error[SC1072]: Unexpected . Fix any mentioned problems and try again.
Error: SHELLCHECK_WARNING (CWE-563): [#def43]
/usr/libexec/git-core/git-instaweb:7:1: warning[SC2034]: OPTIONS_KEEPDASHDASH appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def44]
/usr/libexec/git-core/git-instaweb:8:1: warning[SC2034]: OPTIONS_STUCKLONG appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def45]
/usr/libexec/git-core/git-instaweb:9:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def46]
/usr/libexec/git-core/git-instaweb:23:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def47]
/usr/libexec/git-core/git-instaweb:146:34: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-457): [#def48]
/usr/libexec/git-core/git-instaweb:562:27: warning[SC2154]: fd is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def49]
/usr/libexec/git-core/git-instaweb:562:62: warning[SC2154]: fh is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-480): [#def50]
/usr/libexec/git-core/git-merge-octopus:14:7: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def51]
/usr/libexec/git-core/git-merge-octopus:14:13: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def52]
/usr/libexec/git-core/git-merge-octopus:14:22: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-569): [#def53]
/usr/libexec/git-core/git-merge-octopus:66:21: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def54]
/usr/libexec/git-core/git-merge-octopus:66:42: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-457): [#def55]
/usr/libexec/git-core/git-merge-octopus:67:21: warning[SC2154]: pretty_name is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-569): [#def56]
/usr/libexec/git-core/git-merge-octopus:70:22: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def57]
/usr/libexec/git-core/git-merge-octopus:70:53: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/usr/libexec/git-core/git-merge-one-file:25:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def59]
/usr/libexec/git-core/git-merge-one-file:123:26: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-480): [#def60]
/usr/libexec/git-core/git-merge-resolve:19:7: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def61]
/usr/libexec/git-core/git-merge-resolve:19:13: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def62]
/usr/libexec/git-core/git-merge-resolve:19:22: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-563): [#def63]
/usr/libexec/git-core/git-merge-resolve:53:4: warning[SC2034]: result_tree appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def64]
/usr/libexec/git-core/git-mergetool:12:1: warning[SC2034]: USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def65]
/usr/libexec/git-core/git-mergetool:13:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def66]
/usr/libexec/git-core/git-mergetool:14:1: warning[SC2034]: NONGIT_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def67]
/usr/libexec/git-core/git-mergetool:15:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-569): [#def68]
/usr/libexec/git-core/git-mergetool:238:3: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-480): [#def69]
/usr/libexec/git-core/git-mergetool:293:12: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def70]
/usr/libexec/git-core/git-mergetool:293:24: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-563): [#def71]
/usr/libexec/git-core/git-mergetool:462:4: warning[SC2034]: TOOL_MODE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def72]
/usr/libexec/git-core/git-mergetool:484:4: warning[SC2034]: GIT_MERGETOOL_GUI appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def73]
/usr/libexec/git-core/git-mergetool:540:10: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def74]
/usr/libexec/git-core/git-quiltimport:2:1: warning[SC2034]: OPTIONS_KEEPDASHDASH appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def75]
/usr/libexec/git-core/git-quiltimport:3:1: warning[SC2034]: OPTIONS_STUCKLONG appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def76]
/usr/libexec/git-core/git-quiltimport:4:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def77]
/usr/libexec/git-core/git-quiltimport:13:1: warning[SC2034]: SUBDIRECTORY_ON appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def78]
/usr/libexec/git-core/git-request-pull:7:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def79]
/usr/libexec/git-core/git-request-pull:8:1: warning[SC2034]: OPTIONS_KEEPDASHDASH appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def80]
/usr/libexec/git-core/git-request-pull:9:1: warning[SC2034]: OPTIONS_STUCKLONG appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def81]
/usr/libexec/git-core/git-request-pull:10:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def82]
/usr/libexec/git-core/git-request-pull:72:29: warning[SC2154]: headref is referenced but not assigned (did you mean 'headrev'?).
Error: SHELLCHECK_WARNING (CWE-456): [#def83]
/usr/libexec/git-core/git-request-pull:121:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-156): [#def84]
/usr/libexec/git-core/git-request-pull:121:11: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def85]
/usr/libexec/git-core/git-request-pull:159:9: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def86]
/usr/libexec/git-core/git-submodule:8:1: warning[SC2034]: USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def87]
/usr/libexec/git-core/git-submodule:20:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def88]
/usr/libexec/git-core/git-submodule:21:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-685): [#def89]
/usr/libexec/git-core/git-subtree:279:1: warning[SC2120]: cache_setup references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def90]
/usr/libexec/git-core/git-subtree:317:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def91]
/usr/libexec/git-core/git-subtree:413:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def92]
/usr/libexec/git-core/git-subtree:461:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def93]
/usr/libexec/git-core/git-subtree:472:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def94]
/usr/libexec/git-core/git-subtree:639:13: warning[SC2034]: mode appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-685): [#def95]
/usr/libexec/git-core/git-subtree:769:1: warning[SC2120]: ensure_clean references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def96]
/usr/libexec/git-core/git-subtree:827:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def97]
/usr/libexec/git-core/git-subtree:828:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def98]
/usr/libexec/git-core/git-subtree:843:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def99]
/usr/libexec/git-core/git-subtree:996:2: warning[SC2034]: unrevs appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def100]
/usr/libexec/git-core/git-web--browse:19:1: warning[SC2034]: USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def101]
/usr/libexec/git-core/git-web--browse:23:1: warning[SC2034]: NONGIT_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-140): [#def102]
/usr/share/doc/git/contrib/completion/git-completion.bash:388:13: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def103]
/usr/share/doc/git/contrib/completion/git-completion.bash:401:14: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-569): [#def104]
/usr/share/doc/git/contrib/completion/git-completion.bash:476:10: error[SC2296]: Parameter expansions can't start with (. Double check syntax.
Error: SHELLCHECK_WARNING (CWE-569): [#def105]
/usr/share/doc/git/contrib/completion/git-completion.bash:476:15: error[SC2296]: Parameter expansions can't start with (. Double check syntax.
Error: SHELLCHECK_WARNING (CWE-156): [#def106]
/usr/share/doc/git/contrib/completion/git-completion.bash:478:8: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-140): [#def107]
/usr/share/doc/git/contrib/completion/git-completion.bash:573:13: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING: [#def108]
/usr/share/doc/git/contrib/completion/git-completion.bash:929:9: warning[SC2194]: This word is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING (CWE-571): [#def109]
/usr/share/doc/git/contrib/completion/git-completion.bash:932:10: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING: [#def110]
/usr/share/doc/git/contrib/completion/git-completion.bash:939:9: warning[SC2194]: This word is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING (CWE-480): [#def111]
/usr/share/doc/git/contrib/completion/git-completion.bash:974:15: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def112]
/usr/share/doc/git/contrib/completion/git-completion.bash:974:21: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def113]
/usr/share/doc/git/contrib/completion/git-completion.bash:974:26: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-563): [#def114]
/usr/share/doc/git/contrib/completion/git-completion.bash:1042:16: warning[SC2034]: hash appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-480): [#def115]
/usr/share/doc/git/contrib/completion/git-completion.bash:1282:25: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-569): [#def116]
/usr/share/doc/git/contrib/completion/git-completion.bash:1306:4: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-480): [#def117]
/usr/share/doc/git/contrib/completion/git-completion.bash:1406:15: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-571): [#def118]
/usr/share/doc/git/contrib/completion/git-completion.bash:1595:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-477): [#def119]
/usr/share/doc/git/contrib/completion/git-completion.bash:1660:30: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-571): [#def120]
/usr/share/doc/git/contrib/completion/git-completion.bash:1740:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-156): [#def121]
/usr/share/doc/git/contrib/completion/git-completion.bash:2397:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-571): [#def122]
/usr/share/doc/git/contrib/completion/git-completion.bash:2409:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def123]
/usr/share/doc/git/contrib/completion/git-completion.bash:2692:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-480): [#def124]
/usr/share/doc/git/contrib/completion/git-completion.bash:2743:34: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-571): [#def125]
/usr/share/doc/git/contrib/completion/git-completion.bash:3080:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def126]
/usr/share/doc/git/contrib/completion/git-completion.bash:3147:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-670): [#def127]
/usr/share/doc/git/contrib/completion/git-completion.bash:3308:11: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def128]
/usr/share/doc/git/contrib/completion/git-completion.bash:3404:14: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-571): [#def129]
/usr/share/doc/git/contrib/completion/git-completion.bash:3438:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def130]
/usr/share/doc/git/contrib/completion/git-completion.bash:3469:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def131]
/usr/share/doc/git/contrib/completion/git-completion.bash:3517:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def132]
/usr/share/doc/git/contrib/completion/git-completion.bash:3569:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def133]
/usr/share/doc/git/contrib/completion/git-completion.bash:3940:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-758): [#def134]
/usr/share/doc/git/contrib/completion/git-prompt.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: SHELLCHECK_WARNING (CWE-563): [#def135]
/usr/share/doc/git/contrib/completion/git-prompt.sh:159:48: warning[SC2034]: n appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def136]
/usr/share/doc/git/contrib/completion/git-prompt.sh:161:12: warning[SC2154]: __git_LF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-571): [#def137]
/usr/share/doc/git/contrib/completion/git-prompt.sh:164:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def138]
/usr/share/doc/git/contrib/completion/git-prompt.sh:207:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-457): [#def139]
/usr/share/doc/git/contrib/completion/git-prompt.sh:317:47: warning[SC2154]: __git_ESC is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def140]
/usr/share/doc/git/contrib/completion/git-prompt.sh:359:22: warning[SC2154]: __git_CRLF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-569): [#def141]
/usr/share/doc/git/contrib/completion/git-prompt.sh:575:6: warning[SC2221]: This pattern always overrides a later one on line 575.
Error: SHELLCHECK_WARNING (CWE-569): [#def142]
/usr/share/doc/git/contrib/completion/git-prompt.sh:575:10: warning[SC2222]: This pattern never matches because of a previous pattern on line 575.
Error: SHELLCHECK_WARNING (CWE-569): [#def143]
/usr/share/doc/git/contrib/coverage-diff.sh:48:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-477): [#def144]
/usr/share/doc/git/contrib/fast-import/git-import.sh:7:14: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def145]
/usr/share/doc/git/contrib/fast-import/git-import.sh:15:21: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-156): [#def146]
/usr/share/doc/git/contrib/fast-import/git-import.sh:33:13: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def147]
/usr/share/doc/git/contrib/rerere-train.sh:14:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-252): [#def148]
/usr/share/doc/git/contrib/update-unicode/update_unicode.sh:8:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-758): [#def149]
/usr/share/git-core/contrib/completion/git-prompt.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: SHELLCHECK_WARNING (CWE-563): [#def150]
/usr/share/git-core/contrib/completion/git-prompt.sh:159:48: warning[SC2034]: n appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def151]
/usr/share/git-core/contrib/completion/git-prompt.sh:161:12: warning[SC2154]: __git_LF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-571): [#def152]
/usr/share/git-core/contrib/completion/git-prompt.sh:164:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def153]
/usr/share/git-core/contrib/completion/git-prompt.sh:207:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-457): [#def154]
/usr/share/git-core/contrib/completion/git-prompt.sh:317:47: warning[SC2154]: __git_ESC is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def155]
/usr/share/git-core/contrib/completion/git-prompt.sh:359:22: warning[SC2154]: __git_CRLF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-569): [#def156]
/usr/share/git-core/contrib/completion/git-prompt.sh:575:6: warning[SC2221]: This pattern always overrides a later one on line 575.
Error: SHELLCHECK_WARNING (CWE-569): [#def157]
/usr/share/git-core/contrib/completion/git-prompt.sh:575:10: warning[SC2222]: This pattern never matches because of a previous pattern on line 575.
Error: SHELLCHECK_WARNING (CWE-156): [#def158]
/usr/share/git-core/templates/hooks/pre-commit.sample:31:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def159]
/usr/share/git-core/templates/hooks/pre-push.sample:22:1: warning[SC2034]: remote appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def160]
/usr/share/git-core/templates/hooks/pre-push.sample:23:1: warning[SC2034]: url appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def161]
/usr/share/git-core/templates/hooks/pre-push.sample:27:32: warning[SC2034]: remote_ref appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def162]
/usr/share/git-core/templates/hooks/pre-rebase.sample:19:1: warning[SC2034]: basebranch appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-569): [#def163]
/usr/share/git-core/templates/hooks/pre-rebase.sample:91:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-457): [#def164]
/usr/share/git-core/templates/hooks/pre-receive.sample:15:9: warning[SC2154]: value is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-563): [#def165]
/usr/share/git-core/templates/hooks/prepare-commit-msg.sample:24:1: warning[SC2034]: COMMIT_SOURCE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def166]
/usr/share/git-core/templates/hooks/prepare-commit-msg.sample:25:1: warning[SC2034]: SHA1 appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-477): [#def167]
/usr/share/git-core/templates/hooks/update.sample:40:20: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def168]
/usr/share/git-core/templates/hooks/update.sample:40:36: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def169]
/usr/share/git-core/templates/hooks/update.sample:98:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: COMPILER_WARNING (CWE-704): [#def170]
git-2.53.0/add-patch.c: scope_hint: In function ‘parse_hunk_header’
git-2.53.0/add-patch.c:345:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def171]
git-2.53.0/add-patch.c:345:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def172]
git-2.53.0/add-patch.c:369:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def173]
git-2.53.0/add-patch.c:369:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def174]
git-2.53.0/apply.c: scope_hint: In function ‘preimage_oid_in_gitlink_patch’
git-2.53.0/apply.c:4154:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def175]
git-2.53.0/apply.c:4154:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING: [#def176]
git-2.53.0/archive-tar.c:509:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.53.0/archive-tar.c:479:12: branch_false: following ‘false’ branch...
git-2.53.0/archive-tar.c:482:14: branch_false: ...to here
git-2.53.0/archive-tar.c:482:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.53.0/archive-tar.c:497:9: branch_false: ...to here
git-2.53.0/archive-tar.c:506:12: branch_false: following ‘false’ branch...
git-2.53.0/archive-tar.c:508:9: branch_false: ...to here
git-2.53.0/archive-tar.c:508:9: release_resource: closed here
git-2.53.0/archive-tar.c:509:13: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def177]
git-2.53.0/archive-tar.c:515:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘1’
git-2.53.0/archive-tar.c:471:12: enter_function: entry to ‘write_tar_filter_archive’
git-2.53.0/archive-tar.c:479:12: branch_false: following ‘false’ branch...
git-2.53.0/archive-tar.c:482:14: branch_false: ...to here
git-2.53.0/archive-tar.c:482:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.53.0/archive-tar.c:497:9: branch_false: ...to here
git-2.53.0/archive-tar.c:506:12: branch_false: following ‘false’ branch...
git-2.53.0/archive-tar.c:508:9: branch_false: ...to here
git-2.53.0/archive-tar.c:508:9: release_resource: first ‘close’ here
git-2.53.0/archive-tar.c:509:12: branch_false: following ‘false’ branch...
git-2.53.0/archive-tar.c:511:9: branch_false: ...to here
git-2.53.0/archive-tar.c:513:13: call_function: calling ‘write_tar_archive’ from ‘write_tar_filter_archive’
git-2.53.0/archive-tar.c:513:13: return_function: returning to ‘write_tar_filter_archive’ from ‘write_tar_archive’
git-2.53.0/archive-tar.c:515:9: danger: second ‘close’ here; first ‘close’ was at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
git-2.53.0/blame.c:2843:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
git-2.53.0/blame.c:2765:6: enter_function: entry to ‘setup_scoreboard’
git-2.53.0/blame.c:2778:12: branch_false: following ‘false’ branch...
git-2.53.0/blame.c:2781:12: branch_false: ...to here
git-2.53.0/blame.c:2782:29: call_function: calling ‘find_single_final’ from ‘setup_scoreboard’
git-2.53.0/blame.c:2782:29: return_function: returning to ‘setup_scoreboard’ from ‘find_single_final’
git-2.53.0/blame.c:2789:12: branch_true: following ‘true’ branch...
git-2.53.0/blame.c:2792:12: branch_false: following ‘false’ branch...
git-2.53.0/blame.c:2836:12: branch_false: following ‘false’ branch...
git-2.53.0/blame.c:2839:13: branch_false: ...to here
git-2.53.0/blame.c:2839:12: branch_true: following ‘true’ branch...
git-2.53.0/blame.c:2843:24: danger: dereference of NULL ‘c’
Error: COMPILER_WARNING (CWE-704): [#def179]
git-2.53.0/bloom.c: scope_hint: In function ‘get_or_compute_bloom_filter’
git-2.53.0/bloom.c:515:52: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def180]
git-2.53.0/bloom.c:515:52: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def181]
git-2.53.0/branch.c:168:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/branch.c:652:6: enter_function: entry to ‘dwim_and_setup_tracking’
git-2.53.0/branch.c:657:9: call_function: calling ‘dwim_branch_start’ from ‘dwim_and_setup_tracking’
git-2.53.0/branch.c:657:9: return_function: returning to ‘dwim_and_setup_tracking’ from ‘dwim_branch_start’
git-2.53.0/branch.c:658:9: call_function: calling ‘setup_tracking’ from ‘dwim_and_setup_tracking’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
git-2.53.0/builtin/archive.c:16:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(output_file, 577, 438), 1)’
git-2.53.0/builtin/archive.c:15:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/archive.c:16:21: branch_true: ...to here
git-2.53.0/builtin/archive.c:16:21: acquire_resource: opened here
git-2.53.0/builtin/archive.c:16:20: danger: ‘dup2(xopen(output_file, 577, 438), 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def183]
git-2.53.0/builtin/cat-file.c:152:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
git-2.53.0/builtin/cat-file.c:1020:5: enter_function: entry to ‘cmd_cat_file’
git-2.53.0/builtin/cat-file.c:1168:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/cat-file.c:1182:13: branch_false: ...to here
git-2.53.0/builtin/cat-file.c:1182:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/cat-file.c:1183:20: branch_true: ...to here
git-2.53.0/builtin/cat-file.c:1191:25: branch_false: following ‘false’ branch...
git-2.53.0/builtin/cat-file.c:1194:25: branch_false: ...to here
git-2.53.0/builtin/cat-file.c:1194:25: branch_true: following ‘true’ branch...
git-2.53.0/builtin/cat-file.c:1195:25: branch_true: ...to here
git-2.53.0/builtin/cat-file.c:1209:15: call_function: calling ‘cat_one_file’ from ‘cmd_cat_file’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def184]
git-2.53.0/builtin/clone.c:1107:26: warning[-Wanalyzer-null-argument]: use of NULL ‘work_tree’ where non-null expected
git-2.53.0/builtin/clone.c:864:5: enter_function: entry to ‘cmd_clone’
git-2.53.0/builtin/clone.c:898:21: release_memory: ‘real_git_dir’ is NULL
git-2.53.0/builtin/clone.c:899:21: release_memory: ‘real_git_dir’ is NULL
git-2.53.0/builtin/clone.c:908:21: release_memory: ‘real_git_dir’ is NULL
git-2.53.0/builtin/clone.c:997:28: release_memory: ‘real_git_dir’ is NULL
git-2.53.0/builtin/clone.c:1009:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/clone.c:1013:12: branch_false: ...to here
git-2.53.0/builtin/clone.c:1013:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/clone.c:1017:13: branch_false: ...to here
git-2.53.0/builtin/clone.c:1046:16: call_function: calling ‘get_repo_path’ from ‘cmd_clone’
git-2.53.0/builtin/clone.c:1046:16: return_function: returning to ‘cmd_clone’ from ‘get_repo_path’
git-2.53.0/builtin/clone.c:1047:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/clone.c:1050:20: branch_false: ...to here
git-2.53.0/builtin/clone.c:1050:19: branch_true: following ‘true’ branch...
git-2.53.0/builtin/clone.c:1052:32: branch_true: ...to here
git-2.53.0/builtin/clone.c:1091:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/clone.c:1092:27: branch_true: ...to here
git-2.53.0/builtin/clone.c:1101:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/clone.c:1102:21: branch_true: ...to here
git-2.53.0/builtin/clone.c:1102:20: branch_false: following ‘false’ branch...
git-2.53.0/builtin/clone.c:1105:20: branch_false: ...to here
git-2.53.0/builtin/clone.c:1105:20: branch_false: following ‘false’ branch...
git-2.53.0/builtin/clone.c:1107:26: branch_false: ...to here
git-2.53.0/builtin/clone.c:1107:26: danger: argument 1 (‘work_tree’) NULL where non-null expected
Error: COMPILER_WARNING (CWE-704): [#def185]
git-2.53.0/builtin/commit.c: scope_hint: In function ‘prepare_to_commit’
git-2.53.0/builtin/commit.c:820:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def186]
git-2.53.0/builtin/commit.c:820:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def187]
git-2.53.0/builtin/config.c: scope_hint: In function ‘get_urlmatch’
git-2.53.0/builtin/config.c:723:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def188]
git-2.53.0/builtin/config.c:723:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def189]
git-2.53.0/builtin/gc.c:2887:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘cron_list’ where non-null expected
git-2.53.0/builtin/gc.c:2844:12: enter_function: entry to ‘crontab_update_schedule’
git-2.53.0/builtin/gc.c:2854:22: call_function: calling ‘get_random_minute’ from ‘crontab_update_schedule’
git-2.53.0/builtin/gc.c:2854:22: return_function: returning to ‘crontab_update_schedule’ from ‘get_random_minute’
git-2.53.0/builtin/gc.c:2856:9: call_function: calling ‘get_schedule_cmd’ from ‘crontab_update_schedule’
git-2.53.0/builtin/gc.c:2856:9: return_function: returning to ‘crontab_update_schedule’ from ‘get_schedule_cmd’
git-2.53.0/builtin/gc.c:2863:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/gc.c:2869:9: branch_false: ...to here
git-2.53.0/builtin/gc.c:2872:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/gc.c:2876:19: branch_false: ...to here
git-2.53.0/builtin/gc.c:2877:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/gc.c:2886:21: branch_false: ...to here
git-2.53.0/builtin/gc.c:2886:21: acquire_memory: this call could return NULL
git-2.53.0/builtin/gc.c:2887:9: danger: argument 1 (‘cron_list’) from [(20)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/19) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def190]
git-2.53.0/builtin/interpret-trailers.c:105:13: warning[-Wanalyzer-null-argument]: use of NULL ‘file’ where non-null expected
git-2.53.0/builtin/interpret-trailers.c:194:5: enter_function: entry to ‘cmd_interpret_trailers’
git-2.53.0/builtin/interpret-trailers.c:235:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/interpret-trailers.c:240:21: branch_false: ...to here
git-2.53.0/builtin/interpret-trailers.c:240:20: branch_false: following ‘false’ branch...
git-2.53.0/builtin/interpret-trailers.c:242:17: branch_false: ...to here
git-2.53.0/builtin/interpret-trailers.c:242:17: call_function: calling ‘interpret_trailers’ from ‘cmd_interpret_trailers’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def191]
git-2.53.0/builtin/ls-files.c:339:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
git-2.53.0/builtin/ls-files.c:576:5: enter_function: entry to ‘cmd_ls_files’
git-2.53.0/builtin/ls-files.c:667:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/ls-files.c:670:16: branch_false: ...to here
git-2.53.0/builtin/ls-files.c:730:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/ls-files.c:734:26: branch_true: ...to here
git-2.53.0/builtin/ls-files.c:734:26: call_function: calling ‘get_common_prefix_len’ from ‘cmd_ls_files’
git-2.53.0/builtin/ls-files.c:734:26: return_function: returning to ‘cmd_ls_files’ from ‘get_common_prefix_len’
git-2.53.0/builtin/ls-files.c:736:9: call_function: calling ‘prune_index’ from ‘cmd_ls_files’
git-2.53.0/builtin/ls-files.c:736:9: return_function: returning to ‘cmd_ls_files’ from ‘prune_index’
git-2.53.0/builtin/ls-files.c:763:9: call_function: calling ‘show_files’ from ‘cmd_ls_files’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
git-2.53.0/builtin/name-rev.c:225:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/builtin/name-rev.c:557:5: enter_function: entry to ‘cmd_name_rev’
git-2.53.0/builtin/name-rev.c:609:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/name-rev.c:613:12: branch_false: ...to here
git-2.53.0/builtin/name-rev.c:659:9: call_function: calling ‘name_tips’ from ‘cmd_name_rev’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def193]
git-2.53.0/builtin/pull.c:630:22: warning[-Wanalyzer-null-argument]: use of NULL ‘remote’ where non-null expected
git-2.53.0/builtin/pull.c:856:5: enter_function: entry to ‘cmd_pull’
git-2.53.0/builtin/pull.c:1034:9: call_function: inlined call to ‘parse_repo_refspecs’ from ‘cmd_pull’
git-2.53.0/builtin/pull.c:1036:13: branch_false: ...to here
git-2.53.0/builtin/pull.c:1058:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/pull.c:1061:13: branch_false: ...to here
git-2.53.0/builtin/pull.c:1061:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/pull.c:1064:13: branch_false: ...to here
git-2.53.0/builtin/pull.c:1067:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/pull.c:1068:21: branch_true: ...to here
git-2.53.0/builtin/pull.c:1079:21: call_function: calling ‘get_rebase_fork_point’ from ‘cmd_pull’
Error: COMPILER_WARNING (CWE-704): [#def194]
git-2.53.0/builtin/receive-pack.c: scope_hint: In function ‘proc_receive_ref_append’
git-2.53.0/builtin/receive-pack.c:400:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def195]
git-2.53.0/builtin/receive-pack.c:400:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def196]
git-2.53.0/builtin/receive-pack.c: scope_hint: In function ‘read_proc_receive_report’
git-2.53.0/builtin/receive-pack.c:1009:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def197]
git-2.53.0/builtin/receive-pack.c:1009:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def198]
git-2.53.0/builtin/receive-pack.c:1039:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def199]
git-2.53.0/builtin/receive-pack.c:1039:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def200]
git-2.53.0/builtin/receive-pack.c:1062:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def201]
git-2.53.0/builtin/receive-pack.c:1062:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def202]
git-2.53.0/builtin/remote.c: scope_hint: In function ‘config_read_branches’
git-2.53.0/builtin/remote.c:335:31: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def203]
git-2.53.0/builtin/remote.c:335:31: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def204]
git-2.53.0/builtin/remote.c:342:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def205]
git-2.53.0/builtin/remote.c:342:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def206]
git-2.53.0/builtin/rev-parse.c: scope_hint: In function ‘try_difference’
git-2.53.0/builtin/rev-parse.c:278:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def207]
git-2.53.0/builtin/rev-parse.c:278:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def208]
git-2.53.0/builtin/rev-parse.c: scope_hint: In function ‘try_parent_shorthands’
git-2.53.0/builtin/rev-parse.c:339:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def209]
git-2.53.0/builtin/rev-parse.c:339:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def210]
git-2.53.0/builtin/rev-parse.c:343:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def211]
git-2.53.0/builtin/rev-parse.c:343:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def212]
git-2.53.0/builtin/rev-parse.c:347:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def213]
git-2.53.0/builtin/rev-parse.c:347:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def214]
git-2.53.0/builtin/shortlog.c: scope_hint: In function ‘insert_one_record’
git-2.53.0/builtin/shortlog.c:79:37: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def215]
git-2.53.0/builtin/shortlog.c:79:37: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-617): [#def216]
git-2.53.0/builtin/show-index.c:59:25: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
git-2.53.0/builtin/show-index.c:54:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/show-index.c:56:13: branch_false: ...to here
git-2.53.0/builtin/show-index.c:56:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/show-index.c:57:27: branch_true: ...to here
git-2.53.0/builtin/show-index.c:58:20: branch_true: following ‘true’ branch...
git-2.53.0/builtin/show-index.c:59:25: branch_true: ...to here
git-2.53.0/builtin/show-index.c:59:25: danger: treating ‘die’ as an assertion failure handler due to ‘__attribute__((__noreturn__))’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def217]
git-2.53.0/builtin/sparse-checkout.c:1152:17: warning[-Wanalyzer-null-argument]: use of NULL ‘xfopen(check_rules_opts.rules_file, "r")’ where non-null expected
git-2.53.0/builtin/sparse-checkout.c:1121:12: enter_function: entry to ‘sparse_checkout_check_rules’
git-2.53.0/builtin/sparse-checkout.c:1149:12: branch_true: following ‘true’ branch...
git-2.53.0/builtin/sparse-checkout.c:1150:22: branch_true: ...to here
git-2.53.0/builtin/sparse-checkout.c:1151:17: call_function: calling ‘add_patterns_from_input’ from ‘sparse_checkout_check_rules’
git-2.53.0/builtin/sparse-checkout.c:1151:17: return_function: returning to ‘sparse_checkout_check_rules’ from ‘add_patterns_from_input’
git-2.53.0/builtin/sparse-checkout.c:1152:17: danger: argument 1 (‘xfopen(check_rules_opts.rules_file, "r")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING: [#def218]
git-2.53.0/column.c:395:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.53.0/column.c:370:12: branch_false: following ‘false’ branch...
git-2.53.0/column.c:373:9: branch_false: ...to here
git-2.53.0/column.c:390:12: branch_false: following ‘false’ branch...
git-2.53.0/column.c:393:18: branch_false: ...to here
git-2.53.0/column.c:394:9: release_resource: closed here
git-2.53.0/column.c:395:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def219]
git-2.53.0/column.c:408:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.53.0/column.c:402:12: branch_false: following ‘false’ branch...
git-2.53.0/column.c:405:9: branch_false: ...to here
git-2.53.0/column.c:406:9: release_resource: closed here
git-2.53.0/column.c:408:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def220]
git-2.53.0/combine-diff.c:1073:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*elem.path, 0)’
git-2.53.0/combine-diff.c:1282:6: enter_function: entry to ‘show_combined_diff’
git-2.53.0/combine-diff.c:1288:12: branch_false: following ‘false’ branch...
git-2.53.0/combine-diff.c:1292:18: branch_false: ...to here
git-2.53.0/combine-diff.c:1292:17: branch_true: following ‘true’ branch...
git-2.53.0/combine-diff.c:1293:17: branch_true: ...to here
git-2.53.0/combine-diff.c:1293:17: call_function: calling ‘show_patch_diff’ from ‘show_combined_diff’
Error: COMPILER_WARNING (CWE-704): [#def221]
git-2.53.0/convert.c: scope_hint: In function ‘ident_to_git’
git-2.53.0/convert.c:1138:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def222]
git-2.53.0/convert.c:1138:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def223]
git-2.53.0/convert.c:1147:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def224]
git-2.53.0/convert.c:1147:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def225]
git-2.53.0/convert.c: scope_hint: In function ‘ident_to_worktree’
git-2.53.0/convert.c:1188:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def226]
git-2.53.0/convert.c:1188:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def227]
git-2.53.0/convert.c:1211:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def228]
git-2.53.0/convert.c:1211:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def229]
git-2.53.0/convert.c:1222:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def230]
git-2.53.0/convert.c:1222:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def231]
git-2.53.0/diagnose.c:210:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’
git-2.53.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.53.0/diagnose.c:203:21: branch_false: ...to here
git-2.53.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.53.0/diagnose.c:209:29: branch_false: ...to here
git-2.53.0/diagnose.c:210:13: acquire_resource: opened here
git-2.53.0/diagnose.c:210:12: danger: ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
git-2.53.0/diff-lib.c:322:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.53.0/diff-lib.c:442:13: enter_function: entry to ‘do_oneway_diff’
git-2.53.0/diff-lib.c:453:12: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:454:13: branch_true: ...to here
git-2.53.0/diff-lib.c:453:13: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:453:13: branch_true: ...to here
git-2.53.0/diff-lib.c:462:18: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:462:18: branch_true: ...to here
git-2.53.0/diff-lib.c:467:12: branch_false: following ‘false’ branch...
git-2.53.0/diff-lib.c:479:12: branch_false: ...to here
git-2.53.0/diff-lib.c:479:12: branch_true: following ‘true’ branch (when ‘tree’ is NULL)...
git-2.53.0/diff-lib.c:480:17: branch_true: ...to here
git-2.53.0/diff-lib.c:480:17: call_function: calling ‘show_new_file’ from ‘do_oneway_diff’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def233]
git-2.53.0/diff-lib.c:599:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
git-2.53.0/diff-lib.c:586:20: branch_false: following ‘false’ branch...
git-2.53.0/diff-lib.c:584:43: branch_false: ...to here
git-2.53.0/diff-lib.c:595:12: branch_false: following ‘false’ branch...
git-2.53.0/diff-lib.c:595:12: branch_false: ...to here
git-2.53.0/diff-lib.c:598:21: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:599:72: branch_true: ...to here
git-2.53.0/diff-lib.c:598:21: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:599:72: branch_true: ...to here
git-2.53.0/diff-lib.c:598:21: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:599:72: branch_true: ...to here
git-2.53.0/diff-lib.c:599:17: danger: out-of-bounds write from byte 16 till byte 23 but ‘mb_child’ ends at byte 16
Error: COMPILER_WARNING (CWE-704): [#def234]
git-2.53.0/diff.c: scope_hint: In function ‘fn_out_diff_words_write_helper’
git-2.53.0/diff.c:1964:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def235]
git-2.53.0/diff.c:1964:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def236]
git-2.53.0/diff.c: scope_hint: In function ‘gather_dirstat’
git-2.53.0/diff.c:3058:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def237]
git-2.53.0/diff.c:3058:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def238]
git-2.53.0/diffcore-rename.c: scope_hint: In function ‘get_dirname’
git-2.53.0/diffcore-rename.c:382:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def239]
git-2.53.0/diffcore-rename.c:382:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def240]
git-2.53.0/dir.c: scope_hint: In function ‘remove_path’
git-2.53.0/dir.c:3524:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def241]
git-2.53.0/dir.c:3524:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-416): [#def242]
git-2.53.0/dir.c:3556:46: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘pl’
git-2.53.0/dir.c:3543:6: enter_function: entry to ‘dir_clear’
git-2.53.0/dir.c:3551:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.53.0/dir.c:3551:28: branch_true: ...to here
git-2.53.0/dir.c:3555:28: branch_false: following ‘false’ branch (when ‘i != 1’)...
git-2.53.0/dir.c:3557:25: branch_false: ...to here
git-2.53.0/dir.c:3557:25: call_function: calling ‘clear_pattern_list’ from ‘dir_clear’
git-2.53.0/dir.c:3557:25: return_function: returning to ‘dir_clear’ from ‘clear_pattern_list’
git-2.53.0/dir.c:3553:29: branch_false: following ‘false’ branch...
git-2.53.0/dir.c:3559:22: branch_false: ...to here
git-2.53.0/dir.c:3559:17: release_memory: freed here
git-2.53.0/dir.c:3551:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.53.0/dir.c:3551:28: branch_true: ...to here
git-2.53.0/dir.c:3553:29: branch_true: following ‘true’ branch...
git-2.53.0/dir.c:3554:31: branch_true: ...to here
git-2.53.0/dir.c:3555:28: branch_true: following ‘true’ branch (when ‘i == 1’)...
git-2.53.0/dir.c:3556:46: branch_true: ...to here
git-2.53.0/dir.c:3556:46: danger: use after ‘free’ of ‘pl’; freed at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def243]
git-2.53.0/dir.c:3559:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*dir.internal.exclude_list_group[i].pl’
git-2.53.0/dir.c:3543:6: enter_function: entry to ‘dir_clear’
git-2.53.0/dir.c:3551:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.53.0/dir.c:3551:28: branch_true: ...to here
git-2.53.0/dir.c:3555:28: branch_false: following ‘false’ branch (when ‘i != 1’)...
git-2.53.0/dir.c:3557:25: branch_false: ...to here
git-2.53.0/dir.c:3557:25: call_function: calling ‘clear_pattern_list’ from ‘dir_clear’
git-2.53.0/dir.c:3557:25: return_function: returning to ‘dir_clear’ from ‘clear_pattern_list’
git-2.53.0/dir.c:3553:29: branch_false: following ‘false’ branch...
git-2.53.0/dir.c:3559:22: branch_false: ...to here
git-2.53.0/dir.c:3559:17: release_memory: first ‘free’ here
git-2.53.0/dir.c:3551:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.53.0/dir.c:3551:28: branch_true: ...to here
git-2.53.0/dir.c:3553:29: branch_false: following ‘false’ branch...
git-2.53.0/dir.c:3559:22: branch_false: ...to here
git-2.53.0/dir.c:3559:17: danger: second ‘free’ here; first ‘free’ was at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
git-2.53.0/dir.c:3960:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ucd’
git-2.53.0/dir.c:3990:12: enter_function: entry to ‘invalidate_one_component’
git-2.53.0/dir.c:3996:12: branch_true: following ‘true’ branch (when ‘rest’ is non-NULL)...
git-2.53.0/dir.c:3997:37: branch_true: ...to here
git-2.53.0/dir.c:3999:25: call_function: calling ‘lookup_untracked’ from ‘invalidate_one_component’
git-2.53.0/dir.c:3999:25: return_function: returning to ‘invalidate_one_component’ from ‘lookup_untracked’
git-2.53.0/dir.c:4001:25: call_function: calling ‘invalidate_one_component’ from ‘invalidate_one_component’
Error: COMPILER_WARNING (CWE-704): [#def245]
git-2.53.0/fmt-merge-msg.c: scope_hint: In function ‘record_person_from_buf’
git-2.53.0/fmt-merge-msg.c:254:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def246]
git-2.53.0/fmt-merge-msg.c:254:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def247]
git-2.53.0/fsck.c: scope_hint: In function ‘fsck_tag_standalone’
git-2.53.0/fsck.c:1058:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def248]
git-2.53.0/fsck.c:1058:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def249]
git-2.53.0/fsck.c:1074:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def250]
git-2.53.0/fsck.c:1074:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def251]
git-2.53.0/fsck.c:1100:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def252]
git-2.53.0/fsck.c:1100:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def253]
git-2.53.0/fsck.c:1108:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def254]
git-2.53.0/fsck.c:1108:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def255]
git-2.53.0/kwset.c:37: included_from: Included from here.
git-2.53.0/git-compat-util.h: scope_hint: In function ‘git_find_last_dir_sep’
git-2.53.0/git-compat-util.h:344:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def256]
git-2.53.0/git-compat-util.h:344:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def257]
git-2.53.0/git-compat-util.h:731:17: warning[-Wanalyzer-null-argument]: use of NULL ‘dst’ where non-null expected
git-2.53.0/split-index.c:163:6: enter_function: entry to ‘merge_base_index’
git-2.53.0/split-index.c:173:9: release_memory: ‘*istate.cache’ is NULL
git-2.53.0/split-index.c:175:9: branch_false: following ‘false’ branch...
git-2.53.0/split-index.c:176:9: branch_false: ...to here
git-2.53.0/split-index.c:176:9: release_memory: ‘*istate.cache’ is NULL
git-2.53.0/split-index.c:176:9: call_function: inlined call to ‘copy_array’ from ‘merge_base_index’
Error: COMPILER_WARNING (CWE-704): [#def258]
git-2.53.0/gpg-interface.c: scope_hint: In function ‘parse_ssh_output’
git-2.53.0/gpg-interface.c:444:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def259]
git-2.53.0/gpg-interface.c:444:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def260]
git-2.53.0/graph.c:1115:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parents’
git-2.53.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.53.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
git-2.53.0/graph.c:1148:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.53.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: COMPILER_WARNING (CWE-704): [#def262]
git-2.53.0/help.c: scope_hint: In function ‘append_similar_ref’
git-2.53.0/help.c:860:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def263]
git-2.53.0/help.c:860:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def264]
git-2.53.0/http-push.c: scope_hint: In function ‘cmd_main’
git-2.53.0/http-push.c:1771:38: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def265]
git-2.53.0/http-push.c:1771:38: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def266]
git-2.53.0/http.c: scope_hint: In function ‘redact_sensitive_header’
git-2.53.0/http.c:755:43: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def267]
git-2.53.0/http.c:755:43: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
git-2.53.0/line-log.c:160:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rb’
git-2.53.0/line-log.c:1314:5: enter_function: entry to ‘line_log_filter’
git-2.53.0/line-log.c:1320:16: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
git-2.53.0/line-log.c:1322:17: branch_true: ...to here
git-2.53.0/line-log.c:1323:21: call_function: calling ‘line_log_process_ranges_arbitrary_commit’ from ‘line_log_filter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
git-2.53.0/line-log.c:172:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_range’
git-2.53.0/line-log.c:1314:5: enter_function: entry to ‘line_log_filter’
git-2.53.0/line-log.c:1320:16: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
git-2.53.0/line-log.c:1322:17: branch_true: ...to here
git-2.53.0/line-log.c:1323:21: call_function: calling ‘line_log_process_ranges_arbitrary_commit’ from ‘line_log_filter’
Error: COMPILER_WARNING (CWE-704): [#def270]
git-2.53.0/mailinfo.c: scope_hint: In function ‘output_header_lines’
git-2.53.0/mailinfo.c:1144:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def271]
git-2.53.0/mailinfo.c:1144:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def272]
git-2.53.0/mem-pool.c: scope_hint: In function ‘mem_pool_strndup’
git-2.53.0/mem-pool.c:172:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def273]
git-2.53.0/mem-pool.c:172:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def274]
git-2.53.0/merge-ort.c: scope_hint: In function ‘apply_directory_rename_modifications’
git-2.53.0/merge-ort.c:2734:36: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def275]
git-2.53.0/midx.c:225:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘git_open_cloexec(midx_name, 0)’
git-2.53.0/midx.c:860:5: enter_function: entry to ‘verify_midx_file’
git-2.53.0/midx.c:866:38: call_function: calling ‘load_multi_pack_index’ from ‘verify_midx_file’
Error: COMPILER_WARNING (CWE-704): [#def276]
git-2.53.0/object-name.c: scope_hint: In function ‘repo_interpret_branch_name’
git-2.53.0/object-name.c:1780:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def277]
git-2.53.0/object-name.c:1780:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
git-2.53.0/pack-bitmap.c:526:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*bitmap_git.base’
git-2.53.0/pack-bitmap.c:3057:5: enter_function: entry to ‘test_bitmap_pseudo_merge_objects’
git-2.53.0/pack-bitmap.c:3063:22: call_function: calling ‘prepare_bitmap_git’ from ‘test_bitmap_pseudo_merge_objects’
Error: COMPILER_WARNING (CWE-704): [#def279]
git-2.53.0/pack-revindex.c: scope_hint: In function ‘midx_key_to_pack_pos’
git-2.53.0/pack-revindex.c:564:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def280]
git-2.53.0/pack-revindex.c:564:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING: [#def281]
git-2.53.0/pager.c:55:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.53.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.53.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.53.0/pager.c:52:9: branch_false: ...to here
git-2.53.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.53.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.53.0/pager.c:55:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def282]
git-2.53.0/pager.c:59:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
git-2.53.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.53.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.53.0/pager.c:52:9: branch_false: ...to here
git-2.53.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.53.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.53.0/pager.c:58:12: branch_true: following ‘true’ branch...
git-2.53.0/pager.c:59:17: branch_true: ...to here
git-2.53.0/pager.c:59:17: danger: ‘2’ could be invalid
Error: COMPILER_WARNING (CWE-704): [#def283]
git-2.53.0/pager.c: scope_hint: In function ‘setup_pager_env’
git-2.53.0/pager.c:121:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def284]
git-2.53.0/pager.c:121:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def285]
git-2.53.0/pkt-line.c: scope_hint: In function ‘find_packfile_uri_path’
git-2.53.0/pkt-line.c:401:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def286]
git-2.53.0/pkt-line.c:401:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def287]
git-2.53.0/pseudo-merge.c: scope_hint: In function ‘find_pseudo_merge’
git-2.53.0/pseudo-merge.c:647:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def288]
git-2.53.0/pseudo-merge.c:647:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def289]
git-2.53.0/range-diff.c: scope_hint: In function ‘read_patches’
git-2.53.0/range-diff.c:109:50: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def290]
git-2.53.0/range-diff.c:109:50: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
git-2.53.0/read-cache.h:42:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.53.0/diff-lib.c:517:12: enter_function: entry to ‘oneway_diff’
git-2.53.0/diff-lib.c:530:12: branch_true: following ‘true’ branch...
git-2.53.0/diff-lib.c:530:12: branch_true: ...to here
git-2.53.0/diff-lib.c:533:13: branch_false: following ‘false’ branch (when ‘idx’ is NULL)...
git-2.53.0/diff-lib.c:533:13: branch_false: ...to here
git-2.53.0/diff-lib.c:533:13: call_function: calling ‘ce_path_match’ from ‘oneway_diff’
Error: COMPILER_WARNING (CWE-704): [#def292]
git-2.53.0/ref-filter.c: scope_hint: In function ‘rstrip_ref_components’
git-2.53.0/ref-filter.c:2237:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def293]
git-2.53.0/ref-filter.c:2237:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def294]
git-2.53.0/reflog-walk.c: scope_hint: In function ‘add_reflog_for_walk’
git-2.53.0/reflog-walk.c:160:29: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def295]
git-2.53.0/reflog-walk.c:160:29: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-126): [#def296]
git-2.53.0/refs.c:2661:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
git-2.53.0/refs.c:2793:28: enter_function: entry to ‘refs_verify_refname_available’
git-2.53.0/refs.c:2807:16: call_function: calling ‘refs_verify_refnames_available’ from ‘refs_verify_refname_available’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def297]
git-2.53.0/refs.c:2662:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
git-2.53.0/refs.c:2793:28: enter_function: entry to ‘refs_verify_refname_available’
git-2.53.0/refs.c:2807:16: call_function: calling ‘refs_verify_refnames_available’ from ‘refs_verify_refname_available’
Error: COMPILER_WARNING (CWE-704): [#def298]
git-2.53.0/refs/files-backend.c: scope_hint: In function ‘show_one_reflog_ent’
git-2.53.0/refs/files-backend.c:2192:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def299]
git-2.53.0/refs/files-backend.c:2192:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def300]
git-2.53.0/refs/packed-backend.c:184:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/refs/packed-backend.c:2060:12: enter_function: entry to ‘packed_fsck’
git-2.53.0/refs/packed-backend.c:2064:41: call_function: calling ‘packed_downcast’ from ‘packed_fsck’
git-2.53.0/refs/packed-backend.c:2064:41: return_function: returning to ‘packed_fsck’ from ‘packed_downcast’
git-2.53.0/refs/packed-backend.c:2072:12: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2075:13: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2079:12: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2098:20: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2098:19: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2101:21: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2101:19: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2110:14: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2110:14: call_function: calling ‘allocate_snapshot_buffer’ from ‘packed_fsck’
git-2.53.0/refs/packed-backend.c:2110:14: return_function: returning to ‘packed_fsck’ from ‘allocate_snapshot_buffer’
git-2.53.0/refs/packed-backend.c:2110:12: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2120:39: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2121:13: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2125:1: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2126:12: branch_true: following ‘true’ branch...
git-2.53.0/refs/packed-backend.c:2127:17: branch_true: ...to here
git-2.53.0/refs/packed-backend.c:2128:9: call_function: calling ‘clear_snapshot_buffer’ from ‘packed_fsck’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def301]
git-2.53.0/refs/packed-backend.c:533:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/refs/packed-backend.c:2060:12: enter_function: entry to ‘packed_fsck’
git-2.53.0/refs/packed-backend.c:2064:41: call_function: calling ‘packed_downcast’ from ‘packed_fsck’
git-2.53.0/refs/packed-backend.c:2064:41: return_function: returning to ‘packed_fsck’ from ‘packed_downcast’
git-2.53.0/refs/packed-backend.c:2072:12: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2075:13: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2079:12: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2098:20: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2098:19: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2101:21: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2101:19: branch_false: following ‘false’ branch...
git-2.53.0/refs/packed-backend.c:2110:14: branch_false: ...to here
git-2.53.0/refs/packed-backend.c:2110:14: call_function: calling ‘allocate_snapshot_buffer’ from ‘packed_fsck’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def302]
git-2.53.0/reftable/basics.c:238:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
git-2.53.0/reftable/basics.c:198:5: enter_function: entry to ‘parse_names’
git-2.53.0/reftable/basics.c:207:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.53.0/reftable/basics.c:208:30: branch_true: ...to here
git-2.53.0/reftable/basics.c:209:20: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
git-2.53.0/reftable/basics.c:212:27: branch_false: ...to here
git-2.53.0/reftable/basics.c:212:27: branch_true: following ‘true’ branch (when ‘end > next’)...
git-2.53.0/reftable/basics.c:213:25: branch_true: ...to here
git-2.53.0/reftable/basics.c:218:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.53.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.53.0/reftable/basics.c:219:28: branch_true: following ‘true’ branch...
git-2.53.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.53.0/reftable/basics.c:219:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.53.0/reftable/basics.c:219:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.53.0/reftable/basics.c:219:29: branch_false: following ‘false’ branch...
git-2.53.0/reftable/basics.c:225:30: branch_false: ...to here
git-2.53.0/reftable/basics.c:225:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.53.0/reftable/basics.c:225:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.53.0/reftable/basics.c:226:28: branch_false: following ‘false’ branch...
git-2.53.0/reftable/basics.c:231:17: branch_false: ...to here
git-2.53.0/reftable/basics.c:234:12: branch_false: following ‘false’ branch...
git-2.53.0/reftable/basics.c:238:14: branch_false: ...to here
git-2.53.0/reftable/basics.c:238:9: danger: out-of-bounds write from byte 8 till byte 15 but region ends at byte 8
Error: GCC_ANALYZER_WARNING (CWE-416): [#def303]
git-2.53.0/reftable/basics.c:244:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘names’
git-2.53.0/reftable/basics.c:198:5: enter_function: entry to ‘parse_names’
git-2.53.0/reftable/basics.c:207:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.53.0/reftable/basics.c:208:30: branch_true: ...to here
git-2.53.0/reftable/basics.c:209:20: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
git-2.53.0/reftable/basics.c:212:27: branch_false: ...to here
git-2.53.0/reftable/basics.c:212:27: branch_true: following ‘true’ branch (when ‘end > next’)...
git-2.53.0/reftable/basics.c:213:25: branch_true: ...to here
git-2.53.0/reftable/basics.c:218:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.53.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.53.0/reftable/basics.c:219:28: branch_true: following ‘true’ branch...
git-2.53.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.53.0/reftable/basics.c:219:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.53.0/reftable/basics.c:219:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.53.0/reftable/basics.c:219:29: branch_false: following ‘false’ branch...
git-2.53.0/reftable/basics.c:225:30: branch_false: ...to here
git-2.53.0/reftable/basics.c:225:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.53.0/reftable/basics.c:225:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.53.0/reftable/basics.c:226:28: branch_false: following ‘false’ branch...
git-2.53.0/reftable/basics.c:231:17: branch_false: ...to here
git-2.53.0/reftable/basics.c:234:12: branch_true: following ‘true’ branch...
git-2.53.0/reftable/basics.c:234:13: branch_true: ...to here
git-2.53.0/reftable/basics.c:234:13: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.53.0/reftable/basics.c:234:13: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.53.0/reftable/basics.c:234:13: branch_true: following ‘true’ branch...
git-2.53.0/reftable/basics.c:236:17: branch_true: ...to here
git-2.53.0/reftable/basics.c:243:28: branch_true: following ‘true’ branch (when ‘names_len > i’)...
git-2.53.0/reftable/basics.c:244:36: branch_true: ...to here
git-2.53.0/reftable/basics.c:244:17: danger: use after ‘free’ of ‘names + i * 8’; freed at [(61)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/60)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
git-2.53.0/reftable/stack.c:315:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
git-2.53.0/reftable/stack.c:647:5: enter_function: entry to ‘reftable_stack_reload’
git-2.53.0/reftable/stack.c:651:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def305]
git-2.53.0/reftable/stack.c:315:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_tables’
git-2.53.0/reftable/stack.c:647:5: enter_function: entry to ‘reftable_stack_reload’
git-2.53.0/reftable/stack.c:651:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def306]
git-2.53.0/reftable/stack.c:315:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘reused’
git-2.53.0/reftable/stack.c:647:5: enter_function: entry to ‘reftable_stack_reload’
git-2.53.0/reftable/stack.c:651:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def307]
git-2.53.0/remote.c:1996:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/remote.c:2054:5: enter_function: entry to ‘get_fetch_map’
git-2.53.0/remote.c:2061:12: branch_false: following ‘false’ branch...
git-2.53.0/remote.c:2064:13: branch_false: ...to here
git-2.53.0/remote.c:2064:12: branch_true: following ‘true’ branch...
git-2.53.0/remote.c:2065:27: branch_true: ...to here
git-2.53.0/remote.c:2065:27: call_function: calling ‘get_expanded_map’ from ‘get_fetch_map’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
git-2.53.0/remote.c:1996:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ret’
git-2.53.0/remote.c:1976:20: enter_function: entry to ‘get_expanded_map’
git-2.53.0/remote.c:1981:21: release_memory: ‘ret’ is NULL
git-2.53.0/remote.c:1984:33: branch_true: following ‘true’ branch (when ‘ref’ is non-NULL)...
git-2.53.0/remote.c:1985:23: branch_true: ...to here
git-2.53.0/remote.c:1987:17: call_function: calling ‘strbuf_setlen’ from ‘get_expanded_map’
git-2.53.0/remote.c:1987:17: return_function: returning to ‘get_expanded_map’ from ‘strbuf_setlen’
git-2.53.0/remote.c:1989:20: branch_false: following ‘false’ branch...
git-2.53.0/remote.c:1992:45: branch_false: ...to here
git-2.53.0/remote.c:1984:33: branch_true: following ‘true’ branch (when ‘ref’ is non-NULL)...
git-2.53.0/remote.c:1985:23: branch_true: ...to here
git-2.53.0/remote.c:1987:17: call_function: calling ‘strbuf_setlen’ from ‘get_expanded_map’
git-2.53.0/remote.c:1987:17: return_function: returning to ‘get_expanded_map’ from ‘strbuf_setlen’
git-2.53.0/remote.c:1989:20: branch_false: following ‘false’ branch...
git-2.53.0/remote.c:1992:45: branch_false: ...to here
git-2.53.0/remote.c:1991:21: branch_true: following ‘true’ branch...
git-2.53.0/remote.c:1994:43: branch_true: ...to here
git-2.53.0/remote.c:1994:43: call_function: calling ‘copy_ref’ from ‘get_expanded_map’
git-2.53.0/remote.c:1994:43: return_function: returning to ‘get_expanded_map’ from ‘copy_ref’
git-2.53.0/remote.c:1996:29: danger: dereference of NULL ‘copy_ref(ref)’
Error: COMPILER_WARNING (CWE-704): [#def309]
git-2.53.0/revision.c: scope_hint: In function ‘handle_dotdot’
git-2.53.0/revision.c:2134:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def310]
git-2.53.0/revision.c:2134:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def311]
git-2.53.0/revision.c: scope_hint: In function ‘handle_revision_arg_1’
git-2.53.0/revision.c:2178:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def312]
git-2.53.0/revision.c:2178:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def313]
git-2.53.0/revision.c:2187:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def314]
git-2.53.0/revision.c:2187:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def315]
git-2.53.0/revision.c:2193:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def316]
git-2.53.0/revision.c:2193:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def317]
git-2.53.0/run-command.c:343:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, to)’
git-2.53.0/run-command.c:1862:22: enter_function: entry to ‘start_bg_command’
git-2.53.0/run-command.c:1879:12: branch_false: following ‘false’ branch...
git-2.53.0/run-command.c:1882:14: branch_false: ...to here
git-2.53.0/run-command.c:1885:15: call_function: calling ‘start_command’ from ‘start_bg_command’
Error: COMPILER_WARNING (CWE-704): [#def318]
git-2.53.0/run-command.c: scope_hint: In function ‘trace_add_env’
git-2.53.0/run-command.c:608:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def319]
git-2.53.0/run-command.c:608:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def320]
git-2.53.0/send-pack.c: scope_hint: In function ‘receive_status’
git-2.53.0/send-pack.c:184:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def321]
git-2.53.0/send-pack.c:184:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def322]
git-2.53.0/send-pack.c:215:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def323]
git-2.53.0/send-pack.c:215:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def324]
git-2.53.0/send-pack.c:240:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def325]
git-2.53.0/send-pack.c:240:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
git-2.53.0/strbuf.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/strbuf.c:1085:6: enter_function: entry to ‘strbuf_stripspace’
git-2.53.0/strbuf.c:1092:9: call_function: calling ‘strbuf_grow’ from ‘strbuf_stripspace’
Error: COMPILER_WARNING (CWE-704): [#def327]
git-2.53.0/string-list.c: scope_hint: In function ‘split_string’
git-2.53.0/string-list.c:341:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def328]
git-2.53.0/string-list.c:341:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def329]
git-2.53.0/t/helper/test-pack-deltas.c:69:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘delta_size’
git-2.53.0/t/helper/test-pack-deltas.c:46:13: enter_function: entry to ‘write_ref_delta’
git-2.53.0/t/helper/test-pack-deltas.c:57:12: branch_false: following ‘false’ branch...
git-2.53.0/t/helper/test-pack-deltas.c:60:50: branch_false: ...to here
git-2.53.0/t/helper/test-pack-deltas.c:63:12: branch_false: following ‘false’ branch...
git-2.53.0/t/helper/test-pack-deltas.c:66:21: branch_false: ...to here
git-2.53.0/t/helper/test-pack-deltas.c:66:21: call_function: calling ‘diff_delta’ from ‘write_ref_delta’
git-2.53.0/t/helper/test-pack-deltas.c:66:21: return_function: returning to ‘write_ref_delta’ from ‘diff_delta’
git-2.53.0/t/helper/test-pack-deltas.c:69:27: danger: use of uninitialized value ‘delta_size’ here
Error: CPPCHECK_WARNING (CWE-664): [#def330]
git-2.53.0/t/unit-tests/clar/clar.c:744: error[va_list_usedBeforeStarted]: va_list 'args_copy' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def331]
git-2.53.0/t/unit-tests/clar/clar.c:745: error[va_list_usedBeforeStarted]: va_list 'args_copy' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def332]
git-2.53.0/t/unit-tests/clar/clar.c:747: error[va_list_usedBeforeStarted]: va_list 'args_copy' used before va_start() was called.
Error: COMPILER_WARNING (CWE-704): [#def333]
git-2.53.0/t/unit-tests/clar/clar.c:1054: included_from: Included from here.
git-2.53.0/t/unit-tests/clar/clar/print.h: scope_hint: In function ‘print_escaped’
git-2.53.0/t/unit-tests/clar/clar/print.h:132:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def334]
git-2.53.0/t/unit-tests/clar/clar/print.h:132:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def335]
git-2.53.0/t/unit-tests/u-reftable-basics.c:200:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.53.0/t/unit-tests/u-reftable-basics.c:192:6: enter_function: entry to ‘test_reftable_basics__alloc_grow’
git-2.53.0/t/unit-tests/u-reftable-basics.c:197:9: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_basics__alloc_grow’
git-2.53.0/t/unit-tests/u-reftable-basics.c:197:9: return_function: returning to ‘test_reftable_basics__alloc_grow’ from ‘reftable_alloc_grow’
git-2.53.0/t/unit-tests/u-reftable-basics.c:197:9: branch_true: following ‘true’ branch...
git-2.53.0/t/unit-tests/u-reftable-basics.c:197:9: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-basics.c:200:9: danger: dereference of NULL ‘reftable_alloc_grow(0, 1, 4, &alloc)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def336]
git-2.53.0/t/unit-tests/u-reftable-basics.c:227:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arr’
git-2.53.0/t/unit-tests/u-reftable-basics.c:219:6: enter_function: entry to ‘test_reftable_basics__alloc_grow_or_null’
git-2.53.0/t/unit-tests/u-reftable-basics.c:224:9: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_basics__alloc_grow_or_null’
git-2.53.0/t/unit-tests/u-reftable-basics.c:224:9: return_function: returning to ‘test_reftable_basics__alloc_grow_or_null’ from ‘reftable_alloc_grow’
git-2.53.0/t/unit-tests/u-reftable-basics.c:224:9: branch_true: following ‘true’ branch...
git-2.53.0/t/unit-tests/u-reftable-basics.c:224:9: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-basics.c:227:9: danger: dereference of NULL ‘arr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def337]
git-2.53.0/t/unit-tests/u-reftable-merged.c:183:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
git-2.53.0/t/unit-tests/u-reftable-merged.c:105:6: enter_function: entry to ‘test_reftable_merged__refs’
git-2.53.0/t/unit-tests/u-reftable-merged.c:160:17: call_function: calling ‘merged_table_from_records’ from ‘test_reftable_merged__refs’
git-2.53.0/t/unit-tests/u-reftable-merged.c:160:17: return_function: returning to ‘test_reftable_merged__refs’ from ‘merged_table_from_records’
git-2.53.0/t/unit-tests/u-reftable-merged.c:176:16: branch_true: following ‘true’ branch (when ‘len != 100’)...
git-2.53.0/t/unit-tests/u-reftable-merged.c:177:44: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:179:20: branch_false: following ‘false’ branch...
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: branch_false: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: following ‘true’ branch...
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_merged__refs’
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: return_function: returning to ‘test_reftable_merged__refs’ from ‘reftable_alloc_grow’
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: following ‘true’ branch...
git-2.53.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:183:17: danger: dereference of NULL ‘out + len * 96’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
git-2.53.0/t/unit-tests/u-reftable-merged.c:456:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
git-2.53.0/t/unit-tests/u-reftable-merged.c:373:6: enter_function: entry to ‘test_reftable_merged__logs’
git-2.53.0/t/unit-tests/u-reftable-merged.c:432:44: call_function: calling ‘merged_table_from_log_records’ from ‘test_reftable_merged__logs’
git-2.53.0/t/unit-tests/u-reftable-merged.c:432:44: return_function: returning to ‘test_reftable_merged__logs’ from ‘merged_table_from_log_records’
git-2.53.0/t/unit-tests/u-reftable-merged.c:449:16: branch_true: following ‘true’ branch (when ‘len != 100’)...
git-2.53.0/t/unit-tests/u-reftable-merged.c:450:44: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:452:20: branch_false: following ‘false’ branch...
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: branch_false: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: following ‘true’ branch...
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_merged__logs’
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: return_function: returning to ‘test_reftable_merged__logs’ from ‘reftable_alloc_grow’
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: following ‘true’ branch...
git-2.53.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: ...to here
git-2.53.0/t/unit-tests/u-reftable-merged.c:456:17: danger: dereference of NULL ‘out + len * 144’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
git-2.53.0/tempfile.c:273:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(*tempfile.fd, mode)’
git-2.53.0/tempfile.c:268:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.53.0/tempfile.c:270:13: branch_false: ...to here
git-2.53.0/tempfile.c:270:12: branch_false: following ‘false’ branch...
git-2.53.0/tempfile.c:273:31: branch_false: ...to here
git-2.53.0/tempfile.c:273:24: acquire_memory: allocated here
git-2.53.0/tempfile.c:273:9: danger: ‘fdopen(*tempfile.fd, mode)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
git-2.53.0/tempfile.c:332:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*tempfile.filename.buf, 513)’
git-2.53.0/tempfile.c:328:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.53.0/tempfile.c:330:18: branch_false: ...to here
git-2.53.0/tempfile.c:330:12: branch_false: following ‘false’ branch...
git-2.53.0/tempfile.c:332:29: branch_false: ...to here
git-2.53.0/tempfile.c:332:24: acquire_resource: opened here
git-2.53.0/tempfile.c:332:9: danger: ‘open(*tempfile.filename.buf, 513)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-704): [#def341]
git-2.53.0/transport-helper.c: scope_hint: In function ‘push_update_ref_status’
git-2.53.0/transport-helper.c:803:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def342]
git-2.53.0/transport-helper.c:803:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def343]
git-2.53.0/transport.c: scope_hint: In function ‘transport_anonymize_url’
git-2.53.0/transport.c:1663:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def344]
git-2.53.0/transport.c:1663:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def345]
git-2.53.0/transport.c:1668:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def346]
git-2.53.0/transport.c:1668:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
git-2.53.0/unpack-trees.c:2332:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.53.0/unpack-trees.c:2475:12: enter_function: entry to ‘verify_absent_1’
git-2.53.0/unpack-trees.c:2486:12: branch_false: following ‘false’ branch...
git-2.53.0/unpack-trees.c:2496:44: branch_false: ...to here
git-2.53.0/unpack-trees.c:2497:12: branch_false: following ‘false’ branch...
git-2.53.0/unpack-trees.c:2499:17: branch_false: ...to here
git-2.53.0/unpack-trees.c:2499:17: branch_true: following ‘true’ branch...
git-2.53.0/unpack-trees.c:2503:24: branch_true: ...to here
git-2.53.0/unpack-trees.c:2504:20: branch_false: following ‘false’ branch...
git-2.53.0/unpack-trees.c:2507:29: branch_false: ...to here
git-2.53.0/unpack-trees.c:2507:28: branch_false: following ‘false’ branch...
git-2.53.0/unpack-trees.c:2512:39: branch_false: ...to here
git-2.53.0/unpack-trees.c:2512:39: call_function: calling ‘check_ok_to_remove’ from ‘verify_absent_1’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def348]
git-2.53.0/utf8.c:137:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
git-2.53.0/utf8.c:804:5: enter_function: entry to ‘is_hfs_dotmailmap’
git-2.53.0/utf8.c:806:16: call_function: calling ‘is_hfs_dot_str’ from ‘is_hfs_dotmailmap’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def349]
git-2.53.0/utf8.h:46:16: warning[-Wanalyzer-null-argument]: use of NULL ‘in’ where non-null expected
git-2.53.0/builtin/fast-export.c:1313:5: enter_function: entry to ‘cmd_fast_export’
git-2.53.0/builtin/fast-export.c:1372:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
git-2.53.0/builtin/fast-export.c:1376:9: branch_false: ...to here
git-2.53.0/builtin/fast-export.c:1386:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/fast-export.c:1389:13: branch_false: ...to here
git-2.53.0/builtin/fast-export.c:1404:13: branch_false: following ‘false’ branch...
git-2.53.0/builtin/fast-export.c:1406:12: branch_false: ...to here
git-2.53.0/builtin/fast-export.c:1407:17: call_function: calling ‘import_marks’ from ‘cmd_fast_export’
git-2.53.0/builtin/fast-export.c:1407:17: return_function: returning to ‘cmd_fast_export’ from ‘import_marks’
git-2.53.0/builtin/fast-export.c:1417:12: branch_false: following ‘false’ branch...
git-2.53.0/builtin/fast-export.c:1420:9: branch_false: ...to here
git-2.53.0/builtin/fast-export.c:1426:16: branch_true: following ‘true’ branch...
git-2.53.0/builtin/fast-export.c:1427:17: branch_true: ...to here
git-2.53.0/builtin/fast-export.c:1427:17: call_function: calling ‘handle_commit’ from ‘cmd_fast_export’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def350]
git-2.53.0/worktree.c:948:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(gitdir.buf, 0)’
git-2.53.0/worktree.c:927:12: branch_false: following ‘false’ branch...
git-2.53.0/worktree.c:932:9: branch_false: ...to here
git-2.53.0/worktree.c:933:12: branch_false: following ‘false’ branch...
git-2.53.0/worktree.c:936:18: branch_false: ...to here
git-2.53.0/worktree.c:936:12: branch_false: following ‘false’ branch...
git-2.53.0/worktree.c:941:19: branch_false: ...to here
git-2.53.0/worktree.c:941:14: acquire_resource: opened here
git-2.53.0/worktree.c:942:12: branch_false: following ‘false’ branch...
git-2.53.0/worktree.c:948:23: branch_false: ...to here
git-2.53.0/worktree.c:948:23: danger: ‘open(gitdir.buf, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-704): [#def351]
git-2.53.0/wrapper.c: scope_hint: In function ‘xstrndup’
git-2.53.0/wrapper.c:118:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def352]
git-2.53.0/wrapper.c:118:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Scan Properties
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-101.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | git-2.53.0-1.fc44 |
| store-results-to | /tmp/tmpot1cy0jh/git-2.53.0-1.fc44.tar.xz |
| time-created | 2026-06-01 12:14:25 |
| time-finished | 2026-06-01 12:20:40 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpot1cy0jh/git-2.53.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpot1cy0jh/git-2.53.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |