git-2.54.0-1.fc45
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:32: 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:282:1: warning[SC2120]: cache_setup references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def90]
/usr/libexec/git-core/git-subtree:320:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def91]
/usr/libexec/git-core/git-subtree:416:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def92]
/usr/libexec/git-core/git-subtree:464:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def93]
/usr/libexec/git-core/git-subtree:475:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def94]
/usr/libexec/git-core/git-subtree:642: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:772:1: warning[SC2120]: ensure_clean references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def96]
/usr/libexec/git-core/git-subtree:794:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def97]
/usr/libexec/git-core/git-subtree:795:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def98]
/usr/libexec/git-core/git-subtree:810:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def99]
/usr/libexec/git-core/git-subtree:969: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:3523: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:3575: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:3946: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-477): [#def143]
/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): [#def144]
/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): [#def145]
/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): [#def146]
/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-758): [#def147]
/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): [#def148]
/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): [#def149]
/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): [#def150]
/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): [#def151]
/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): [#def152]
/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): [#def153]
/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): [#def154]
/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): [#def155]
/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): [#def156]
/usr/share/git-core/templates/hooks/pre-commit.sample:31:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def157]
/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): [#def158]
/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): [#def159]
/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): [#def160]
/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): [#def161]
/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): [#def162]
/usr/share/git-core/templates/hooks/pre-receive.sample:15:9: warning[SC2154]: value is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-563): [#def163]
/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): [#def164]
/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): [#def165]
/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): [#def166]
/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): [#def167]
/usr/share/git-core/templates/hooks/update.sample:98:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: GCC_ANALYZER_WARNING: [#def168]
git-2.54.0/archive-tar.c:509:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.54.0/archive-tar.c:479:12: branch_false: following ‘false’ branch...
git-2.54.0/archive-tar.c:482:14: branch_false: ...to here
git-2.54.0/archive-tar.c:482:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.54.0/archive-tar.c:497:9: branch_false: ...to here
git-2.54.0/archive-tar.c:506:12: branch_false: following ‘false’ branch...
git-2.54.0/archive-tar.c:508:9: branch_false: ...to here
git-2.54.0/archive-tar.c:508:9: release_resource: closed here
git-2.54.0/archive-tar.c:509:13: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def169]
git-2.54.0/archive-tar.c:515:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘1’
git-2.54.0/archive-tar.c:471:12: enter_function: entry to ‘write_tar_filter_archive’
git-2.54.0/archive-tar.c:479:12: branch_false: following ‘false’ branch...
git-2.54.0/archive-tar.c:482:14: branch_false: ...to here
git-2.54.0/archive-tar.c:482:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.54.0/archive-tar.c:497:9: branch_false: ...to here
git-2.54.0/archive-tar.c:506:12: branch_false: following ‘false’ branch...
git-2.54.0/archive-tar.c:508:9: branch_false: ...to here
git-2.54.0/archive-tar.c:508:9: release_resource: first ‘close’ here
git-2.54.0/archive-tar.c:509:12: branch_false: following ‘false’ branch...
git-2.54.0/archive-tar.c:511:9: branch_false: ...to here
git-2.54.0/archive-tar.c:513:13: call_function: calling ‘write_tar_archive’ from ‘write_tar_filter_archive’
git-2.54.0/archive-tar.c:513:13: return_function: returning to ‘write_tar_filter_archive’ from ‘write_tar_archive’
git-2.54.0/archive-tar.c:515:9: danger: second ‘close’ here; first ‘close’ was at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
git-2.54.0/blame.c:2843:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
git-2.54.0/blame.c:2765:6: enter_function: entry to ‘setup_scoreboard’
git-2.54.0/blame.c:2778:12: branch_false: following ‘false’ branch...
git-2.54.0/blame.c:2781:12: branch_false: ...to here
git-2.54.0/blame.c:2782:29: call_function: calling ‘find_single_final’ from ‘setup_scoreboard’
git-2.54.0/blame.c:2782:29: return_function: returning to ‘setup_scoreboard’ from ‘find_single_final’
git-2.54.0/blame.c:2789:12: branch_true: following ‘true’ branch...
git-2.54.0/blame.c:2792:12: branch_false: following ‘false’ branch...
git-2.54.0/blame.c:2836:12: branch_false: following ‘false’ branch...
git-2.54.0/blame.c:2839:13: branch_false: ...to here
git-2.54.0/blame.c:2839:12: branch_true: following ‘true’ branch...
git-2.54.0/blame.c:2843:24: danger: dereference of NULL ‘c’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
git-2.54.0/branch.c:168:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/branch.c:652:6: enter_function: entry to ‘dwim_and_setup_tracking’
git-2.54.0/branch.c:657:9: call_function: calling ‘dwim_branch_start’ from ‘dwim_and_setup_tracking’
git-2.54.0/branch.c:657:9: return_function: returning to ‘dwim_and_setup_tracking’ from ‘dwim_branch_start’
git-2.54.0/branch.c:658:9: call_function: calling ‘setup_tracking’ from ‘dwim_and_setup_tracking’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
git-2.54.0/builtin/archive.c:16:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(output_file, 577, 438), 1)’
git-2.54.0/builtin/archive.c:15:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/archive.c:16:21: branch_true: ...to here
git-2.54.0/builtin/archive.c:16:21: acquire_resource: opened here
git-2.54.0/builtin/archive.c:16:20: danger: ‘dup2(xopen(output_file, 577, 438), 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def173]
git-2.54.0/builtin/cat-file.c:152:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
git-2.54.0/builtin/cat-file.c:1046:5: enter_function: entry to ‘cmd_cat_file’
git-2.54.0/builtin/cat-file.c:1194:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/cat-file.c:1208:13: branch_false: ...to here
git-2.54.0/builtin/cat-file.c:1208:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/cat-file.c:1209:20: branch_true: ...to here
git-2.54.0/builtin/cat-file.c:1217:25: branch_false: following ‘false’ branch...
git-2.54.0/builtin/cat-file.c:1220:25: branch_false: ...to here
git-2.54.0/builtin/cat-file.c:1220:25: branch_true: following ‘true’ branch...
git-2.54.0/builtin/cat-file.c:1221:25: branch_true: ...to here
git-2.54.0/builtin/cat-file.c:1235:15: call_function: calling ‘cat_one_file’ from ‘cmd_cat_file’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
git-2.54.0/builtin/clone.c:1113:26: warning[-Wanalyzer-null-argument]: use of NULL ‘work_tree’ where non-null expected
git-2.54.0/builtin/clone.c:867:5: enter_function: entry to ‘cmd_clone’
git-2.54.0/builtin/clone.c:901:21: release_memory: ‘real_git_dir’ is NULL
git-2.54.0/builtin/clone.c:902:21: release_memory: ‘real_git_dir’ is NULL
git-2.54.0/builtin/clone.c:912:21: release_memory: ‘real_git_dir’ is NULL
git-2.54.0/builtin/clone.c:1001:28: release_memory: ‘real_git_dir’ is NULL
git-2.54.0/builtin/clone.c:1015:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/clone.c:1019:12: branch_false: ...to here
git-2.54.0/builtin/clone.c:1019:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/clone.c:1023:13: branch_false: ...to here
git-2.54.0/builtin/clone.c:1052:16: call_function: calling ‘get_repo_path’ from ‘cmd_clone’
git-2.54.0/builtin/clone.c:1052:16: return_function: returning to ‘cmd_clone’ from ‘get_repo_path’
git-2.54.0/builtin/clone.c:1053:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/clone.c:1056:20: branch_false: ...to here
git-2.54.0/builtin/clone.c:1056:19: branch_true: following ‘true’ branch...
git-2.54.0/builtin/clone.c:1058:32: branch_true: ...to here
git-2.54.0/builtin/clone.c:1097:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/clone.c:1098:27: branch_true: ...to here
git-2.54.0/builtin/clone.c:1107:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/clone.c:1108:21: branch_true: ...to here
git-2.54.0/builtin/clone.c:1108:20: branch_false: following ‘false’ branch...
git-2.54.0/builtin/clone.c:1111:20: branch_false: ...to here
git-2.54.0/builtin/clone.c:1111:20: branch_false: following ‘false’ branch...
git-2.54.0/builtin/clone.c:1113:26: branch_false: ...to here
git-2.54.0/builtin/clone.c:1113:26: danger: argument 1 (‘work_tree’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def175]
git-2.54.0/builtin/gc.c:2877:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘cron_list’ where non-null expected
git-2.54.0/builtin/gc.c:2834:12: enter_function: entry to ‘crontab_update_schedule’
git-2.54.0/builtin/gc.c:2844:22: call_function: calling ‘get_random_minute’ from ‘crontab_update_schedule’
git-2.54.0/builtin/gc.c:2844:22: return_function: returning to ‘crontab_update_schedule’ from ‘get_random_minute’
git-2.54.0/builtin/gc.c:2846:9: call_function: calling ‘get_schedule_cmd’ from ‘crontab_update_schedule’
git-2.54.0/builtin/gc.c:2846:9: return_function: returning to ‘crontab_update_schedule’ from ‘get_schedule_cmd’
git-2.54.0/builtin/gc.c:2853:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/gc.c:2859:9: branch_false: ...to here
git-2.54.0/builtin/gc.c:2862:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/gc.c:2866:19: branch_false: ...to here
git-2.54.0/builtin/gc.c:2867:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/gc.c:2876:21: branch_false: ...to here
git-2.54.0/builtin/gc.c:2876:21: acquire_memory: this call could return NULL
git-2.54.0/builtin/gc.c:2877:9: danger: argument 1 (‘cron_list’) from [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
git-2.54.0/builtin/ls-files.c:339:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
git-2.54.0/builtin/ls-files.c:576:5: enter_function: entry to ‘cmd_ls_files’
git-2.54.0/builtin/ls-files.c:667:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/ls-files.c:670:16: branch_false: ...to here
git-2.54.0/builtin/ls-files.c:730:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/ls-files.c:734:26: branch_true: ...to here
git-2.54.0/builtin/ls-files.c:734:26: call_function: calling ‘get_common_prefix_len’ from ‘cmd_ls_files’
git-2.54.0/builtin/ls-files.c:734:26: return_function: returning to ‘cmd_ls_files’ from ‘get_common_prefix_len’
git-2.54.0/builtin/ls-files.c:736:9: call_function: calling ‘prune_index’ from ‘cmd_ls_files’
git-2.54.0/builtin/ls-files.c:736:9: return_function: returning to ‘cmd_ls_files’ from ‘prune_index’
git-2.54.0/builtin/ls-files.c:763:9: call_function: calling ‘show_files’ from ‘cmd_ls_files’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
git-2.54.0/builtin/name-rev.c:223:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/builtin/name-rev.c:555:5: enter_function: entry to ‘cmd_name_rev’
git-2.54.0/builtin/name-rev.c:607:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/name-rev.c:611:12: branch_false: ...to here
git-2.54.0/builtin/name-rev.c:657:9: call_function: calling ‘name_tips’ from ‘cmd_name_rev’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def178]
git-2.54.0/builtin/pull.c:630:22: warning[-Wanalyzer-null-argument]: use of NULL ‘remote’ where non-null expected
git-2.54.0/builtin/pull.c:856:5: enter_function: entry to ‘cmd_pull’
git-2.54.0/builtin/pull.c:1034:9: call_function: inlined call to ‘parse_repo_refspecs’ from ‘cmd_pull’
git-2.54.0/builtin/pull.c:1036:13: branch_false: ...to here
git-2.54.0/builtin/pull.c:1058:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/pull.c:1061:13: branch_false: ...to here
git-2.54.0/builtin/pull.c:1061:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/pull.c:1064:13: branch_false: ...to here
git-2.54.0/builtin/pull.c:1067:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/pull.c:1068:21: branch_true: ...to here
git-2.54.0/builtin/pull.c:1079:21: call_function: calling ‘get_rebase_fork_point’ from ‘cmd_pull’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def179]
git-2.54.0/builtin/sparse-checkout.c:1159:17: warning[-Wanalyzer-null-argument]: use of NULL ‘xfopen(check_rules_opts.rules_file, "r")’ where non-null expected
git-2.54.0/builtin/sparse-checkout.c:1128:12: enter_function: entry to ‘sparse_checkout_check_rules’
git-2.54.0/builtin/sparse-checkout.c:1156:12: branch_true: following ‘true’ branch...
git-2.54.0/builtin/sparse-checkout.c:1157:22: branch_true: ...to here
git-2.54.0/builtin/sparse-checkout.c:1158:17: call_function: calling ‘add_patterns_from_input’ from ‘sparse_checkout_check_rules’
git-2.54.0/builtin/sparse-checkout.c:1158:17: return_function: returning to ‘sparse_checkout_check_rules’ from ‘add_patterns_from_input’
git-2.54.0/builtin/sparse-checkout.c:1159:17: danger: argument 1 (‘xfopen(check_rules_opts.rules_file, "r")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING: [#def180]
git-2.54.0/column.c:395:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.54.0/column.c:370:12: branch_false: following ‘false’ branch...
git-2.54.0/column.c:373:9: branch_false: ...to here
git-2.54.0/column.c:390:12: branch_false: following ‘false’ branch...
git-2.54.0/column.c:393:18: branch_false: ...to here
git-2.54.0/column.c:394:9: release_resource: closed here
git-2.54.0/column.c:395:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def181]
git-2.54.0/column.c:408:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.54.0/column.c:402:12: branch_false: following ‘false’ branch...
git-2.54.0/column.c:405:9: branch_false: ...to here
git-2.54.0/column.c:406:9: release_resource: closed here
git-2.54.0/column.c:408:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
git-2.54.0/combine-diff.c:1073:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*elem.path, 0)’
git-2.54.0/combine-diff.c:1282:6: enter_function: entry to ‘show_combined_diff’
git-2.54.0/combine-diff.c:1288:12: branch_false: following ‘false’ branch...
git-2.54.0/combine-diff.c:1292:18: branch_false: ...to here
git-2.54.0/combine-diff.c:1292:17: branch_true: following ‘true’ branch...
git-2.54.0/combine-diff.c:1293:17: branch_true: ...to here
git-2.54.0/combine-diff.c:1293:17: call_function: calling ‘show_patch_diff’ from ‘show_combined_diff’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
git-2.54.0/diagnose.c:210:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’
git-2.54.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.54.0/diagnose.c:203:21: branch_false: ...to here
git-2.54.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.54.0/diagnose.c:209:29: branch_false: ...to here
git-2.54.0/diagnose.c:210:13: acquire_resource: opened here
git-2.54.0/diagnose.c:210:12: danger: ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
git-2.54.0/diff-lib.c:322:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.54.0/diff-lib.c:442:13: enter_function: entry to ‘do_oneway_diff’
git-2.54.0/diff-lib.c:453:12: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:454:13: branch_true: ...to here
git-2.54.0/diff-lib.c:453:13: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:453:13: branch_true: ...to here
git-2.54.0/diff-lib.c:462:18: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:462:18: branch_true: ...to here
git-2.54.0/diff-lib.c:467:12: branch_false: following ‘false’ branch...
git-2.54.0/diff-lib.c:479:12: branch_false: ...to here
git-2.54.0/diff-lib.c:479:12: branch_true: following ‘true’ branch (when ‘tree’ is NULL)...
git-2.54.0/diff-lib.c:480:17: branch_true: ...to here
git-2.54.0/diff-lib.c:480:17: call_function: calling ‘show_new_file’ from ‘do_oneway_diff’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def185]
git-2.54.0/diff-lib.c:599:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
git-2.54.0/diff-lib.c:586:20: branch_false: following ‘false’ branch...
git-2.54.0/diff-lib.c:584:43: branch_false: ...to here
git-2.54.0/diff-lib.c:595:12: branch_false: following ‘false’ branch...
git-2.54.0/diff-lib.c:595:12: branch_false: ...to here
git-2.54.0/diff-lib.c:598:21: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:599:72: branch_true: ...to here
git-2.54.0/diff-lib.c:598:21: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:599:72: branch_true: ...to here
git-2.54.0/diff-lib.c:598:21: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:599:72: branch_true: ...to here
git-2.54.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: GCC_ANALYZER_WARNING (CWE-416): [#def186]
git-2.54.0/dir.c:3558:46: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘pl’
git-2.54.0/dir.c:3545:6: enter_function: entry to ‘dir_clear’
git-2.54.0/dir.c:3553:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.54.0/dir.c:3553:28: branch_true: ...to here
git-2.54.0/dir.c:3557:28: branch_false: following ‘false’ branch (when ‘i != 1’)...
git-2.54.0/dir.c:3559:25: branch_false: ...to here
git-2.54.0/dir.c:3559:25: call_function: calling ‘clear_pattern_list’ from ‘dir_clear’
git-2.54.0/dir.c:3559:25: return_function: returning to ‘dir_clear’ from ‘clear_pattern_list’
git-2.54.0/dir.c:3555:29: branch_false: following ‘false’ branch...
git-2.54.0/dir.c:3561:22: branch_false: ...to here
git-2.54.0/dir.c:3561:17: release_memory: freed here
git-2.54.0/dir.c:3553:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.54.0/dir.c:3553:28: branch_true: ...to here
git-2.54.0/dir.c:3555:29: branch_true: following ‘true’ branch...
git-2.54.0/dir.c:3556:31: branch_true: ...to here
git-2.54.0/dir.c:3557:28: branch_true: following ‘true’ branch (when ‘i == 1’)...
git-2.54.0/dir.c:3558:46: branch_true: ...to here
git-2.54.0/dir.c:3558:46: danger: use after ‘free’ of ‘pl’; freed at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def187]
git-2.54.0/dir.c:3561:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*dir.internal.exclude_list_group[i].pl’
git-2.54.0/dir.c:3545:6: enter_function: entry to ‘dir_clear’
git-2.54.0/dir.c:3553:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.54.0/dir.c:3553:28: branch_true: ...to here
git-2.54.0/dir.c:3557:28: branch_false: following ‘false’ branch (when ‘i != 1’)...
git-2.54.0/dir.c:3559:25: branch_false: ...to here
git-2.54.0/dir.c:3559:25: call_function: calling ‘clear_pattern_list’ from ‘dir_clear’
git-2.54.0/dir.c:3559:25: return_function: returning to ‘dir_clear’ from ‘clear_pattern_list’
git-2.54.0/dir.c:3555:29: branch_false: following ‘false’ branch...
git-2.54.0/dir.c:3561:22: branch_false: ...to here
git-2.54.0/dir.c:3561:17: release_memory: first ‘free’ here
git-2.54.0/dir.c:3553:28: branch_true: following ‘true’ branch (when ‘i != 3’)...
git-2.54.0/dir.c:3553:28: branch_true: ...to here
git-2.54.0/dir.c:3555:29: branch_false: following ‘false’ branch...
git-2.54.0/dir.c:3561:22: branch_false: ...to here
git-2.54.0/dir.c:3561:17: danger: second ‘free’ here; first ‘free’ was at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
git-2.54.0/dir.c:3962:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ucd’
git-2.54.0/dir.c:3992:12: enter_function: entry to ‘invalidate_one_component’
git-2.54.0/dir.c:3998:12: branch_true: following ‘true’ branch (when ‘rest’ is non-NULL)...
git-2.54.0/dir.c:3999:37: branch_true: ...to here
git-2.54.0/dir.c:4001:25: call_function: calling ‘lookup_untracked’ from ‘invalidate_one_component’
git-2.54.0/dir.c:4001:25: return_function: returning to ‘invalidate_one_component’ from ‘lookup_untracked’
git-2.54.0/dir.c:4003:25: call_function: calling ‘invalidate_one_component’ from ‘invalidate_one_component’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def189]
git-2.54.0/git-compat-util.h:740:17: warning[-Wanalyzer-null-argument]: use of NULL ‘dst’ where non-null expected
git-2.54.0/split-index.c:164:6: enter_function: entry to ‘merge_base_index’
git-2.54.0/split-index.c:174:9: release_memory: ‘*istate.cache’ is NULL
git-2.54.0/split-index.c:176:9: branch_false: following ‘false’ branch...
git-2.54.0/split-index.c:177:9: branch_false: ...to here
git-2.54.0/split-index.c:177:9: release_memory: ‘*istate.cache’ is NULL
git-2.54.0/split-index.c:177:9: call_function: inlined call to ‘copy_array’ from ‘merge_base_index’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
git-2.54.0/graph.c:1115:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parents’
git-2.54.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.54.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
git-2.54.0/graph.c:1148:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.54.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
git-2.54.0/line-log.c:160:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rb’
git-2.54.0/line-log.c:1188:5: enter_function: entry to ‘line_log_filter’
git-2.54.0/line-log.c:1194:16: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
git-2.54.0/line-log.c:1196:17: branch_true: ...to here
git-2.54.0/line-log.c:1197:21: call_function: calling ‘line_log_process_ranges_arbitrary_commit’ from ‘line_log_filter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
git-2.54.0/line-log.c:172:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_range’
git-2.54.0/line-log.c:1188:5: enter_function: entry to ‘line_log_filter’
git-2.54.0/line-log.c:1194:16: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
git-2.54.0/line-log.c:1196:17: branch_true: ...to here
git-2.54.0/line-log.c:1197:21: call_function: calling ‘line_log_process_ranges_arbitrary_commit’ from ‘line_log_filter’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def194]
git-2.54.0/midx.c:233:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘git_open_cloexec(midx_name, 0)’
git-2.54.0/midx.c:895:5: enter_function: entry to ‘verify_midx_file’
git-2.54.0/midx.c:901:38: call_function: calling ‘load_multi_pack_index’ from ‘verify_midx_file’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
git-2.54.0/pack-bitmap.c:526:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*bitmap_git.base’
git-2.54.0/pack-bitmap.c:3056:5: enter_function: entry to ‘test_bitmap_pseudo_merge_objects’
git-2.54.0/pack-bitmap.c:3062:22: call_function: calling ‘prepare_bitmap_git’ from ‘test_bitmap_pseudo_merge_objects’
Error: GCC_ANALYZER_WARNING: [#def196]
git-2.54.0/pager.c:55:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.54.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.54.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.54.0/pager.c:52:9: branch_false: ...to here
git-2.54.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.54.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.54.0/pager.c:55:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def197]
git-2.54.0/pager.c:59:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
git-2.54.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.54.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.54.0/pager.c:52:9: branch_false: ...to here
git-2.54.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.54.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.54.0/pager.c:58:12: branch_true: following ‘true’ branch...
git-2.54.0/pager.c:59:17: branch_true: ...to here
git-2.54.0/pager.c:59:17: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
git-2.54.0/read-cache.h:42:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.54.0/diff-lib.c:517:12: enter_function: entry to ‘oneway_diff’
git-2.54.0/diff-lib.c:530:12: branch_true: following ‘true’ branch...
git-2.54.0/diff-lib.c:530:12: branch_true: ...to here
git-2.54.0/diff-lib.c:533:13: branch_false: following ‘false’ branch (when ‘idx’ is NULL)...
git-2.54.0/diff-lib.c:533:13: branch_false: ...to here
git-2.54.0/diff-lib.c:533:13: call_function: calling ‘ce_path_match’ from ‘oneway_diff’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def199]
git-2.54.0/refs.c:2767:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
git-2.54.0/refs.c:2904:28: enter_function: entry to ‘refs_verify_refname_available’
git-2.54.0/refs.c:2918:16: call_function: calling ‘refs_verify_refnames_available’ from ‘refs_verify_refname_available’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def200]
git-2.54.0/refs.c:2768:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
git-2.54.0/refs.c:2904:28: enter_function: entry to ‘refs_verify_refname_available’
git-2.54.0/refs.c:2918:16: call_function: calling ‘refs_verify_refnames_available’ from ‘refs_verify_refname_available’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
git-2.54.0/refs/packed-backend.c:184:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/refs/packed-backend.c:2065:12: enter_function: entry to ‘packed_fsck’
git-2.54.0/refs/packed-backend.c:2069:41: call_function: calling ‘packed_downcast’ from ‘packed_fsck’
git-2.54.0/refs/packed-backend.c:2069:41: return_function: returning to ‘packed_fsck’ from ‘packed_downcast’
git-2.54.0/refs/packed-backend.c:2077:12: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2080:13: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2084:12: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2103:20: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2103:19: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2106:21: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2106:19: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2115:14: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2115:14: call_function: calling ‘allocate_snapshot_buffer’ from ‘packed_fsck’
git-2.54.0/refs/packed-backend.c:2115:14: return_function: returning to ‘packed_fsck’ from ‘allocate_snapshot_buffer’
git-2.54.0/refs/packed-backend.c:2115:12: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2125:39: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2126:13: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2130:1: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2131:12: branch_true: following ‘true’ branch...
git-2.54.0/refs/packed-backend.c:2132:17: branch_true: ...to here
git-2.54.0/refs/packed-backend.c:2133:9: call_function: calling ‘clear_snapshot_buffer’ from ‘packed_fsck’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
git-2.54.0/refs/packed-backend.c:538:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/refs/packed-backend.c:2065:12: enter_function: entry to ‘packed_fsck’
git-2.54.0/refs/packed-backend.c:2069:41: call_function: calling ‘packed_downcast’ from ‘packed_fsck’
git-2.54.0/refs/packed-backend.c:2069:41: return_function: returning to ‘packed_fsck’ from ‘packed_downcast’
git-2.54.0/refs/packed-backend.c:2077:12: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2080:13: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2084:12: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2103:20: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2103:19: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2106:21: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2106:19: branch_false: following ‘false’ branch...
git-2.54.0/refs/packed-backend.c:2115:14: branch_false: ...to here
git-2.54.0/refs/packed-backend.c:2115:14: call_function: calling ‘allocate_snapshot_buffer’ from ‘packed_fsck’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def203]
git-2.54.0/reftable/basics.c:238:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
git-2.54.0/reftable/basics.c:198:5: enter_function: entry to ‘parse_names’
git-2.54.0/reftable/basics.c:207:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.54.0/reftable/basics.c:208:30: branch_true: ...to here
git-2.54.0/reftable/basics.c:209:20: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
git-2.54.0/reftable/basics.c:212:27: branch_false: ...to here
git-2.54.0/reftable/basics.c:212:27: branch_true: following ‘true’ branch (when ‘end > next’)...
git-2.54.0/reftable/basics.c:213:25: branch_true: ...to here
git-2.54.0/reftable/basics.c:218:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.54.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.54.0/reftable/basics.c:219:28: branch_true: following ‘true’ branch...
git-2.54.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.54.0/reftable/basics.c:219:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.54.0/reftable/basics.c:219:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.54.0/reftable/basics.c:219:29: branch_false: following ‘false’ branch...
git-2.54.0/reftable/basics.c:225:30: branch_false: ...to here
git-2.54.0/reftable/basics.c:225:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.54.0/reftable/basics.c:225:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.54.0/reftable/basics.c:226:28: branch_false: following ‘false’ branch...
git-2.54.0/reftable/basics.c:231:17: branch_false: ...to here
git-2.54.0/reftable/basics.c:234:12: branch_false: following ‘false’ branch...
git-2.54.0/reftable/basics.c:238:14: branch_false: ...to here
git-2.54.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): [#def204]
git-2.54.0/reftable/basics.c:244:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘names’
git-2.54.0/reftable/basics.c:198:5: enter_function: entry to ‘parse_names’
git-2.54.0/reftable/basics.c:207:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.54.0/reftable/basics.c:208:30: branch_true: ...to here
git-2.54.0/reftable/basics.c:209:20: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
git-2.54.0/reftable/basics.c:212:27: branch_false: ...to here
git-2.54.0/reftable/basics.c:212:27: branch_true: following ‘true’ branch (when ‘end > next’)...
git-2.54.0/reftable/basics.c:213:25: branch_true: ...to here
git-2.54.0/reftable/basics.c:218:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.54.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.54.0/reftable/basics.c:219:28: branch_true: following ‘true’ branch...
git-2.54.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.54.0/reftable/basics.c:219:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.54.0/reftable/basics.c:219:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.54.0/reftable/basics.c:219:29: branch_false: following ‘false’ branch...
git-2.54.0/reftable/basics.c:225:30: branch_false: ...to here
git-2.54.0/reftable/basics.c:225:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.54.0/reftable/basics.c:225:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.54.0/reftable/basics.c:226:28: branch_false: following ‘false’ branch...
git-2.54.0/reftable/basics.c:231:17: branch_false: ...to here
git-2.54.0/reftable/basics.c:234:12: branch_true: following ‘true’ branch...
git-2.54.0/reftable/basics.c:234:13: branch_true: ...to here
git-2.54.0/reftable/basics.c:234:13: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.54.0/reftable/basics.c:234:13: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.54.0/reftable/basics.c:234:13: branch_true: following ‘true’ branch...
git-2.54.0/reftable/basics.c:236:17: branch_true: ...to here
git-2.54.0/reftable/basics.c:243:28: branch_true: following ‘true’ branch (when ‘names_len > i’)...
git-2.54.0/reftable/basics.c:244:36: branch_true: ...to here
git-2.54.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): [#def205]
git-2.54.0/reftable/stack.c:308:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
git-2.54.0/reftable/stack.c:621:5: enter_function: entry to ‘reftable_stack_reload’
git-2.54.0/reftable/stack.c:625:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
git-2.54.0/reftable/stack.c:308:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_tables’
git-2.54.0/reftable/stack.c:621:5: enter_function: entry to ‘reftable_stack_reload’
git-2.54.0/reftable/stack.c:625:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
git-2.54.0/reftable/stack.c:308:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘reused’
git-2.54.0/reftable/stack.c:621:5: enter_function: entry to ‘reftable_stack_reload’
git-2.54.0/reftable/stack.c:625:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def208]
git-2.54.0/run-command.c:342:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, to)’
git-2.54.0/run-command.c:1996:22: enter_function: entry to ‘start_bg_command’
git-2.54.0/run-command.c:2013:12: branch_false: following ‘false’ branch...
git-2.54.0/run-command.c:2016:14: branch_false: ...to here
git-2.54.0/run-command.c:2019:15: call_function: calling ‘start_command’ from ‘start_bg_command’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def209]
git-2.54.0/strbuf.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/strbuf.c:1085:6: enter_function: entry to ‘strbuf_stripspace’
git-2.54.0/strbuf.c:1092:9: call_function: calling ‘strbuf_grow’ from ‘strbuf_stripspace’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def210]
git-2.54.0/strbuf.h:310:9: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
git-2.54.0/builtin/config.c:1594:5: enter_function: entry to ‘cmd_config’
git-2.54.0/builtin/config.c:1621:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/config.c:1627:16: branch_false: ...to here
git-2.54.0/builtin/config.c:1627:16: call_function: calling ‘cmd_config_actions’ from ‘cmd_config’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def211]
git-2.54.0/t/helper/test-pack-deltas.c:69:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘delta_size’
git-2.54.0/t/helper/test-pack-deltas.c:46:13: enter_function: entry to ‘write_ref_delta’
git-2.54.0/t/helper/test-pack-deltas.c:57:12: branch_false: following ‘false’ branch...
git-2.54.0/t/helper/test-pack-deltas.c:60:50: branch_false: ...to here
git-2.54.0/t/helper/test-pack-deltas.c:63:12: branch_false: following ‘false’ branch...
git-2.54.0/t/helper/test-pack-deltas.c:66:21: branch_false: ...to here
git-2.54.0/t/helper/test-pack-deltas.c:66:21: call_function: calling ‘diff_delta’ from ‘write_ref_delta’
git-2.54.0/t/helper/test-pack-deltas.c:66:21: return_function: returning to ‘write_ref_delta’ from ‘diff_delta’
git-2.54.0/t/helper/test-pack-deltas.c:69:27: danger: use of uninitialized value ‘delta_size’ here
Error: CPPCHECK_WARNING (CWE-664): [#def212]
git-2.54.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): [#def213]
git-2.54.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): [#def214]
git-2.54.0/t/unit-tests/clar/clar.c:747: error[va_list_usedBeforeStarted]: va_list 'args_copy' used before va_start() was called.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
git-2.54.0/t/unit-tests/u-reftable-basics.c:200:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.54.0/t/unit-tests/u-reftable-basics.c:192:6: enter_function: entry to ‘test_reftable_basics__alloc_grow’
git-2.54.0/t/unit-tests/u-reftable-basics.c:197:9: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_basics__alloc_grow’
git-2.54.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.54.0/t/unit-tests/u-reftable-basics.c:197:9: branch_true: following ‘true’ branch...
git-2.54.0/t/unit-tests/u-reftable-basics.c:197:9: branch_true: ...to here
git-2.54.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): [#def216]
git-2.54.0/t/unit-tests/u-reftable-basics.c:227:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arr’
git-2.54.0/t/unit-tests/u-reftable-basics.c:219:6: enter_function: entry to ‘test_reftable_basics__alloc_grow_or_null’
git-2.54.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.54.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.54.0/t/unit-tests/u-reftable-basics.c:224:9: branch_true: following ‘true’ branch...
git-2.54.0/t/unit-tests/u-reftable-basics.c:224:9: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-basics.c:227:9: danger: dereference of NULL ‘arr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
git-2.54.0/t/unit-tests/u-reftable-merged.c:183:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
git-2.54.0/t/unit-tests/u-reftable-merged.c:105:6: enter_function: entry to ‘test_reftable_merged__refs’
git-2.54.0/t/unit-tests/u-reftable-merged.c:160:17: call_function: calling ‘merged_table_from_records’ from ‘test_reftable_merged__refs’
git-2.54.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.54.0/t/unit-tests/u-reftable-merged.c:176:16: branch_true: following ‘true’ branch (when ‘len != 100’)...
git-2.54.0/t/unit-tests/u-reftable-merged.c:177:44: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:179:20: branch_false: following ‘false’ branch...
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: branch_false: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: following ‘true’ branch...
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_merged__refs’
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: return_function: returning to ‘test_reftable_merged__refs’ from ‘reftable_alloc_grow’
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: following ‘true’ branch...
git-2.54.0/t/unit-tests/u-reftable-merged.c:182:17: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:183:17: danger: dereference of NULL ‘out + len * 96’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
git-2.54.0/t/unit-tests/u-reftable-merged.c:456:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
git-2.54.0/t/unit-tests/u-reftable-merged.c:373:6: enter_function: entry to ‘test_reftable_merged__logs’
git-2.54.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.54.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.54.0/t/unit-tests/u-reftable-merged.c:449:16: branch_true: following ‘true’ branch (when ‘len != 100’)...
git-2.54.0/t/unit-tests/u-reftable-merged.c:450:44: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:452:20: branch_false: following ‘false’ branch...
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: branch_false: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: following ‘true’ branch...
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_merged__logs’
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: return_function: returning to ‘test_reftable_merged__logs’ from ‘reftable_alloc_grow’
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: following ‘true’ branch...
git-2.54.0/t/unit-tests/u-reftable-merged.c:455:17: branch_true: ...to here
git-2.54.0/t/unit-tests/u-reftable-merged.c:456:17: danger: dereference of NULL ‘out + len * 144’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
git-2.54.0/tempfile.c:273:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(*tempfile.fd, mode)’
git-2.54.0/tempfile.c:268:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.54.0/tempfile.c:270:13: branch_false: ...to here
git-2.54.0/tempfile.c:270:12: branch_false: following ‘false’ branch...
git-2.54.0/tempfile.c:273:31: branch_false: ...to here
git-2.54.0/tempfile.c:273:24: acquire_memory: allocated here
git-2.54.0/tempfile.c:273:9: danger: ‘fdopen(*tempfile.fd, mode)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def220]
git-2.54.0/tempfile.c:332:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*tempfile.filename.buf, 513)’
git-2.54.0/tempfile.c:328:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.54.0/tempfile.c:330:18: branch_false: ...to here
git-2.54.0/tempfile.c:330:12: branch_false: following ‘false’ branch...
git-2.54.0/tempfile.c:332:29: branch_false: ...to here
git-2.54.0/tempfile.c:332:24: acquire_resource: opened here
git-2.54.0/tempfile.c:332:9: danger: ‘open(*tempfile.filename.buf, 513)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
git-2.54.0/unpack-trees.c:2333:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.54.0/unpack-trees.c:2476:12: enter_function: entry to ‘verify_absent_1’
git-2.54.0/unpack-trees.c:2487:12: branch_false: following ‘false’ branch...
git-2.54.0/unpack-trees.c:2497:44: branch_false: ...to here
git-2.54.0/unpack-trees.c:2498:12: branch_false: following ‘false’ branch...
git-2.54.0/unpack-trees.c:2500:17: branch_false: ...to here
git-2.54.0/unpack-trees.c:2500:17: branch_true: following ‘true’ branch...
git-2.54.0/unpack-trees.c:2504:24: branch_true: ...to here
git-2.54.0/unpack-trees.c:2505:20: branch_false: following ‘false’ branch...
git-2.54.0/unpack-trees.c:2508:29: branch_false: ...to here
git-2.54.0/unpack-trees.c:2508:28: branch_false: following ‘false’ branch...
git-2.54.0/unpack-trees.c:2513:39: branch_false: ...to here
git-2.54.0/unpack-trees.c:2513:39: call_function: calling ‘check_ok_to_remove’ from ‘verify_absent_1’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
git-2.54.0/utf8.c:137:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
git-2.54.0/utf8.c:804:5: enter_function: entry to ‘is_hfs_dotmailmap’
git-2.54.0/utf8.c:806:16: call_function: calling ‘is_hfs_dot_str’ from ‘is_hfs_dotmailmap’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def223]
git-2.54.0/utf8.h:46:16: warning[-Wanalyzer-null-argument]: use of NULL ‘in’ where non-null expected
git-2.54.0/builtin/fast-export.c:1307:5: enter_function: entry to ‘cmd_fast_export’
git-2.54.0/builtin/fast-export.c:1366:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
git-2.54.0/builtin/fast-export.c:1370:9: branch_false: ...to here
git-2.54.0/builtin/fast-export.c:1380:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/fast-export.c:1383:13: branch_false: ...to here
git-2.54.0/builtin/fast-export.c:1398:13: branch_false: following ‘false’ branch...
git-2.54.0/builtin/fast-export.c:1400:12: branch_false: ...to here
git-2.54.0/builtin/fast-export.c:1401:17: call_function: calling ‘import_marks’ from ‘cmd_fast_export’
git-2.54.0/builtin/fast-export.c:1401:17: return_function: returning to ‘cmd_fast_export’ from ‘import_marks’
git-2.54.0/builtin/fast-export.c:1411:12: branch_false: following ‘false’ branch...
git-2.54.0/builtin/fast-export.c:1414:9: branch_false: ...to here
git-2.54.0/builtin/fast-export.c:1420:16: branch_true: following ‘true’ branch...
git-2.54.0/builtin/fast-export.c:1421:17: branch_true: ...to here
git-2.54.0/builtin/fast-export.c:1421:17: call_function: calling ‘handle_commit’ from ‘cmd_fast_export’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def224]
git-2.54.0/worktree.c:970:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(gitdir.buf, 0)’
git-2.54.0/worktree.c:949:12: branch_false: following ‘false’ branch...
git-2.54.0/worktree.c:954:9: branch_false: ...to here
git-2.54.0/worktree.c:955:12: branch_false: following ‘false’ branch...
git-2.54.0/worktree.c:958:18: branch_false: ...to here
git-2.54.0/worktree.c:958:12: branch_false: following ‘false’ branch...
git-2.54.0/worktree.c:963:19: branch_false: ...to here
git-2.54.0/worktree.c:963:14: acquire_resource: opened here
git-2.54.0/worktree.c:964:12: branch_false: following ‘false’ branch...
git-2.54.0/worktree.c:970:23: branch_false: ...to here
git-2.54.0/worktree.c:970:23: danger: ‘open(gitdir.buf, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
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.54.0-1.fc45 |
| store-results-to | /tmp/tmpng9dcbmz/git-2.54.0-1.fc45.tar.xz |
| time-created | 2026-06-01 12:20:55 |
| time-finished | 2026-06-01 12:26:39 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpng9dcbmz/git-2.54.0-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpng9dcbmz/git-2.54.0-1.fc45.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |