git-2.49.0-2.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/gitk:16:19: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def2]
/usr/bin/gitk:17:6: error[SC1035]: You need a space after the [ and before the ].
Error: SHELLCHECK_WARNING: [#def3]
/usr/bin/gitk:17:6: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-398): [#def4]
/usr/bin/gitk:17:6: error[SC1073]: Couldn't parse this test expression. Fix to allow more checks.
Error: SHELLCHECK_WARNING (CWE-398): [#def5]
/usr/bin/gitk:17:10: error[SC1072]: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.
Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/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): [#def7]
/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): [#def8]
/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): [#def9]
/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): [#def10]
/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): [#def11]
/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): [#def12]
/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): [#def13]
/usr/libexec/git-core/git-filter-branch:365:10: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-156): [#def14]
/usr/libexec/git-core/git-filter-branch:495:28: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def15]
/usr/libexec/git-core/git-filter-branch:524:12: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-477): [#def16]
/usr/libexec/git-core/git-filter-branch:548:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-569): [#def17]
/usr/libexec/git-core/git-filter-branch:555:37: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def18]
/usr/libexec/git-core/git-filter-branch:555:44: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-252): [#def19]
/usr/libexec/git-core/git-filter-branch:655:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-561): [#def20]
/usr/libexec/git-core/git-gui:10:2: warning[SC2093]: Remove "exec " if script should continue after this command.
Error: SHELLCHECK_WARNING (CWE-456): [#def21]
/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): [#def22]
/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): [#def23]
/usr/libexec/git-core/git-gui:12:25: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-456): [#def24]
/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): [#def25]
/usr/libexec/git-core/git-gui:13:33: error[SC1036]: '(' is invalid here. Did you forget to escape it?
Error: SHELLCHECK_WARNING (CWE-398): [#def26]
/usr/libexec/git-core/git-gui:13:33: error[SC1088]: Parsing stopped here. Invalid use of parentheses?
Error: SHELLCHECK_WARNING: [#def27]
/usr/libexec/git-core/git-gui--askpass:14:1: error[SC1049]: Did you forget the 'then' for this 'if'?
Error: SHELLCHECK_WARNING (CWE-398): [#def28]
/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: [#def29]
/usr/libexec/git-core/git-gui--askpass:14:5: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-569): [#def30]
/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): [#def31]
/usr/libexec/git-core/git-gui--askpass:14:16: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING: [#def32]
/usr/libexec/git-core/git-gui--askpass:16:3: error[SC1050]: Expected 'then'.
Error: SHELLCHECK_WARNING (CWE-398): [#def33]
/usr/libexec/git-core/git-gui--askpass:16:8: error[SC1072]: Unexpected . Fix any mentioned problems and try again.
Error: SHELLCHECK_WARNING (CWE-563): [#def34]
/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): [#def35]
/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): [#def36]
/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): [#def37]
/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): [#def38]
/usr/libexec/git-core/git-instaweb:146:34: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-457): [#def39]
/usr/libexec/git-core/git-instaweb:562:27: warning[SC2154]: fd is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def40]
/usr/libexec/git-core/git-instaweb:562:62: warning[SC2154]: fh is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-480): [#def41]
/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): [#def42]
/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): [#def43]
/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): [#def44]
/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): [#def45]
/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): [#def46]
/usr/libexec/git-core/git-merge-octopus:67:21: warning[SC2154]: pretty_name is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-569): [#def47]
/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): [#def48]
/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): [#def49]
/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): [#def50]
/usr/libexec/git-core/git-merge-one-file:123:26: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-480): [#def51]
/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): [#def52]
/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): [#def53]
/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): [#def54]
/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): [#def55]
/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): [#def56]
/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): [#def57]
/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): [#def58]
/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): [#def59]
/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): [#def60]
/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): [#def61]
/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): [#def62]
/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): [#def63]
/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): [#def64]
/usr/libexec/git-core/git-mergetool:540:10: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def65]
/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): [#def66]
/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): [#def67]
/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): [#def68]
/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): [#def69]
/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): [#def70]
/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): [#def71]
/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): [#def72]
/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): [#def73]
/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): [#def74]
/usr/libexec/git-core/git-request-pull:115:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-156): [#def75]
/usr/libexec/git-core/git-request-pull:115:11: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def76]
/usr/libexec/git-core/git-request-pull:153:9: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def77]
/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): [#def78]
/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): [#def79]
/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): [#def80]
/usr/libexec/git-core/git-subtree:281:1: warning[SC2120]: cache_setup references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def81]
/usr/libexec/git-core/git-subtree:319:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def82]
/usr/libexec/git-core/git-subtree:415:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def83]
/usr/libexec/git-core/git-subtree:463:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def84]
/usr/libexec/git-core/git-subtree:474:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def85]
/usr/libexec/git-core/git-subtree:641:13: warning[SC2034]: mode appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-685): [#def86]
/usr/libexec/git-core/git-subtree:771:1: warning[SC2120]: ensure_clean references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def87]
/usr/libexec/git-core/git-subtree:794:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def88]
/usr/libexec/git-core/git-subtree:809:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def89]
/usr/libexec/git-core/git-subtree:810:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def90]
/usr/libexec/git-core/git-subtree:825:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def91]
/usr/libexec/git-core/git-subtree:978:2: warning[SC2034]: unrevs appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def92]
/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): [#def93]
/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): [#def94]
/usr/share/doc/git/contrib/completion/git-completion.bash:376:13: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def95]
/usr/share/doc/git/contrib/completion/git-completion.bash:389:14: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-569): [#def96]
/usr/share/doc/git/contrib/completion/git-completion.bash:464:10: error[SC2296]: Parameter expansions can't start with (. Double check syntax.
Error: SHELLCHECK_WARNING (CWE-569): [#def97]
/usr/share/doc/git/contrib/completion/git-completion.bash:464:15: error[SC2296]: Parameter expansions can't start with (. Double check syntax.
Error: SHELLCHECK_WARNING (CWE-156): [#def98]
/usr/share/doc/git/contrib/completion/git-completion.bash:466:8: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-140): [#def99]
/usr/share/doc/git/contrib/completion/git-completion.bash:561:13: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING: [#def100]
/usr/share/doc/git/contrib/completion/git-completion.bash:894:9: warning[SC2194]: This word is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING: [#def101]
/usr/share/doc/git/contrib/completion/git-completion.bash:903:9: warning[SC2194]: This word is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING (CWE-480): [#def102]
/usr/share/doc/git/contrib/completion/git-completion.bash:938:15: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def103]
/usr/share/doc/git/contrib/completion/git-completion.bash:938:21: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-480): [#def104]
/usr/share/doc/git/contrib/completion/git-completion.bash:938:26: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-563): [#def105]
/usr/share/doc/git/contrib/completion/git-completion.bash:1006:16: warning[SC2034]: hash appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-480): [#def106]
/usr/share/doc/git/contrib/completion/git-completion.bash:1246:25: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-569): [#def107]
/usr/share/doc/git/contrib/completion/git-completion.bash:1270:4: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-480): [#def108]
/usr/share/doc/git/contrib/completion/git-completion.bash:1370:15: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-571): [#def109]
/usr/share/doc/git/contrib/completion/git-completion.bash:1559:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-477): [#def110]
/usr/share/doc/git/contrib/completion/git-completion.bash:1624:30: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-571): [#def111]
/usr/share/doc/git/contrib/completion/git-completion.bash:1704:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-156): [#def112]
/usr/share/doc/git/contrib/completion/git-completion.bash:2360:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-571): [#def113]
/usr/share/doc/git/contrib/completion/git-completion.bash:2372:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def114]
/usr/share/doc/git/contrib/completion/git-completion.bash:2655:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-480): [#def115]
/usr/share/doc/git/contrib/completion/git-completion.bash:2706:34: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-571): [#def116]
/usr/share/doc/git/contrib/completion/git-completion.bash:3043:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def117]
/usr/share/doc/git/contrib/completion/git-completion.bash:3110:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-670): [#def118]
/usr/share/doc/git/contrib/completion/git-completion.bash:3271:11: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def119]
/usr/share/doc/git/contrib/completion/git-completion.bash:3367:14: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-571): [#def120]
/usr/share/doc/git/contrib/completion/git-completion.bash:3401:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def121]
/usr/share/doc/git/contrib/completion/git-completion.bash:3432:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def122]
/usr/share/doc/git/contrib/completion/git-completion.bash:3480: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:3532:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def124]
/usr/share/doc/git/contrib/completion/git-completion.bash:3903:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-758): [#def125]
/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): [#def126]
/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): [#def127]
/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): [#def128]
/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): [#def129]
/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): [#def130]
/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): [#def131]
/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): [#def132]
/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): [#def133]
/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): [#def134]
/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): [#def135]
/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): [#def136]
/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): [#def137]
/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): [#def138]
/usr/share/doc/git/contrib/git-resurrect.sh:4:1: warning[SC2034]: LONG_USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def139]
/usr/share/doc/git/contrib/git-resurrect.sh:12:1: warning[SC2034]: OPTIONS_KEEPDASHDASH appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def140]
/usr/share/doc/git/contrib/git-resurrect.sh:13:1: warning[SC2034]: OPTIONS_STUCKLONG appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def141]
/usr/share/doc/git/contrib/git-resurrect.sh:14:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def142]
/usr/share/doc/git/contrib/git-resurrect.sh:34:16: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-758): [#def143]
/usr/share/doc/git/contrib/mw-to-git/t/push-pull-tests.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): [#def144]
/usr/share/doc/git/contrib/mw-to-git/t/t9360-mw-to-git-clone.sh:13:1: warning[SC2034]: test_description appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def145]
/usr/share/doc/git/contrib/mw-to-git/t/t9361-mw-to-git-push-pull.sh:14:1: warning[SC2034]: test_description appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def146]
/usr/share/doc/git/contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh:14:1: warning[SC2034]: test_description appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def147]
/usr/share/doc/git/contrib/mw-to-git/t/t9363-mw-to-git-export-import.sh:14:1: warning[SC2034]: test_description appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def148]
/usr/share/doc/git/contrib/mw-to-git/t/t9364-pull-by-rev.sh:3:1: warning[SC2034]: test_description appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def149]
/usr/share/doc/git/contrib/mw-to-git/t/t9365-continuing-queries.sh:3:1: warning[SC2034]: test_description appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-758): [#def150]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.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): [#def151]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.sh:71:3: warning[SC2034]: skip_all appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-156): [#def152]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.sh:94:10: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def153]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.sh:292:33: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-398): [#def154]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.sh:297:5: warning[SC2115]: Use "${var:?}" to ensure this never expands to /* .
Error: SHELLCHECK_WARNING (CWE-398): [#def155]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.sh:302:5: warning[SC2115]: Use "${var:?}" to ensure this never expands to /* .
Error: SHELLCHECK_WARNING (CWE-398): [#def156]
/usr/share/doc/git/contrib/mw-to-git/t/test-gitmw-lib.sh:426:10: warning[SC2115]: Use "${var:?}" to ensure this never expands to / .
Error: SHELLCHECK_WARNING (CWE-252): [#def157]
/usr/share/doc/git/contrib/remotes2config.sh:12:3: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-398): [#def158]
/usr/share/doc/git/contrib/remotes2config.sh:21:8: warning[SC1010]: Use semicolon or linefeed before 'done' (or quote to make it literal).
Error: SHELLCHECK_WARNING (CWE-149): [#def159]
/usr/share/doc/git/contrib/remotes2config.sh:29:27: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
Error: SHELLCHECK_WARNING (CWE-563): [#def160]
/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): [#def161]
/usr/share/doc/git/contrib/thunderbird-patch-inline/appp.sh:14:2: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def162]
/usr/share/doc/git/contrib/thunderbird-patch-inline/appp.sh:16:2: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def163]
/usr/share/doc/git/contrib/thunderbird-patch-inline/appp.sh:26:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def164]
/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): [#def165]
/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): [#def166]
/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): [#def167]
/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): [#def168]
/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): [#def169]
/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): [#def170]
/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): [#def171]
/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): [#def172]
/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): [#def173]
/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): [#def174]
/usr/share/git-core/contrib/hooks/post-receive-email:511:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-457): [#def175]
/usr/share/git-core/contrib/hooks/post-receive-email:518:20: warning[SC2154]: tagobject is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def176]
/usr/share/git-core/contrib/hooks/post-receive-email:518:32: warning[SC2154]: tagtype is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def177]
/usr/share/git-core/contrib/hooks/post-receive-email:535:20: warning[SC2154]: tagger is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def178]
/usr/share/git-core/contrib/hooks/post-receive-email:536:20: warning[SC2154]: tagged is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-156): [#def179]
/usr/share/git-core/contrib/hooks/post-receive-email:680:9: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-477): [#def180]
/usr/share/git-core/contrib/hooks/post-receive-email:748:14: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def181]
/usr/share/git-core/contrib/hooks/post-receive-email:748:25: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-480): [#def182]
/usr/share/git-core/contrib/hooks/post-receive-email:752:35: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-156): [#def183]
/usr/share/git-core/templates/hooks/pre-commit.sample:31:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def184]
/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): [#def185]
/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): [#def186]
/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): [#def187]
/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): [#def188]
/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): [#def189]
/usr/share/git-core/templates/hooks/pre-receive.sample:15:9: warning[SC2154]: value is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-563): [#def190]
/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): [#def191]
/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): [#def192]
/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): [#def193]
/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): [#def194]
/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 (CWE-688): [#def195]
git-2.49.0/./strbuf.h:310:9: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
git-2.49.0/builtin/config.c:1402:5: enter_function: entry to ‘cmd_config’
git-2.49.0/builtin/config.c:1429:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/config.c:1435:16: branch_false: ...to here
git-2.49.0/builtin/config.c:1435:16: call_function: calling ‘cmd_config_actions’ from ‘cmd_config’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def196]
git-2.49.0/./utf8.h:46:16: warning[-Wanalyzer-null-argument]: use of NULL ‘in’ where non-null expected
git-2.49.0/builtin/fast-export.c:1187:5: enter_function: entry to ‘cmd_fast_export’
git-2.49.0/builtin/fast-export.c:1243:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
git-2.49.0/builtin/fast-export.c:1247:9: call_function: inlined call to ‘git_config’ from ‘cmd_fast_export’
git-2.49.0/builtin/fast-export.c:1257:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/fast-export.c:1260:13: branch_false: ...to here
git-2.49.0/builtin/fast-export.c:1288:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/fast-export.c:1291:9: branch_false: ...to here
git-2.49.0/builtin/fast-export.c:1297:16: branch_true: following ‘true’ branch...
git-2.49.0/builtin/fast-export.c:1298:17: branch_true: ...to here
git-2.49.0/builtin/fast-export.c:1298:17: call_function: calling ‘handle_commit’ from ‘cmd_fast_export’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
git-2.49.0/add-patch.c:530:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file_diff’
git-2.49.0/add-patch.c:1762:5: enter_function: entry to ‘run_add_p’
git-2.49.0/add-patch.c:1798:12: branch_false: following ‘false’ branch...
git-2.49.0/add-patch.c:1799:15: branch_false: ...to here
git-2.49.0/add-patch.c:1802:13: call_function: calling ‘parse_diff’ from ‘run_add_p’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
git-2.49.0/add-patch.c:607:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hunk’
git-2.49.0/add-patch.c:1762:5: enter_function: entry to ‘run_add_p’
git-2.49.0/add-patch.c:1798:12: branch_false: following ‘false’ branch...
git-2.49.0/add-patch.c:1799:15: branch_false: ...to here
git-2.49.0/add-patch.c:1802:13: call_function: calling ‘parse_diff’ from ‘run_add_p’
Error: GCC_ANALYZER_WARNING: [#def199]
git-2.49.0/archive-tar.c:511:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.49.0/archive-tar.c:481:12: branch_false: following ‘false’ branch...
git-2.49.0/archive-tar.c:484:14: branch_false: ...to here
git-2.49.0/archive-tar.c:484:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.49.0/archive-tar.c:499:9: branch_false: ...to here
git-2.49.0/archive-tar.c:508:12: branch_false: following ‘false’ branch...
git-2.49.0/archive-tar.c:510:9: branch_false: ...to here
git-2.49.0/archive-tar.c:510:9: release_resource: closed here
git-2.49.0/archive-tar.c:511:13: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def200]
git-2.49.0/archive-tar.c:517:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘1’
git-2.49.0/archive-tar.c:473:12: enter_function: entry to ‘write_tar_filter_archive’
git-2.49.0/archive-tar.c:481:12: branch_false: following ‘false’ branch...
git-2.49.0/archive-tar.c:484:14: branch_false: ...to here
git-2.49.0/archive-tar.c:484:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.49.0/archive-tar.c:499:9: branch_false: ...to here
git-2.49.0/archive-tar.c:508:12: branch_false: following ‘false’ branch...
git-2.49.0/archive-tar.c:510:9: branch_false: ...to here
git-2.49.0/archive-tar.c:510:9: release_resource: first ‘close’ here
git-2.49.0/archive-tar.c:511:12: branch_false: following ‘false’ branch...
git-2.49.0/archive-tar.c:513:9: branch_false: ...to here
git-2.49.0/archive-tar.c:515:13: call_function: calling ‘write_tar_archive’ from ‘write_tar_filter_archive’
git-2.49.0/archive-tar.c:515:13: return_function: returning to ‘write_tar_filter_archive’ from ‘write_tar_archive’
git-2.49.0/archive-tar.c:517: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): [#def201]
git-2.49.0/blame.c:2842:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
git-2.49.0/blame.c:2764:6: enter_function: entry to ‘setup_scoreboard’
git-2.49.0/blame.c:2777:12: branch_false: following ‘false’ branch...
git-2.49.0/blame.c:2780:12: branch_false: ...to here
git-2.49.0/blame.c:2781:29: call_function: calling ‘find_single_final’ from ‘setup_scoreboard’
git-2.49.0/blame.c:2781:29: return_function: returning to ‘setup_scoreboard’ from ‘find_single_final’
git-2.49.0/blame.c:2781:17: release_memory: ‘*sb.final’ is NULL
git-2.49.0/blame.c:2788:12: branch_true: following ‘true’ branch...
git-2.49.0/blame.c:2791:12: branch_false: following ‘false’ branch...
git-2.49.0/blame.c:2835:12: branch_false: following ‘false’ branch...
git-2.49.0/blame.c:2838:13: branch_false: ...to here
git-2.49.0/blame.c:2838:12: branch_true: following ‘true’ branch...
git-2.49.0/blame.c:2842:24: danger: dereference of NULL ‘c’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
git-2.49.0/builtin/archive.c:16:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(output_file, 577, 438), 1)’
git-2.49.0/builtin/archive.c:15:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/archive.c:16:21: branch_true: ...to here
git-2.49.0/builtin/archive.c:16:21: acquire_resource: opened here
git-2.49.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): [#def203]
git-2.49.0/builtin/cat-file.c:158:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
git-2.49.0/builtin/cat-file.c:930:5: enter_function: entry to ‘cmd_cat_file’
git-2.49.0/builtin/cat-file.c:1061:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/cat-file.c:1074:13: branch_false: ...to here
git-2.49.0/builtin/cat-file.c:1074:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/cat-file.c:1075:20: branch_true: ...to here
git-2.49.0/builtin/cat-file.c:1081:25: branch_false: following ‘false’ branch...
git-2.49.0/builtin/cat-file.c:1084:25: branch_false: ...to here
git-2.49.0/builtin/cat-file.c:1084:25: branch_true: following ‘true’ branch...
git-2.49.0/builtin/cat-file.c:1085:25: branch_true: ...to here
git-2.49.0/builtin/cat-file.c:1100:16: call_function: calling ‘cat_one_file’ from ‘cmd_cat_file’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def204]
git-2.49.0/builtin/clone.c:1096:26: warning[-Wanalyzer-null-argument]: use of NULL ‘work_tree’ where non-null expected
git-2.49.0/builtin/clone.c:860:5: enter_function: entry to ‘cmd_clone’
git-2.49.0/builtin/clone.c:894:21: release_memory: ‘real_git_dir’ is NULL
git-2.49.0/builtin/clone.c:895:21: release_memory: ‘real_git_dir’ is NULL
git-2.49.0/builtin/clone.c:904:21: release_memory: ‘real_git_dir’ is NULL
git-2.49.0/builtin/clone.c:986:28: release_memory: ‘real_git_dir’ is NULL
git-2.49.0/builtin/clone.c:998:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/clone.c:1002:12: branch_false: ...to here
git-2.49.0/builtin/clone.c:1002:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/clone.c:1006:13: branch_false: ...to here
git-2.49.0/builtin/clone.c:1035:16: call_function: calling ‘get_repo_path’ from ‘cmd_clone’
git-2.49.0/builtin/clone.c:1035:16: return_function: returning to ‘cmd_clone’ from ‘get_repo_path’
git-2.49.0/builtin/clone.c:1036:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/clone.c:1039:20: branch_false: ...to here
git-2.49.0/builtin/clone.c:1039:19: branch_true: following ‘true’ branch...
git-2.49.0/builtin/clone.c:1041:32: branch_true: ...to here
git-2.49.0/builtin/clone.c:1080:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/clone.c:1081:27: branch_true: ...to here
git-2.49.0/builtin/clone.c:1090:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/clone.c:1091:21: branch_true: ...to here
git-2.49.0/builtin/clone.c:1091:20: branch_false: following ‘false’ branch...
git-2.49.0/builtin/clone.c:1094:20: branch_false: ...to here
git-2.49.0/builtin/clone.c:1094:20: branch_false: following ‘false’ branch...
git-2.49.0/builtin/clone.c:1096:26: branch_false: ...to here
git-2.49.0/builtin/clone.c:1096:26: danger: argument 1 (‘work_tree’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def205]
git-2.49.0/builtin/interpret-trailers.c:104:13: warning[-Wanalyzer-null-argument]: use of NULL ‘file’ where non-null expected
git-2.49.0/builtin/interpret-trailers.c:193:5: enter_function: entry to ‘cmd_interpret_trailers’
git-2.49.0/builtin/interpret-trailers.c:234:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/interpret-trailers.c:239:21: branch_false: ...to here
git-2.49.0/builtin/interpret-trailers.c:239:20: branch_false: following ‘false’ branch...
git-2.49.0/builtin/interpret-trailers.c:241:17: branch_false: ...to here
git-2.49.0/builtin/interpret-trailers.c:241:17: call_function: calling ‘interpret_trailers’ from ‘cmd_interpret_trailers’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
git-2.49.0/builtin/name-rev.c:226:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.49.0/builtin/name-rev.c:563:5: enter_function: entry to ‘cmd_name_rev’
git-2.49.0/builtin/name-rev.c:607:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/name-rev.c:611:12: branch_false: ...to here
git-2.49.0/builtin/name-rev.c:657:9: call_function: calling ‘name_tips’ from ‘cmd_name_rev’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def207]
git-2.49.0/builtin/patch-id.c:107:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pre_oid_str[0]’
git-2.49.0/builtin/patch-id.c:179:13: enter_function: entry to ‘generate_id_list’
git-2.49.0/builtin/patch-id.c:185:9: call_function: calling ‘oidclr’ from ‘generate_id_list’
git-2.49.0/builtin/patch-id.c:185:9: return_function: returning to ‘generate_id_list’ from ‘oidclr’
git-2.49.0/builtin/patch-id.c:186:16: branch_true: following ‘true’ branch...
git-2.49.0/builtin/patch-id.c:187:28: branch_true: ...to here
git-2.49.0/builtin/patch-id.c:187:28: call_function: calling ‘get_one_patchid’ from ‘generate_id_list’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def208]
git-2.49.0/builtin/pull.c:755:22: warning[-Wanalyzer-null-argument]: use of NULL ‘remote’ where non-null expected
git-2.49.0/builtin/pull.c:981:5: enter_function: entry to ‘cmd_pull’
git-2.49.0/builtin/pull.c:1016:9: call_function: inlined call to ‘parse_repo_refspecs’ from ‘cmd_pull’
git-2.49.0/builtin/pull.c:1018:13: branch_false: ...to here
git-2.49.0/builtin/pull.c:1040:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/pull.c:1043:13: branch_false: ...to here
git-2.49.0/builtin/pull.c:1043:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/pull.c:1046:13: branch_false: ...to here
git-2.49.0/builtin/pull.c:1049:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/pull.c:1050:21: branch_true: ...to here
git-2.49.0/builtin/pull.c:1061:21: call_function: calling ‘get_rebase_fork_point’ from ‘cmd_pull’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def209]
git-2.49.0/builtin/sparse-checkout.c:1048:17: warning[-Wanalyzer-null-argument]: use of NULL ‘xfopen(check_rules_opts.rules_file, "r")’ where non-null expected
git-2.49.0/builtin/sparse-checkout.c:1017:12: enter_function: entry to ‘sparse_checkout_check_rules’
git-2.49.0/builtin/sparse-checkout.c:1045:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/sparse-checkout.c:1046:22: branch_true: ...to here
git-2.49.0/builtin/sparse-checkout.c:1047:17: call_function: calling ‘add_patterns_from_input’ from ‘sparse_checkout_check_rules’
git-2.49.0/builtin/sparse-checkout.c:1047:17: return_function: returning to ‘sparse_checkout_check_rules’ from ‘add_patterns_from_input’
git-2.49.0/builtin/sparse-checkout.c:1048:17: danger: argument 1 (‘xfopen(check_rules_opts.rules_file, "r")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
git-2.49.0/builtin/submodule--helper.c:98:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘default_remote’
git-2.49.0/builtin/submodule--helper.c:3038:12: enter_function: entry to ‘module_set_url’
git-2.49.0/builtin/submodule--helper.c:3057:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/submodule--helper.c:3062:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/submodule--helper.c:3066:51: branch_false: ...to here
git-2.49.0/builtin/submodule--helper.c:3069:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/submodule--helper.c:3070:17: branch_true: ...to here
git-2.49.0/builtin/submodule--helper.c:3071:17: call_function: calling ‘sync_submodule’ from ‘module_set_url’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def211]
git-2.49.0/builtin/submodule--helper.c:1301:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘default_remote’
git-2.49.0/builtin/submodule--helper.c:3038:12: enter_function: entry to ‘module_set_url’
git-2.49.0/builtin/submodule--helper.c:3057:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/submodule--helper.c:3062:12: branch_false: following ‘false’ branch...
git-2.49.0/builtin/submodule--helper.c:3066:51: branch_false: ...to here
git-2.49.0/builtin/submodule--helper.c:3069:12: branch_true: following ‘true’ branch...
git-2.49.0/builtin/submodule--helper.c:3070:17: branch_true: ...to here
git-2.49.0/builtin/submodule--helper.c:3071:17: call_function: calling ‘sync_submodule’ from ‘module_set_url’
Error: GCC_ANALYZER_WARNING: [#def212]
git-2.49.0/column.c:395:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.49.0/column.c:370:12: branch_false: following ‘false’ branch...
git-2.49.0/column.c:373:9: branch_false: ...to here
git-2.49.0/column.c:390:12: branch_false: following ‘false’ branch...
git-2.49.0/column.c:393:18: branch_false: ...to here
git-2.49.0/column.c:394:9: release_resource: closed here
git-2.49.0/column.c:395:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def213]
git-2.49.0/column.c:408:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.49.0/column.c:402:12: branch_false: following ‘false’ branch...
git-2.49.0/column.c:405:9: branch_false: ...to here
git-2.49.0/column.c:406:9: release_resource: closed here
git-2.49.0/column.c:408:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def214]
git-2.49.0/combine-diff.c:1073:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*elem.path, 0)’
git-2.49.0/combine-diff.c:1282:6: enter_function: entry to ‘show_combined_diff’
git-2.49.0/combine-diff.c:1288:12: branch_false: following ‘false’ branch...
git-2.49.0/combine-diff.c:1292:18: branch_false: ...to here
git-2.49.0/combine-diff.c:1292:17: branch_true: following ‘true’ branch...
git-2.49.0/combine-diff.c:1293:17: branch_true: ...to here
git-2.49.0/combine-diff.c:1293:17: call_function: calling ‘show_patch_diff’ from ‘show_combined_diff’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def215]
git-2.49.0/diagnose.c:210:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’
git-2.49.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.49.0/diagnose.c:203:21: branch_false: ...to here
git-2.49.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.49.0/diagnose.c:209:29: branch_false: ...to here
git-2.49.0/diagnose.c:210:13: acquire_resource: opened here
git-2.49.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-775): [#def216]
git-2.49.0/diagnose.c:281:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.49.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.49.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.49.0/diagnose.c:203:21: branch_false: ...to here
git-2.49.0/diagnose.c:203:21: acquire_resource: opened here
git-2.49.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.49.0/diagnose.c:209:29: branch_false: ...to here
git-2.49.0/diagnose.c:210:12: branch_true: following ‘true’ branch...
git-2.49.0/diagnose.c:211:23: branch_true: ...to here
git-2.49.0/diagnose.c:211:23: call_function: calling ‘_’ from ‘create_diagnostics_archive’
git-2.49.0/diagnose.c:211:23: return_function: returning to ‘create_diagnostics_archive’ from ‘_’
git-2.49.0/diagnose.c:272:12: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/diagnose.c:281:16: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
git-2.49.0/diff-lib.c:313:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.49.0/diff-lib.c:434:13: enter_function: entry to ‘do_oneway_diff’
git-2.49.0/diff-lib.c:445:12: branch_true: following ‘true’ branch...
git-2.49.0/diff-lib.c:446:13: branch_true: ...to here
git-2.49.0/diff-lib.c:445:13: branch_true: following ‘true’ branch...
git-2.49.0/diff-lib.c:445:13: branch_true: ...to here
git-2.49.0/diff-lib.c:445:13: branch_false: following ‘false’ branch (when ‘idx’ is NULL)...
git-2.49.0/diff-lib.c:454:18: branch_false: ...to here
git-2.49.0/diff-lib.c:454:18: branch_true: following ‘true’ branch...
branch_true: ...to here
git-2.49.0/diff-lib.c:459:12: branch_false: following ‘false’ branch...
git-2.49.0/diff-lib.c:471:12: branch_false: ...to here
git-2.49.0/diff-lib.c:471:12: branch_true: following ‘true’ branch (when ‘tree’ is NULL)...
git-2.49.0/diff-lib.c:472:17: branch_true: ...to here
git-2.49.0/diff-lib.c:472:17: call_function: calling ‘show_new_file’ from ‘do_oneway_diff’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
git-2.49.0/dir.c:3910:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ucd’
git-2.49.0/dir.c:3940:12: enter_function: entry to ‘invalidate_one_component’
git-2.49.0/dir.c:3946:12: branch_true: following ‘true’ branch (when ‘rest’ is non-NULL)...
git-2.49.0/dir.c:3947:37: branch_true: ...to here
git-2.49.0/dir.c:3949:25: call_function: calling ‘lookup_untracked’ from ‘invalidate_one_component’
git-2.49.0/dir.c:3949:25: return_function: returning to ‘invalidate_one_component’ from ‘lookup_untracked’
git-2.49.0/dir.c:3951:25: call_function: calling ‘invalidate_one_component’ from ‘invalidate_one_component’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
git-2.49.0/gpg-interface.c:266:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘next’
git-2.49.0/gpg-interface.c:224:13: enter_function: entry to ‘parse_gpg_output’
git-2.49.0/gpg-interface.c:232:26: branch_true: following ‘true’ branch...
branch_true: ...to here
git-2.49.0/gpg-interface.c:235:20: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/gpg-interface.c:239:22: call_function: inlined call to ‘skip_prefix’ from ‘parse_gpg_output’
git-2.49.0/gpg-interface.c:239:20: branch_true: following ‘true’ branch...
branch_true: ...to here
git-2.49.0/gpg-interface.c:243:36: branch_true: following ‘true’ branch (when ‘i != 8’)...
git-2.49.0/gpg-interface.c:244:29: branch_true: ...to here
git-2.49.0/gpg-interface.c:244:28: branch_true: following ‘true’ branch...
git-2.49.0/gpg-interface.c:254:37: branch_true: ...to here
git-2.49.0/gpg-interface.c:262:36: branch_true: following ‘true’ branch...
git-2.49.0/gpg-interface.c:263:48: branch_true: ...to here
git-2.49.0/gpg-interface.c:264:41: call_function: calling ‘replace_cstring’ from ‘parse_gpg_output’
git-2.49.0/gpg-interface.c:264:41: return_function: returning to ‘parse_gpg_output’ from ‘replace_cstring’
git-2.49.0/gpg-interface.c:266:45: danger: dereference of NULL ‘next’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
git-2.49.0/gpg-interface.c:307:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘next’
git-2.49.0/gpg-interface.c:224:13: enter_function: entry to ‘parse_gpg_output’
git-2.49.0/gpg-interface.c:232:26: branch_true: following ‘true’ branch...
branch_true: ...to here
git-2.49.0/gpg-interface.c:235:20: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/gpg-interface.c:239:22: call_function: inlined call to ‘skip_prefix’ from ‘parse_gpg_output’
git-2.49.0/gpg-interface.c:239:20: branch_true: following ‘true’ branch...
branch_true: ...to here
git-2.49.0/gpg-interface.c:243:36: branch_true: following ‘true’ branch (when ‘i != 8’)...
git-2.49.0/gpg-interface.c:244:29: branch_true: ...to here
git-2.49.0/gpg-interface.c:244:28: branch_true: following ‘true’ branch...
git-2.49.0/gpg-interface.c:254:37: branch_true: ...to here
git-2.49.0/gpg-interface.c:262:36: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/gpg-interface.c:274:36: branch_false: following ‘false’ branch...
git-2.49.0/gpg-interface.c:292:37: branch_false: ...to here
git-2.49.0/gpg-interface.c:292:36: branch_true: following ‘true’ branch...
git-2.49.0/gpg-interface.c:296:48: branch_true: ...to here
git-2.49.0/gpg-interface.c:297:41: call_function: calling ‘replace_cstring’ from ‘parse_gpg_output’
git-2.49.0/gpg-interface.c:297:41: return_function: returning to ‘parse_gpg_output’ from ‘replace_cstring’
git-2.49.0/gpg-interface.c:306:53: branch_true: following ‘true’ branch (when ‘j != 0’)...
git-2.49.0/gpg-interface.c:307:54: branch_true: ...to here
git-2.49.0/gpg-interface.c:307:54: danger: dereference of NULL ‘next’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
git-2.49.0/graph.c:1115:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parents’
git-2.49.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.49.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
git-2.49.0/graph.c:1148:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.49.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.49.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def223]
git-2.49.0/loose.c:200:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(path.buf, 1089, 438)’
git-2.49.0/loose.c:169:12: enter_function: entry to ‘write_one_object’
git-2.49.0/loose.c:181:12: branch_false: following ‘false’ branch...
git-2.49.0/loose.c:183:13: branch_false: ...to here
git-2.49.0/loose.c:183:12: branch_false: following ‘false’ branch...
git-2.49.0/loose.c:185:14: branch_false: ...to here
git-2.49.0/loose.c:189:12: branch_false: following ‘false’ branch...
git-2.49.0/loose.c:191:13: branch_false: ...to here
git-2.49.0/loose.c:191:13: release_resource: first ‘close’ here
git-2.49.0/loose.c:191:12: branch_true: following ‘true’ branch...
git-2.49.0/loose.c:192:17: branch_true: ...to here
git-2.49.0/loose.c:199:9: call_function: calling ‘_’ from ‘write_one_object’
git-2.49.0/loose.c:199:9: return_function: returning to ‘write_one_object’ from ‘_’
git-2.49.0/loose.c:200:9: danger: second ‘close’ here; first ‘close’ was at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def224]
git-2.49.0/midx.c:222:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘git_open_cloexec(midx_name, 0)’
git-2.49.0/midx.c:882:5: enter_function: entry to ‘verify_midx_file’
git-2.49.0/midx.c:887:38: call_function: calling ‘load_multi_pack_index’ from ‘verify_midx_file’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def225]
git-2.49.0/pack-write.c:274:21: warning[-Wanalyzer-null-argument]: use of NULL ‘rev_name’ where non-null expected
git-2.49.0/pack-write.c:558:6: enter_function: entry to ‘stage_tmp_packfiles’
git-2.49.0/pack-write.c:571:12: branch_false: following ‘false’ branch...
git-2.49.0/pack-write.c:574:33: branch_false: ...to here
git-2.49.0/pack-write.c:574:33: call_function: calling ‘write_idx_file’ from ‘stage_tmp_packfiles’
git-2.49.0/pack-write.c:574:33: return_function: returning to ‘stage_tmp_packfiles’ from ‘write_idx_file’
git-2.49.0/pack-write.c:576:12: branch_false: following ‘false’ branch...
git-2.49.0/pack-write.c:579:24: branch_false: ...to here
git-2.49.0/pack-write.c:579:24: call_function: calling ‘write_rev_file’ from ‘stage_tmp_packfiles’
Error: GCC_ANALYZER_WARNING: [#def226]
git-2.49.0/pager.c:55:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.49.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.49.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.49.0/pager.c:52:9: branch_false: ...to here
git-2.49.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.49.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.49.0/pager.c:55:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def227]
git-2.49.0/pager.c:59:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
git-2.49.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.49.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.49.0/pager.c:52:9: branch_false: ...to here
git-2.49.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.49.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.49.0/pager.c:58:12: branch_true: following ‘true’ branch...
git-2.49.0/pager.c:59:17: branch_true: ...to here
git-2.49.0/pager.c:59:17: danger: ‘2’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
git-2.49.0/range-diff.c:535:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘a_util’
git-2.49.0/range-diff.c:529:16: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:531:26: branch_true: ...to here
git-2.49.0/range-diff.c:531:26: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:531:38: branch_true: ...to here
git-2.49.0/range-diff.c:532:26: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/range-diff.c:535:24: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:536:34: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:536:48: branch_true: ...to here
git-2.49.0/range-diff.c:535:24: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:535:37: danger: dereference of NULL ‘a_util’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
git-2.49.0/range-diff.c:548:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b_util’
git-2.49.0/range-diff.c:529:16: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:531:26: branch_true: ...to here
git-2.49.0/range-diff.c:531:26: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:531:38: branch_true: ...to here
git-2.49.0/range-diff.c:532:26: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:532:38: branch_true: ...to here
git-2.49.0/range-diff.c:535:24: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:535:37: branch_true: ...to here
git-2.49.0/range-diff.c:539:20: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:539:34: branch_true: ...to here
git-2.49.0/range-diff.c:539:21: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/range-diff.c:548:24: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:548:37: danger: dereference of NULL ‘b_util’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def230]
git-2.49.0/range-diff.c:557:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b_util’
git-2.49.0/range-diff.c:529:16: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:531:26: branch_true: ...to here
git-2.49.0/range-diff.c:531:26: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:531:38: branch_true: ...to here
git-2.49.0/range-diff.c:532:26: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:532:38: branch_true: ...to here
git-2.49.0/range-diff.c:535:24: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:535:37: branch_true: ...to here
git-2.49.0/range-diff.c:539:20: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:539:34: branch_true: ...to here
git-2.49.0/range-diff.c:539:21: branch_false: following ‘false’ branch...
branch_false: ...to here
git-2.49.0/range-diff.c:548:24: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:548:24: branch_false: following ‘false’ branch...
git-2.49.0/range-diff.c:556:20: branch_false: ...to here
git-2.49.0/range-diff.c:556:20: branch_true: following ‘true’ branch...
git-2.49.0/range-diff.c:557:34: branch_true: ...to here
git-2.49.0/range-diff.c:557:43: danger: dereference of NULL ‘b_util’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
git-2.49.0/read-cache.h:42:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.49.0/diff-lib.c:509:12: enter_function: entry to ‘oneway_diff’
git-2.49.0/diff-lib.c:522:12: branch_true: following ‘true’ branch...
branch_true: ...to here
git-2.49.0/diff-lib.c:525:13: branch_false: following ‘false’ branch (when ‘idx’ is NULL)...
branch_false: ...to here
git-2.49.0/diff-lib.c:525:13: call_function: calling ‘ce_path_match’ from ‘oneway_diff’
Error: GCC_ANALYZER_WARNING (CWE-835): [#def232]
git-2.49.0/refs.c:201:26: warning[-Wanalyzer-infinite-loop]: infinite loop
git-2.49.0/refs.c:2824:12: enter_function: entry to ‘migrate_one_reflog_entry’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
git-2.49.0/refs/packed-backend.c:1447:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
git-2.49.0/refs/packed-backend.c:1634:12: enter_function: entry to ‘packed_transaction_prepare’
git-2.49.0/refs/packed-backend.c:1638:41: call_function: calling ‘packed_downcast’ from ‘packed_transaction_prepare’
git-2.49.0/refs/packed-backend.c:1638:41: return_function: returning to ‘packed_transaction_prepare’ from ‘packed_downcast’
git-2.49.0/refs/packed-backend.c:1674:12: branch_false: following ‘false’ branch...
git-2.49.0/refs/packed-backend.c:1677:14: call_function: inlined call to ‘is_lock_file_locked’ from ‘packed_transaction_prepare’
git-2.49.0/refs/packed-backend.c:1677:12: branch_false: following ‘false’ branch...
git-2.49.0/refs/packed-backend.c:1683:13: branch_false: ...to here
git-2.49.0/refs/packed-backend.c:1683:13: call_function: calling ‘write_with_updates’ from ‘packed_transaction_prepare’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
git-2.49.0/refs/reftable-backend.c:1055:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arg’
git-2.49.0/refs/reftable-backend.c:1039:12: enter_function: entry to ‘queue_transaction_update’
git-2.49.0/refs/reftable-backend.c:1045:45: release_memory: ‘arg’ is NULL
git-2.49.0/refs/reftable-backend.c:1048:12: branch_false: following ‘false’ branch...
git-2.49.0/refs/reftable-backend.c:1051:15: branch_false: ...to here
git-2.49.0/refs/reftable-backend.c:1051:15: call_function: calling ‘prepare_transaction_update’ from ‘queue_transaction_update’
git-2.49.0/refs/reftable-backend.c:1051:15: return_function: returning to ‘queue_transaction_update’ from ‘prepare_transaction_update’
git-2.49.0/refs/reftable-backend.c:1052:12: branch_false: following ‘false’ branch...
git-2.49.0/refs/reftable-backend.c:1055:9: branch_false: ...to here
git-2.49.0/refs/reftable-backend.c:1055:9: release_memory: ‘arg’ is NULL
git-2.49.0/refs/reftable-backend.c:1055:9: danger: dereference of NULL ‘arg’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def235]
git-2.49.0/reftable/basics.c:246:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
git-2.49.0/reftable/basics.c:217:8: enter_function: entry to ‘parse_names’
git-2.49.0/reftable/basics.c:225:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.49.0/reftable/basics.c:226:30: branch_true: ...to here
git-2.49.0/reftable/basics.c:232:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.49.0/reftable/basics.c:233:29: branch_true: ...to here
git-2.49.0/reftable/basics.c:233:28: branch_true: following ‘true’ branch...
git-2.49.0/reftable/basics.c:233:29: branch_true: ...to here
git-2.49.0/reftable/basics.c:233:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.49.0/reftable/basics.c:233:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.49.0/reftable/basics.c:233:29: branch_false: following ‘false’ branch...
git-2.49.0/reftable/basics.c:237:30: branch_false: ...to here
git-2.49.0/reftable/basics.c:237:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.49.0/reftable/basics.c:237:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.49.0/reftable/basics.c:238:28: branch_false: following ‘false’ branch...
git-2.49.0/reftable/basics.c:241:17: branch_false: ...to here
git-2.49.0/reftable/basics.c:225:16: branch_false: following ‘false’ branch (when ‘p >= end’)...
git-2.49.0/reftable/basics.c:244:13: branch_false: ...to here
git-2.49.0/reftable/basics.c:244:12: branch_false: following ‘false’ branch...
git-2.49.0/reftable/basics.c:246:14: branch_false: ...to here
git-2.49.0/reftable/basics.c:246:9: danger: out-of-bounds write from byte 8 till byte 15 but region ends at byte 8
Error: GCC_ANALYZER_WARNING (CWE-416): [#def236]
git-2.49.0/reftable/basics.c:252:17: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘names’
git-2.49.0/reftable/basics.c:217:8: enter_function: entry to ‘parse_names’
git-2.49.0/reftable/basics.c:225:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.49.0/reftable/basics.c:226:30: branch_true: ...to here
git-2.49.0/reftable/basics.c:232:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.49.0/reftable/basics.c:233:29: branch_true: ...to here
git-2.49.0/reftable/basics.c:233:28: branch_true: following ‘true’ branch...
git-2.49.0/reftable/basics.c:233:29: branch_true: ...to here
git-2.49.0/reftable/basics.c:233:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.49.0/reftable/basics.c:233:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.49.0/reftable/basics.c:233:29: branch_false: following ‘false’ branch...
git-2.49.0/reftable/basics.c:237:30: branch_false: ...to here
git-2.49.0/reftable/basics.c:237:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.49.0/reftable/basics.c:237:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.49.0/reftable/basics.c:238:28: branch_false: following ‘false’ branch...
git-2.49.0/reftable/basics.c:241:17: branch_false: ...to here
git-2.49.0/reftable/basics.c:225:16: branch_false: following ‘false’ branch (when ‘p >= end’)...
git-2.49.0/reftable/basics.c:244:13: branch_false: ...to here
git-2.49.0/reftable/basics.c:244:12: branch_true: following ‘true’ branch...
git-2.49.0/reftable/basics.c:244:13: branch_true: ...to here
git-2.49.0/reftable/basics.c:244:13: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.49.0/reftable/basics.c:244:13: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.49.0/reftable/basics.c:244:13: branch_true: following ‘true’ branch...
git-2.49.0/reftable/basics.c:245:17: branch_true: ...to here
git-2.49.0/reftable/basics.c:251:28: branch_true: following ‘true’ branch (when ‘names_len > i’)...
git-2.49.0/reftable/basics.c:252:36: branch_true: ...to here
git-2.49.0/reftable/basics.c:252:17: danger: use after ‘free’ of ‘names + i * 8’; freed at [(63)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/62)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def237]
git-2.49.0/reftable/blocksource.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
git-2.49.0/reftable/blocksource.c:107:20: branch_false: following ‘false’ branch...
git-2.49.0/reftable/blocksource.c:110:17: branch_false: ...to here
git-2.49.0/reftable/blocksource.c:134:12: branch_false: following ‘false’ branch...
git-2.49.0/reftable/blocksource.c:136:12: branch_false: ...to here
git-2.49.0/reftable/blocksource.c:136:12: branch_true: following ‘true’ branch (when ‘err != 0’)...
git-2.49.0/reftable/blocksource.c:137:17: branch_true: ...to here
git-2.49.0/reftable/blocksource.c:137:17: danger: use of uninitialized value ‘p’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def238]
git-2.49.0/reftable/stack.c:351:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
git-2.49.0/reftable/stack.c:633:5: enter_function: entry to ‘reftable_stack_reload’
git-2.49.0/reftable/stack.c:637:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
git-2.49.0/reftable/stack.c:351:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_readers’
git-2.49.0/reftable/stack.c:633:5: enter_function: entry to ‘reftable_stack_reload’
git-2.49.0/reftable/stack.c:637:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
git-2.49.0/reftable/stack.c:351:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘reused’
git-2.49.0/reftable/stack.c:633:5: enter_function: entry to ‘reftable_stack_reload’
git-2.49.0/reftable/stack.c:637:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
git-2.49.0/remote.c:1953:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.49.0/remote.c:1933:20: enter_function: entry to ‘get_expanded_map’
git-2.49.0/remote.c:1938:21: release_memory: ‘ret’ is NULL
git-2.49.0/remote.c:1941:33: branch_true: following ‘true’ branch (when ‘ref’ is non-NULL)...
git-2.49.0/remote.c:1942:23: branch_true: ...to here
git-2.49.0/remote.c:1944:17: call_function: calling ‘strbuf_setlen’ from ‘get_expanded_map’
git-2.49.0/remote.c:1944:17: return_function: returning to ‘get_expanded_map’ from ‘strbuf_setlen’
git-2.49.0/remote.c:1946:20: branch_false: following ‘false’ branch...
git-2.49.0/remote.c:1949:45: branch_false: ...to here
git-2.49.0/remote.c:1941:33: branch_true: following ‘true’ branch (when ‘ref’ is non-NULL)...
git-2.49.0/remote.c:1942:23: branch_true: ...to here
git-2.49.0/remote.c:1944:17: call_function: calling ‘strbuf_setlen’ from ‘get_expanded_map’
git-2.49.0/remote.c:1944:17: return_function: returning to ‘get_expanded_map’ from ‘strbuf_setlen’
git-2.49.0/remote.c:1946:20: branch_false: following ‘false’ branch...
git-2.49.0/remote.c:1949:45: branch_false: ...to here
git-2.49.0/remote.c:1948:20: branch_true: following ‘true’ branch...
git-2.49.0/remote.c:1950:22: branch_true: ...to here
git-2.49.0/remote.c:1948:21: branch_true: following ‘true’ branch...
git-2.49.0/remote.c:1951:43: branch_true: ...to here
git-2.49.0/remote.c:1951:43: call_function: calling ‘copy_ref’ from ‘get_expanded_map’
git-2.49.0/remote.c:1951:43: return_function: returning to ‘get_expanded_map’ from ‘copy_ref’
git-2.49.0/remote.c:1953:29: danger: dereference of NULL ‘copy_ref(ref)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def242]
git-2.49.0/run-command.c:343:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, to)’
git-2.49.0/run-command.c:1856:22: enter_function: entry to ‘start_bg_command’
git-2.49.0/run-command.c:1873:12: branch_false: following ‘false’ branch...
git-2.49.0/run-command.c:1876:14: branch_false: ...to here
git-2.49.0/run-command.c:1879:15: call_function: calling ‘start_command’ from ‘start_bg_command’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
git-2.49.0/strbuf.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.49.0/strbuf.c:1049:6: enter_function: entry to ‘strbuf_stripspace’
git-2.49.0/strbuf.c:1056:9: call_function: calling ‘strbuf_grow’ from ‘strbuf_stripspace’
Error: CPPCHECK_WARNING (CWE-457): [#def244]
git-2.49.0/t/unit-tests/clar/clar.c:392: warning[uninitvar]: Uninitialized variable: matchlen
Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
git-2.49.0/t/unit-tests/clar/clar/summary.h:73:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "w")’
git-2.49.0/t/unit-tests/clar/clar/summary.h:69:19: acquire_resource: opened here
git-2.49.0/t/unit-tests/clar/clar/summary.h:69:12: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/clar/clar/summary.h:73:24: branch_false: ...to here
git-2.49.0/t/unit-tests/clar/clar/summary.h:73:12: danger: ‘fopen(filename, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
git-2.49.0/t/unit-tests/clar/clar/summary.h:73:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "w")’
git-2.49.0/t/unit-tests/clar/clar/summary.h:69:19: acquire_memory: allocated here
git-2.49.0/t/unit-tests/clar/clar/summary.h:69:12: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/clar/clar/summary.h:73:24: branch_false: ...to here
git-2.49.0/t/unit-tests/clar/clar/summary.h:73:12: danger: ‘fopen(filename, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
git-2.49.0/t/unit-tests/t-reftable-basics.c:156:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.49.0/t/unit-tests/t-reftable-basics.c:28:5: enter_function: entry to ‘cmd_main’
git-2.49.0/t/unit-tests/t-reftable-basics.c:149:9: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-basics.c:149:9: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-basics.c:153:17: call_function: calling ‘reftable_alloc_grow’ from ‘cmd_main’
git-2.49.0/t/unit-tests/t-reftable-basics.c:153:17: return_function: returning to ‘cmd_main’ from ‘reftable_alloc_grow’
git-2.49.0/t/unit-tests/t-reftable-basics.c:153:17: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-basics.c:153:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-basics.c:156:17: danger: dereference of NULL ‘reftable_alloc_grow(0, 1, 4, &alloc)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def248]
git-2.49.0/t/unit-tests/t-reftable-basics.c:182:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arr’
git-2.49.0/t/unit-tests/t-reftable-basics.c:28:5: enter_function: entry to ‘cmd_main’
git-2.49.0/t/unit-tests/t-reftable-basics.c:175:9: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-basics.c:175:9: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-basics.c:179:17: call_function: calling ‘reftable_alloc_grow’ from ‘cmd_main’
git-2.49.0/t/unit-tests/t-reftable-basics.c:179:17: return_function: returning to ‘cmd_main’ from ‘reftable_alloc_grow’
git-2.49.0/t/unit-tests/t-reftable-basics.c:179:17: branch_true: following ‘true’ branch...
git-2.49.0/t/unit-tests/t-reftable-basics.c:179:17: branch_true: ...to here
git-2.49.0/t/unit-tests/t-reftable-basics.c:182:17: danger: dereference of NULL ‘arr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
git-2.49.0/t/unit-tests/t-reftable-merged.c:182:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
git-2.49.0/t/unit-tests/t-reftable-merged.c:104:13: enter_function: entry to ‘t_merged_refs’
git-2.49.0/t/unit-tests/t-reftable-merged.c:159:17: call_function: calling ‘merged_table_from_records’ from ‘t_merged_refs’
git-2.49.0/t/unit-tests/t-reftable-merged.c:159:17: return_function: returning to ‘t_merged_refs’ from ‘merged_table_from_records’
git-2.49.0/t/unit-tests/t-reftable-merged.c:175:16: branch_true: following ‘true’ branch (when ‘len != 100’)...
git-2.49.0/t/unit-tests/t-reftable-merged.c:176:44: branch_true: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:178:20: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: call_function: calling ‘reftable_alloc_grow’ from ‘t_merged_refs’
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: return_function: returning to ‘t_merged_refs’ from ‘reftable_alloc_grow’
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-merged.c:181:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:182:20: release_memory: ‘out’ is NULL
git-2.49.0/t/unit-tests/t-reftable-merged.c:182:17: danger: dereference of NULL ‘out + len * 96’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
git-2.49.0/t/unit-tests/t-reftable-merged.c:463:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘out’
git-2.49.0/t/unit-tests/t-reftable-merged.c:380:13: enter_function: entry to ‘t_merged_logs’
git-2.49.0/t/unit-tests/t-reftable-merged.c:439:44: call_function: calling ‘merged_table_from_log_records’ from ‘t_merged_logs’
git-2.49.0/t/unit-tests/t-reftable-merged.c:439:44: return_function: returning to ‘t_merged_logs’ from ‘merged_table_from_log_records’
git-2.49.0/t/unit-tests/t-reftable-merged.c:456:16: branch_true: following ‘true’ branch (when ‘len != 100’)...
git-2.49.0/t/unit-tests/t-reftable-merged.c:457:44: branch_true: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:459:20: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: call_function: calling ‘reftable_alloc_grow’ from ‘t_merged_logs’
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: return_function: returning to ‘t_merged_logs’ from ‘reftable_alloc_grow’
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: branch_false: following ‘false’ branch...
git-2.49.0/t/unit-tests/t-reftable-merged.c:462:17: branch_false: ...to here
git-2.49.0/t/unit-tests/t-reftable-merged.c:463:20: release_memory: ‘out’ is NULL
git-2.49.0/t/unit-tests/t-reftable-merged.c:463:17: danger: dereference of NULL ‘out + len * 144’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
git-2.49.0/tempfile.c:274:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(*tempfile.fd, mode)’
git-2.49.0/tempfile.c:268:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.49.0/tempfile.c:270:13: branch_false: ...to here
git-2.49.0/tempfile.c:270:12: branch_false: following ‘false’ branch...
git-2.49.0/tempfile.c:273:31: branch_false: ...to here
git-2.49.0/tempfile.c:273:24: acquire_memory: allocated here
git-2.49.0/tempfile.c:274:16: 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): [#def252]
git-2.49.0/tempfile.c:333:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*tempfile.filename.buf, 513)’
git-2.49.0/tempfile.c:328:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.49.0/tempfile.c:330:18: branch_false: ...to here
git-2.49.0/tempfile.c:330:12: branch_false: following ‘false’ branch...
git-2.49.0/tempfile.c:332:29: branch_false: ...to here
git-2.49.0/tempfile.c:332:24: acquire_resource: opened here
git-2.49.0/tempfile.c:333:16: 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): [#def253]
git-2.49.0/unpack-trees.c:2332:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.49.0/unpack-trees.c:3019:5: enter_function: entry to ‘oneway_merge’
git-2.49.0/unpack-trees.c:3025:12: branch_false: following ‘false’ branch...
git-2.49.0/unpack-trees.c:3029:12: branch_false: ...to here
git-2.49.0/unpack-trees.c:3030:24: call_function: calling ‘deleted_entry’ from ‘oneway_merge’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
git-2.49.0/utf8.c:137:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
git-2.49.0/utf8.c:791:5: enter_function: entry to ‘is_hfs_dotmailmap’
git-2.49.0/utf8.c:793:16: call_function: calling ‘is_hfs_dot_str’ from ‘is_hfs_dotmailmap’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def255]
git-2.49.0/worktree.c:936:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(gitdir.buf, 0)’
git-2.49.0/worktree.c:915:12: branch_false: following ‘false’ branch...
git-2.49.0/worktree.c:920:9: branch_false: ...to here
git-2.49.0/worktree.c:921:12: branch_false: following ‘false’ branch...
git-2.49.0/worktree.c:924:18: branch_false: ...to here
git-2.49.0/worktree.c:924:12: branch_false: following ‘false’ branch...
git-2.49.0/worktree.c:929:19: branch_false: ...to here
git-2.49.0/worktree.c:929:14: acquire_resource: opened here
git-2.49.0/worktree.c:930:12: branch_false: following ‘false’ branch...
git-2.49.0/worktree.c:936:23: branch_false: ...to here
git-2.49.0/worktree.c:936: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.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-148.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | git-2.49.0-2.fc43 |
store-results-to | /tmp/tmpd_5c2d7m/git-2.49.0-2.fc43.tar.xz |
time-created | 2025-04-25 12:51:30 |
time-finished | 2025-04-25 12:58:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpd_5c2d7m/git-2.49.0-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpd_5c2d7m/git-2.49.0-2.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |