git-2.52.0-1.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/gitk:10:5: error[SC1035]: You need a space after the [ and before the ].
Error: SHELLCHECK_WARNING: [#def2]
/usr/bin/gitk:10:5: error[SC1054]: You need a space after the '{'.
Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/bin/gitk:10:5: error[SC1073]: Couldn't parse this test expression. Fix to allow more checks.
Error: SHELLCHECK_WARNING (CWE-398): [#def4]
/usr/bin/gitk:10:12: error[SC1072]: Expected test to end here (don't wrap commands in []/[[]]). Fix any mentioned problems and try again.
Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/usr/libexec/git-core/git-difftool--helper:8:1: warning[SC2034]: TOOL_MODE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-456): [#def6]
/usr/libexec/git-core/git-difftool--helper:8:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/libexec/git-core/git-difftool--helper:86:2: warning[SC2034]: LOCAL appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/libexec/git-core/git-difftool--helper:87:2: warning[SC2034]: REMOTE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/libexec/git-core/git-filter-branch:100:1: warning[SC2034]: USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/libexec/git-core/git-filter-branch:108:1: warning[SC2034]: OPTIONS_SPEC appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-456): [#def11]
/usr/libexec/git-core/git-filter-branch:121:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
Error: SHELLCHECK_WARNING (CWE-480): [#def12]
/usr/libexec/git-core/git-filter-branch:368:10: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
Error: SHELLCHECK_WARNING (CWE-156): [#def13]
/usr/libexec/git-core/git-filter-branch:498:28: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def14]
/usr/libexec/git-core/git-filter-branch:527:12: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-477): [#def15]
/usr/libexec/git-core/git-filter-branch:551:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-569): [#def16]
/usr/libexec/git-core/git-filter-branch:558:37: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def17]
/usr/libexec/git-core/git-filter-branch:558:44: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-252): [#def18]
/usr/libexec/git-core/git-filter-branch:656:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-561): [#def19]
/usr/libexec/git-core/git-gui:10:2: warning[SC2093]: Remove "exec " if script should continue after this command.
Error: SHELLCHECK_WARNING (CWE-456): [#def20]
/usr/libexec/git-core/git-gui:12:5: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
Error: SHELLCHECK_WARNING (CWE-569): [#def21]
/usr/libexec/git-core/git-gui:12:13: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def22]
/usr/libexec/git-core/git-gui:12: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:279:1: warning[SC2120]: cache_setup references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def90]
/usr/libexec/git-core/git-subtree:317:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def91]
/usr/libexec/git-core/git-subtree:413:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def92]
/usr/libexec/git-core/git-subtree:461:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def93]
/usr/libexec/git-core/git-subtree:472:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def94]
/usr/libexec/git-core/git-subtree:639:13: warning[SC2034]: mode appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-685): [#def95]
/usr/libexec/git-core/git-subtree:769:1: warning[SC2120]: ensure_clean references arguments, but none are ever passed.
Error: SHELLCHECK_WARNING: [#def96]
/usr/libexec/git-core/git-subtree:827:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def97]
/usr/libexec/git-core/git-subtree:828:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING: [#def98]
/usr/libexec/git-core/git-subtree:843:2: warning[SC3043]: In POSIX sh, 'local' is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def99]
/usr/libexec/git-core/git-subtree:996:2: warning[SC2034]: unrevs appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def100]
/usr/libexec/git-core/git-web--browse:19:1: warning[SC2034]: USAGE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def101]
/usr/libexec/git-core/git-web--browse:23:1: warning[SC2034]: NONGIT_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-140): [#def102]
/usr/share/doc/git/contrib/completion/git-completion.bash:387: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:400: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:475: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:475: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:477:8: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-140): [#def107]
/usr/share/doc/git/contrib/completion/git-completion.bash:572: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:928: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:931: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:938: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:973: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:973: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:973: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:1041: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:1281: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:1305: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:1405: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:1594: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:1659: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:1739: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:2396:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-571): [#def122]
/usr/share/doc/git/contrib/completion/git-completion.bash:2408: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:2691: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:2742: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:3079: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:3146: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:3307: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:3403: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:3437: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:3468: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:3516: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:3568: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:3939:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-758): [#def134]
/usr/share/doc/git/contrib/completion/git-prompt.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: SHELLCHECK_WARNING (CWE-563): [#def135]
/usr/share/doc/git/contrib/completion/git-prompt.sh:159:48: warning[SC2034]: n appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def136]
/usr/share/doc/git/contrib/completion/git-prompt.sh:161:12: warning[SC2154]: __git_LF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-571): [#def137]
/usr/share/doc/git/contrib/completion/git-prompt.sh:164:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def138]
/usr/share/doc/git/contrib/completion/git-prompt.sh:207:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-457): [#def139]
/usr/share/doc/git/contrib/completion/git-prompt.sh:317:47: warning[SC2154]: __git_ESC is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def140]
/usr/share/doc/git/contrib/completion/git-prompt.sh:359:22: warning[SC2154]: __git_CRLF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-569): [#def141]
/usr/share/doc/git/contrib/completion/git-prompt.sh:575:6: warning[SC2221]: This pattern always overrides a later one on line 575.
Error: SHELLCHECK_WARNING (CWE-569): [#def142]
/usr/share/doc/git/contrib/completion/git-prompt.sh:575:10: warning[SC2222]: This pattern never matches because of a previous pattern on line 575.
Error: SHELLCHECK_WARNING (CWE-569): [#def143]
/usr/share/doc/git/contrib/coverage-diff.sh:48:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-477): [#def144]
/usr/share/doc/git/contrib/fast-import/git-import.sh:7:14: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def145]
/usr/share/doc/git/contrib/fast-import/git-import.sh:15:21: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-156): [#def146]
/usr/share/doc/git/contrib/fast-import/git-import.sh:33:13: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def147]
/usr/share/doc/git/contrib/rerere-train.sh:14:1: warning[SC2034]: SUBDIRECTORY_OK appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-252): [#def148]
/usr/share/doc/git/contrib/update-unicode/update_unicode.sh:8:1: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-758): [#def149]
/usr/share/git-core/contrib/completion/git-prompt.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: SHELLCHECK_WARNING (CWE-563): [#def150]
/usr/share/git-core/contrib/completion/git-prompt.sh:159:48: warning[SC2034]: n appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-457): [#def151]
/usr/share/git-core/contrib/completion/git-prompt.sh:161:12: warning[SC2154]: __git_LF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-571): [#def152]
/usr/share/git-core/contrib/completion/git-prompt.sh:164:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def153]
/usr/share/git-core/contrib/completion/git-prompt.sh:207:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-457): [#def154]
/usr/share/git-core/contrib/completion/git-prompt.sh:317:47: warning[SC2154]: __git_ESC is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def155]
/usr/share/git-core/contrib/completion/git-prompt.sh:359:22: warning[SC2154]: __git_CRLF is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-569): [#def156]
/usr/share/git-core/contrib/completion/git-prompt.sh:575:6: warning[SC2221]: This pattern always overrides a later one on line 575.
Error: SHELLCHECK_WARNING (CWE-569): [#def157]
/usr/share/git-core/contrib/completion/git-prompt.sh:575:10: warning[SC2222]: This pattern never matches because of a previous pattern on line 575.
Error: SHELLCHECK_WARNING (CWE-156): [#def158]
/usr/share/git-core/templates/hooks/pre-commit.sample:31:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def159]
/usr/share/git-core/templates/hooks/pre-push.sample:22:1: warning[SC2034]: remote appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def160]
/usr/share/git-core/templates/hooks/pre-push.sample:23:1: warning[SC2034]: url appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def161]
/usr/share/git-core/templates/hooks/pre-push.sample:27:32: warning[SC2034]: remote_ref appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def162]
/usr/share/git-core/templates/hooks/pre-rebase.sample:19:1: warning[SC2034]: basebranch appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-569): [#def163]
/usr/share/git-core/templates/hooks/pre-rebase.sample:91:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-457): [#def164]
/usr/share/git-core/templates/hooks/pre-receive.sample:15:9: warning[SC2154]: value is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-563): [#def165]
/usr/share/git-core/templates/hooks/prepare-commit-msg.sample:24:1: warning[SC2034]: COMMIT_SOURCE appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def166]
/usr/share/git-core/templates/hooks/prepare-commit-msg.sample:25:1: warning[SC2034]: SHA1 appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-477): [#def167]
/usr/share/git-core/templates/hooks/update.sample:40:20: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def168]
/usr/share/git-core/templates/hooks/update.sample:40:36: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def169]
/usr/share/git-core/templates/hooks/update.sample:98:28: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
git-2.52.0/abspath.h:30:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/worktree.c:612:13: enter_function: entry to ‘repair_gitfile’
git-2.52.0/worktree.c:626:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:629:27: branch_false: ...to here
git-2.52.0/worktree.c:629:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:634:16: branch_false: ...to here
git-2.52.0/worktree.c:649:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:651:17: branch_false: ...to here
git-2.52.0/worktree.c:651:17: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:653:42: branch_false: ...to here
git-2.52.0/worktree.c:653:17: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:655:40: call_function: inlined call to ‘is_absolute_path’ from ‘repair_gitfile’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def171]
git-2.52.0/add-patch.c:316:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/add-patch.c:314:9: acquire_resource: ‘va_start’ called here
git-2.52.0/add-patch.c:315:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/add-patch.c:316:17: branch_true: ...to here
git-2.52.0/add-patch.c:316:17: throw: if ‘strvec_push’ throws an exception...
git-2.52.0/add-patch.c:316:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def172]
git-2.52.0/add-patch.c: scope_hint: In function ‘parse_hunk_header’
git-2.52.0/add-patch.c:345:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def173]
git-2.52.0/add-patch.c:345:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def174]
git-2.52.0/add-patch.c:369:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def175]
git-2.52.0/add-patch.c:369:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
git-2.52.0/add-patch.c:533:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘file_diff’
git-2.52.0/add-patch.c:414:12: enter_function: entry to ‘parse_diff’
git-2.52.0/add-patch.c:447:9: call_function: calling ‘setup_child_process’ from ‘parse_diff’
git-2.52.0/add-patch.c:447:9: return_function: returning to ‘parse_diff’ from ‘setup_child_process’
git-2.52.0/add-patch.c:450:12: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:454:14: branch_false: ...to here
git-2.52.0/add-patch.c:454:12: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:458:9: call_function: inlined call to ‘strbuf_complete_line’ from ‘parse_diff’
git-2.52.0/add-patch.c:460:12: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:494:9: branch_false: ...to here
git-2.52.0/add-patch.c:499:16: branch_true: following ‘true’ branch (when ‘p != pend’)...
git-2.52.0/add-patch.c:500:29: branch_true: ...to here
git-2.52.0/add-patch.c:502:27: call_function: inlined call to ‘normalize_marker’ from ‘parse_diff’
git-2.52.0/add-patch.c:504:20: branch_true: following ‘true’ branch (when ‘eol’ is NULL)...
git-2.52.0/add-patch.c:504:20: branch_true: ...to here
git-2.52.0/add-patch.c:507:20: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:508:21: branch_false: ...to here
git-2.52.0/add-patch.c:507:21: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:518:33: branch_false: ...to here
git-2.52.0/add-patch.c:518:27: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:521:26: branch_false: ...to here
git-2.52.0/add-patch.c:521:25: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:523:26: branch_false: ...to here
git-2.52.0/add-patch.c:523:25: branch_true: following ‘true’ branch...
git-2.52.0/add-patch.c:526:29: branch_true: ...to here
git-2.52.0/add-patch.c:526:28: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:533:25: branch_false: ...to here
git-2.52.0/add-patch.c:533:25: danger: dereference of NULL ‘file_diff’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
git-2.52.0/add-patch.c:610:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hunk’
git-2.52.0/add-patch.c:414:12: enter_function: entry to ‘parse_diff’
git-2.52.0/add-patch.c:447:9: call_function: calling ‘setup_child_process’ from ‘parse_diff’
git-2.52.0/add-patch.c:447:9: return_function: returning to ‘parse_diff’ from ‘setup_child_process’
git-2.52.0/add-patch.c:450:12: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:454:14: branch_false: ...to here
git-2.52.0/add-patch.c:454:12: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:458:9: call_function: inlined call to ‘strbuf_complete_line’ from ‘parse_diff’
git-2.52.0/add-patch.c:460:12: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:494:9: branch_false: ...to here
git-2.52.0/add-patch.c:499:16: branch_true: following ‘true’ branch (when ‘p != pend’)...
git-2.52.0/add-patch.c:500:29: branch_true: ...to here
git-2.52.0/add-patch.c:502:27: call_function: inlined call to ‘normalize_marker’ from ‘parse_diff’
git-2.52.0/add-patch.c:504:20: branch_true: following ‘true’ branch (when ‘eol’ is NULL)...
git-2.52.0/add-patch.c:504:20: branch_true: ...to here
git-2.52.0/add-patch.c:507:20: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:508:21: branch_false: ...to here
git-2.52.0/add-patch.c:507:21: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:518:33: branch_false: ...to here
git-2.52.0/add-patch.c:518:27: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:521:26: branch_false: ...to here
git-2.52.0/add-patch.c:597:20: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:604:22: branch_false: ...to here
git-2.52.0/add-patch.c:604:20: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:606:21: branch_false: ...to here
git-2.52.0/add-patch.c:606:20: branch_false: following ‘false’ branch...
git-2.52.0/add-patch.c:609:21: branch_false: ...to here
git-2.52.0/add-patch.c:609:21: branch_false: following ‘false’ branch (when ‘eol == pend’)...
git-2.52.0/add-patch.c:610:33: branch_false: ...to here
git-2.52.0/add-patch.c:610:17: danger: dereference of NULL ‘hunk’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def178]
git-2.52.0/advice.c:106:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/advice.c:242:15: enter_function: entry to ‘die_ff_impossible’
git-2.52.0/advice.c:244:9: call_function: calling ‘_’ from ‘die_ff_impossible’
git-2.52.0/advice.c:244:9: return_function: returning to ‘die_ff_impossible’ from ‘_’
git-2.52.0/advice.c:244:9: call_function: calling ‘advise_if_enabled’ from ‘die_ff_impossible’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def179]
git-2.52.0/apply.c:194:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(prefix_filename(*state.prefix, arg), 0)’
git-2.52.0/apply.c:4970:5: enter_function: entry to ‘apply_all_patches’
git-2.52.0/apply.c:4980:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
git-2.52.0/apply.c:4981:39: branch_true: ...to here
git-2.52.0/apply.c:4985:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.52.0/apply.c:4993:41: branch_false: ...to here
git-2.52.0/apply.c:4995:22: acquire_resource: opened here
git-2.52.0/apply.c:4996:20: branch_false: following ‘false’ branch...
git-2.52.0/apply.c:5003:17: branch_false: ...to here
git-2.52.0/apply.c:5004:23: call_function: calling ‘apply_patch’ from ‘apply_all_patches’
Error: COMPILER_WARNING (CWE-704): [#def180]
git-2.52.0/apply.c: scope_hint: In function ‘preimage_oid_in_gitlink_patch’
git-2.52.0/apply.c:4115:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def181]
git-2.52.0/apply.c:4115:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING: [#def182]
git-2.52.0/archive-tar.c:511:13: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.52.0/archive-tar.c:481:12: branch_false: following ‘false’ branch...
git-2.52.0/archive-tar.c:484:14: branch_false: ...to here
git-2.52.0/archive-tar.c:484:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
git-2.52.0/archive-tar.c:499:9: branch_false: ...to here
git-2.52.0/archive-tar.c:508:12: branch_false: following ‘false’ branch...
git-2.52.0/archive-tar.c:510:9: branch_false: ...to here
git-2.52.0/archive-tar.c:510:9: release_resource: closed here
git-2.52.0/archive-tar.c:511:13: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
git-2.52.0/blame.c:159:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(git_path_merge_head(r), 0)’
git-2.52.0/blame.c:2765:6: enter_function: entry to ‘setup_scoreboard’
git-2.52.0/blame.c:2778:12: branch_false: following ‘false’ branch...
git-2.52.0/blame.c:2781:12: branch_false: ...to here
git-2.52.0/blame.c:2781:12: branch_true: following ‘true’ branch...
git-2.52.0/blame.c:2782:29: branch_true: ...to here
git-2.52.0/blame.c:2782:29: call_function: calling ‘find_single_final’ from ‘setup_scoreboard’
git-2.52.0/blame.c:2782:29: return_function: returning to ‘setup_scoreboard’ from ‘find_single_final’
git-2.52.0/blame.c:2792:12: branch_true: following ‘true’ branch...
git-2.52.0/blame.c:2807:21: branch_true: ...to here
git-2.52.0/blame.c:2807:20: branch_true: following ‘true’ branch...
git-2.52.0/blame.c:2808:25: branch_true: ...to here
git-2.52.0/blame.c:2815:20: branch_false: following ‘false’ branch...
git-2.52.0/blame.c:2818:29: branch_false: ...to here
git-2.52.0/blame.c:2818:29: call_function: calling ‘fake_working_tree_commit’ from ‘setup_scoreboard’
Error: COMPILER_WARNING: [#def184]
git-2.52.0/blame.c: scope_hint: In function ‘blame_coalesce’
git-2.52.0/blame.c:1200:36: warning[-Wuse-after-free]: pointer ‘ent_20’ used after ‘free’
git-2.52.0/blame.c:1199:25: note: call to ‘free’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
git-2.52.0/blame.c:2843:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘c’
git-2.52.0/blame.c:2765:6: enter_function: entry to ‘setup_scoreboard’
git-2.52.0/blame.c:2778:12: branch_false: following ‘false’ branch...
git-2.52.0/blame.c:2781:12: branch_false: ...to here
git-2.52.0/blame.c:2781:12: branch_true: following ‘true’ branch...
git-2.52.0/blame.c:2782:29: branch_true: ...to here
git-2.52.0/blame.c:2782:29: call_function: calling ‘find_single_final’ from ‘setup_scoreboard’
git-2.52.0/blame.c:2782:29: return_function: returning to ‘setup_scoreboard’ from ‘find_single_final’
git-2.52.0/blame.c:2792:12: branch_false: following ‘false’ branch...
git-2.52.0/blame.c:2836:12: branch_false: following ‘false’ branch...
git-2.52.0/blame.c:2839:13: branch_false: ...to here
git-2.52.0/blame.c:2839:12: branch_true: following ‘true’ branch...
git-2.52.0/blame.c:2843:24: danger: dereference of NULL ‘c’
Error: COMPILER_WARNING (CWE-704): [#def186]
git-2.52.0/bloom.c: scope_hint: In function ‘get_or_compute_bloom_filter’
git-2.52.0/bloom.c:515:52: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def187]
git-2.52.0/bloom.c:515:52: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
git-2.52.0/branch.c:168:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/branch.c:91:12: enter_function: entry to ‘install_branch_config_multiple_remotes’
git-2.52.0/branch.c:99:12: branch_false: following ‘false’ branch...
git-2.52.0/branch.c:101:12: branch_false: ...to here
git-2.52.0/branch.c:119:12: branch_false: following ‘false’ branch...
git-2.52.0/branch.c:122:9: branch_false: ...to here
git-2.52.0/branch.c:122:9: call_function: calling ‘strbuf_setlen’ from ‘install_branch_config_multiple_remotes’
git-2.52.0/branch.c:122:9: return_function: returning to ‘install_branch_config_multiple_remotes’ from ‘strbuf_setlen’
git-2.52.0/branch.c:130:12: branch_false: following ‘false’ branch...
git-2.52.0/branch.c:132:9: branch_false: ...to here
git-2.52.0/branch.c:144:12: branch_true: following ‘true’ branch...
git-2.52.0/branch.c:145:31: branch_true: ...to here
git-2.52.0/branch.c:163:20: branch_true: following ‘true’ branch...
git-2.52.0/branch.c:171:40: branch_true: ...to here
git-2.52.0/branch.c:171:40: release_memory: using NULL here
git-2.52.0/branch.c:168:25: danger: dereference of NULL ‘friendly_ref_names.items’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
git-2.52.0/builtin/archive.c:16:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(output_file, 577, 438), 1)’
git-2.52.0/builtin/archive.c:15:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/archive.c:16:21: branch_true: ...to here
git-2.52.0/builtin/archive.c:16:21: acquire_resource: opened here
git-2.52.0/builtin/archive.c:16:20: danger: ‘dup2(xopen(output_file, 577, 438), 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
git-2.52.0/builtin/bisect.c:1022:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(git_path_bisect_log(), 0)’
git-2.52.0/builtin/bisect.c:1372:12: enter_function: entry to ‘cmd_bisect__log’
git-2.52.0/builtin/bisect.c:1376:16: call_function: calling ‘bisect_log’ from ‘cmd_bisect__log’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def191]
git-2.52.0/builtin/cat-file.c:152:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
git-2.52.0/builtin/cat-file.c:1019:5: enter_function: entry to ‘cmd_cat_file’
git-2.52.0/builtin/cat-file.c:1167:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/cat-file.c:1181:13: branch_false: ...to here
git-2.52.0/builtin/cat-file.c:1181:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/cat-file.c:1182:20: branch_true: ...to here
git-2.52.0/builtin/cat-file.c:1190:25: branch_false: following ‘false’ branch...
git-2.52.0/builtin/cat-file.c:1193:25: branch_false: ...to here
git-2.52.0/builtin/cat-file.c:1193:25: branch_true: following ‘true’ branch...
git-2.52.0/builtin/cat-file.c:1194:25: branch_true: ...to here
git-2.52.0/builtin/cat-file.c:1208:15: call_function: calling ‘cat_one_file’ from ‘cmd_cat_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
git-2.52.0/builtin/clone.c:121:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*path.buf, 0)’
git-2.52.0/builtin/clone.c:98:20: enter_function: entry to ‘get_repo_path_1’
git-2.52.0/builtin/clone.c:106:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
git-2.52.0/builtin/clone.c:107:17: branch_true: ...to here
git-2.52.0/builtin/clone.c:107:17: call_function: calling ‘strbuf_setlen’ from ‘get_repo_path_1’
git-2.52.0/builtin/clone.c:107:17: return_function: returning to ‘get_repo_path_1’ from ‘strbuf_setlen’
git-2.52.0/builtin/clone.c:114:27: branch_true: following ‘true’ branch...
git-2.52.0/builtin/clone.c:118:39: acquire_resource: opened here
git-2.52.0/builtin/clone.c:119:28: branch_false: following ‘false’ branch...
git-2.52.0/builtin/clone.c:121:31: branch_false: ...to here
git-2.52.0/builtin/clone.c:121:31: throw: if ‘read_in_full’ throws an exception...
git-2.52.0/builtin/clone.c:121:31: danger: ‘open(*path.buf, 0)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: COMPILER_WARNING (CWE-704): [#def193]
git-2.52.0/builtin/commit.c: scope_hint: In function ‘prepare_to_commit’
git-2.52.0/builtin/commit.c:819:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def194]
git-2.52.0/builtin/commit.c:819:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def195]
git-2.52.0/builtin/config.c: scope_hint: In function ‘get_urlmatch’
git-2.52.0/builtin/config.c:698:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def196]
git-2.52.0/builtin/config.c:698:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
git-2.52.0/builtin/credential-cache--daemon.c:222:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘client2’
git-2.52.0/builtin/credential-cache--daemon.c:195:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:198:9: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:200:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:206:13: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:206:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:210:26: branch_true: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:211:20: branch_false: following ‘false’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:215:27: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:215:27: acquire_resource: opened here
git-2.52.0/builtin/credential-cache--daemon.c:216:20: branch_false: following ‘false’ branch (when ‘client2 >= 0’)...
git-2.52.0/builtin/credential-cache--daemon.c:222:22: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:222:22: throw: if ‘xfdopen’ throws an exception...
git-2.52.0/builtin/credential-cache--daemon.c:222:22: danger: ‘client2’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
git-2.52.0/builtin/credential-cache--daemon.c:223:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘client2’
git-2.52.0/builtin/credential-cache--daemon.c:195:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:198:9: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:200:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:206:13: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:206:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:210:26: branch_true: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:211:20: branch_false: following ‘false’ branch...
git-2.52.0/builtin/credential-cache--daemon.c:215:27: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:215:27: acquire_resource: opened here
git-2.52.0/builtin/credential-cache--daemon.c:216:20: branch_false: following ‘false’ branch (when ‘client2 >= 0’)...
git-2.52.0/builtin/credential-cache--daemon.c:222:22: branch_false: ...to here
git-2.52.0/builtin/credential-cache--daemon.c:223:23: throw: if ‘xfdopen’ throws an exception...
git-2.52.0/builtin/credential-cache--daemon.c:223:23: danger: ‘client2’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def199]
git-2.52.0/builtin/difftool.c:134:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(buf.buf, 0)’
git-2.52.0/builtin/difftool.c:118:12: enter_function: entry to ‘use_wt_file’
git-2.52.0/builtin/difftool.c:127:9: call_function: calling ‘add_path’ from ‘use_wt_file’
git-2.52.0/builtin/difftool.c:127:9: return_function: returning to ‘use_wt_file’ from ‘add_path’
git-2.52.0/builtin/difftool.c:129:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/difftool.c:131:26: acquire_resource: opened here
git-2.52.0/builtin/difftool.c:133:20: branch_true: following ‘true’ branch...
git-2.52.0/builtin/difftool.c:134:22: branch_true: ...to here
git-2.52.0/builtin/difftool.c:134:22: danger: ‘open(buf.buf, 0)’ leaks here; was opened at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
git-2.52.0/builtin/gc.c:397:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(repo_git_path_replace(the_repository, & buf, "worktrees"))’
git-2.52.0/builtin/gc.c:385:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/gc.c:390:31: branch_false: ...to here
git-2.52.0/builtin/gc.c:390:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/gc.c:393:15: branch_false: ...to here
git-2.52.0/builtin/gc.c:393:15: acquire_memory: allocated here
git-2.52.0/builtin/gc.c:394:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/gc.c:394:12: branch_false: ...to here
git-2.52.0/builtin/gc.c:397:16: branch_true: following ‘true’ branch...
git-2.52.0/builtin/gc.c:397:30: branch_true: ...to here
git-2.52.0/builtin/gc.c:397:30: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/builtin/gc.c:397:16: danger: ‘opendir(repo_git_path_replace(the_repository, & buf, "worktrees"))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
git-2.52.0/builtin/gc.c:443:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path.buf)’
git-2.52.0/builtin/gc.c:430:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/gc.c:439:9: branch_false: ...to here
git-2.52.0/builtin/gc.c:440:15: acquire_memory: allocated here
git-2.52.0/builtin/gc.c:441:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/gc.c:443:23: branch_false: ...to here
git-2.52.0/builtin/gc.c:443:23: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/builtin/gc.c:443:23: danger: ‘opendir(path.buf)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
git-2.52.0/builtin/gc.c:474:26: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(repo_git_path(the_repository, "objects/17"))’
git-2.52.0/builtin/gc.c:469:15: acquire_memory: allocated here
git-2.52.0/builtin/gc.c:471:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/gc.c:474:26: branch_false: ...to here
git-2.52.0/builtin/gc.c:475:23: throw: if ‘readdir’ throws an exception...
git-2.52.0/builtin/gc.c:474:26: danger: ‘opendir(repo_git_path(the_repository, "objects/17"))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def203]
git-2.52.0/builtin/index-pack.c:789:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
git-2.52.0/builtin/index-pack.c:885:13: enter_function: entry to ‘sha1_object’
git-2.52.0/builtin/index-pack.c:892:9: branch_true: following ‘true’ branch...
git-2.52.0/builtin/index-pack.c:894:25: branch_true: ...to here
git-2.52.0/builtin/index-pack.c:901:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/index-pack.c:902:17: call_function: inlined call to ‘lock_mutex’ from ‘sha1_object’
git-2.52.0/builtin/index-pack.c:903:22: call_function: calling ‘check_collison’ from ‘sha1_object’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def204]
git-2.52.0/builtin/interpret-trailers.c:105:13: warning[-Wanalyzer-null-argument]: use of NULL ‘file’ where non-null expected
git-2.52.0/builtin/interpret-trailers.c:194:5: enter_function: entry to ‘cmd_interpret_trailers’
git-2.52.0/builtin/interpret-trailers.c:235:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/interpret-trailers.c:240:21: branch_false: ...to here
git-2.52.0/builtin/interpret-trailers.c:240:20: branch_false: following ‘false’ branch...
git-2.52.0/builtin/interpret-trailers.c:242:17: branch_false: ...to here
git-2.52.0/builtin/interpret-trailers.c:242:17: call_function: calling ‘interpret_trailers’ from ‘cmd_interpret_trailers’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def205]
git-2.52.0/builtin/ls-files.c:339:25: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
git-2.52.0/builtin/ls-files.c:576:5: enter_function: entry to ‘cmd_ls_files’
git-2.52.0/builtin/ls-files.c:667:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/ls-files.c:670:16: branch_false: ...to here
git-2.52.0/builtin/ls-files.c:730:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/ls-files.c:734:26: branch_true: ...to here
git-2.52.0/builtin/ls-files.c:734:26: call_function: calling ‘get_common_prefix_len’ from ‘cmd_ls_files’
git-2.52.0/builtin/ls-files.c:734:26: return_function: returning to ‘cmd_ls_files’ from ‘get_common_prefix_len’
git-2.52.0/builtin/ls-files.c:736:9: call_function: calling ‘prune_index’ from ‘cmd_ls_files’
git-2.52.0/builtin/ls-files.c:736:9: return_function: returning to ‘cmd_ls_files’ from ‘prune_index’
git-2.52.0/builtin/ls-files.c:763:9: call_function: calling ‘show_files’ from ‘cmd_ls_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
git-2.52.0/builtin/mailsplit.c:133:32: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(xstrfmt("%s/%s", path, *sub))’
git-2.52.0/builtin/mailsplit.c:274:5: enter_function: entry to ‘cmd_mailsplit’
git-2.52.0/builtin/mailsplit.c:285:9: branch_false: following ‘false’ branch (when ‘prefix’ is NULL)...
git-2.52.0/builtin/mailsplit.c:287:9: branch_false: ...to here
git-2.52.0/builtin/mailsplit.c:318:12: branch_true: following ‘true’ branch (when ‘dir’ is NULL)...
git-2.52.0/builtin/mailsplit.c:321:25: branch_true: ...to here
git-2.52.0/builtin/mailsplit.c:340:16: branch_true: following ‘true’ branch...
git-2.52.0/builtin/mailsplit.c:341:36: branch_true: ...to here
git-2.52.0/builtin/mailsplit.c:356:20: branch_false: following ‘false’ branch...
git-2.52.0/builtin/mailsplit.c:361:21: branch_false: ...to here
git-2.52.0/builtin/mailsplit.c:361:20: branch_true: following ‘true’ branch...
git-2.52.0/builtin/mailsplit.c:362:31: branch_true: ...to here
git-2.52.0/builtin/mailsplit.c:362:31: call_function: calling ‘split_maildir’ from ‘cmd_mailsplit’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
git-2.52.0/builtin/name-rev.c:226:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/builtin/name-rev.c:419:13: enter_function: entry to ‘name_tips’
git-2.52.0/builtin/name-rev.c:428:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/name-rev.c:429:46: branch_true: ...to here
git-2.52.0/builtin/name-rev.c:430:20: branch_true: following ‘true’ branch...
git-2.52.0/builtin/name-rev.c:432:47: branch_true: ...to here
git-2.52.0/builtin/name-rev.c:431:25: call_function: calling ‘name_rev’ from ‘name_tips’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
git-2.52.0/builtin/prune.c:147:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/builtin/prune.c:140:15: acquire_memory: allocated here
git-2.52.0/builtin/prune.c:141:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/prune.c:141:12: branch_false: ...to here
git-2.52.0/builtin/prune.c:147:22: throw: if ‘readdir’ throws an exception...
git-2.52.0/builtin/prune.c:147:22: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def209]
git-2.52.0/builtin/pull.c:772:22: warning[-Wanalyzer-null-argument]: use of NULL ‘remote’ where non-null expected
git-2.52.0/builtin/pull.c:998:5: enter_function: entry to ‘cmd_pull’
git-2.52.0/builtin/pull.c:1035:9: call_function: inlined call to ‘parse_repo_refspecs’ from ‘cmd_pull’
git-2.52.0/builtin/pull.c:1037:13: branch_false: ...to here
git-2.52.0/builtin/pull.c:1059:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/pull.c:1062:13: branch_false: ...to here
git-2.52.0/builtin/pull.c:1062:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/pull.c:1065:13: branch_false: ...to here
git-2.52.0/builtin/pull.c:1068:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/pull.c:1069:21: branch_true: ...to here
git-2.52.0/builtin/pull.c:1080:21: call_function: calling ‘get_rebase_fork_point’ from ‘cmd_pull’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def210]
git-2.52.0/builtin/rebase.c:707:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘am.in’
git-2.52.0/builtin/rebase.c:622:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/rebase.c:633:12: branch_false: ...to here
git-2.52.0/builtin/rebase.c:633:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/rebase.c:642:12: branch_false: ...to here
git-2.52.0/builtin/rebase.c:642:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/rebase.c:647:27: branch_false: ...to here
git-2.52.0/builtin/rebase.c:650:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/rebase.c:658:9: branch_false: ...to here
git-2.52.0/builtin/rebase.c:678:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/rebase.c:698:17: branch_false: ...to here
git-2.52.0/builtin/rebase.c:698:17: acquire_resource: opened here
git-2.52.0/builtin/rebase.c:699:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/rebase.c:707:9: branch_false: ...to here
git-2.52.0/builtin/rebase.c:707:9: throw: if ‘strvec_pushv’ throws an exception...
git-2.52.0/builtin/rebase.c:707:9: danger: ‘am.in’ leaks here; was opened at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-704): [#def211]
git-2.52.0/builtin/receive-pack.c: scope_hint: In function ‘proc_receive_ref_append’
git-2.52.0/builtin/receive-pack.c:400:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def212]
git-2.52.0/builtin/receive-pack.c:400:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def213]
git-2.52.0/builtin/receive-pack.c:471:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/builtin/receive-pack.c:493:13: enter_function: entry to ‘rp_error’
git-2.52.0/builtin/receive-pack.c:496:9: acquire_resource: ‘va_start’ called here
git-2.52.0/builtin/receive-pack.c:497:9: call_function: calling ‘report_message’ from ‘rp_error’
Error: COMPILER_WARNING (CWE-704): [#def214]
git-2.52.0/builtin/receive-pack.c: scope_hint: In function ‘read_proc_receive_report’
git-2.52.0/builtin/receive-pack.c:1009:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def215]
git-2.52.0/builtin/receive-pack.c:1009:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def216]
git-2.52.0/builtin/receive-pack.c:1039:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def217]
git-2.52.0/builtin/receive-pack.c:1039:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def218]
git-2.52.0/builtin/receive-pack.c:1062:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def219]
git-2.52.0/builtin/receive-pack.c:1062:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def220]
git-2.52.0/builtin/remote.c: scope_hint: In function ‘config_read_branches’
git-2.52.0/builtin/remote.c:335:31: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def221]
git-2.52.0/builtin/remote.c:335:31: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def222]
git-2.52.0/builtin/remote.c:342:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def223]
git-2.52.0/builtin/remote.c:342:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def224]
git-2.52.0/builtin/replace.c:275:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
git-2.52.0/builtin/replace.c:271:14: acquire_resource: opened here
git-2.52.0/builtin/replace.c:272:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/replace.c:275:13: branch_false: ...to here
git-2.52.0/builtin/replace.c:275:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/replace.c:276:38: branch_true: ...to here
git-2.52.0/builtin/replace.c:279:17: throw: if ‘strvec_push’ throws an exception...
git-2.52.0/builtin/replace.c:275:13: danger: ‘open(filename, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def225]
git-2.52.0/builtin/replace.c:284:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘cmd.in’
git-2.52.0/builtin/replace.c:271:14: acquire_resource: opened here
git-2.52.0/builtin/replace.c:272:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/replace.c:275:13: branch_false: ...to here
git-2.52.0/builtin/replace.c:275:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/replace.c:276:38: branch_true: ...to here
git-2.52.0/builtin/replace.c:284:21: throw: if ‘start_command’ throws an exception...
git-2.52.0/builtin/replace.c:284:21: danger: ‘cmd.in’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def226]
git-2.52.0/builtin/repo.c:213:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/builtin/repo.c:229:13: enter_function: entry to ‘stats_table_addf’
git-2.52.0/builtin/repo.c:233:9: acquire_resource: ‘va_start’ called here
git-2.52.0/builtin/repo.c:234:9: call_function: calling ‘stats_table_vaddf’ from ‘stats_table_addf’
Error: COMPILER_WARNING (CWE-704): [#def227]
git-2.52.0/builtin/rev-parse.c: scope_hint: In function ‘try_difference’
git-2.52.0/builtin/rev-parse.c:280:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def228]
git-2.52.0/builtin/rev-parse.c:280:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def229]
git-2.52.0/builtin/rev-parse.c: scope_hint: In function ‘try_parent_shorthands’
git-2.52.0/builtin/rev-parse.c:341:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def230]
git-2.52.0/builtin/rev-parse.c:341:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def231]
git-2.52.0/builtin/rev-parse.c:345:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def232]
git-2.52.0/builtin/rev-parse.c:345:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def233]
git-2.52.0/builtin/rev-parse.c:349:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def234]
git-2.52.0/builtin/rev-parse.c:349:28: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def235]
git-2.52.0/builtin/shortlog.c: scope_hint: In function ‘insert_one_record’
git-2.52.0/builtin/shortlog.c:79:37: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def236]
git-2.52.0/builtin/shortlog.c:79:37: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-617): [#def237]
git-2.52.0/builtin/show-index.c:59:25: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
git-2.52.0/builtin/show-index.c:54:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/show-index.c:56:13: branch_false: ...to here
git-2.52.0/builtin/show-index.c:56:12: branch_true: following ‘true’ branch...
git-2.52.0/builtin/show-index.c:57:27: branch_true: ...to here
git-2.52.0/builtin/show-index.c:58:20: branch_true: following ‘true’ branch...
git-2.52.0/builtin/show-index.c:59:25: branch_true: ...to here
git-2.52.0/builtin/show-index.c:59:25: danger: treating ‘die’ as an assertion failure handler due to ‘__attribute__((__noreturn__))’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
git-2.52.0/builtin/submodule--helper.c:1066:43: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: acquire_memory: allocated here
git-2.52.0/builtin/submodule--helper.c:1074:17: branch_false: following ‘false’ branch...
git-2.52.0/builtin/submodule--helper.c:1075:17: branch_false: ...to here
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: danger: ‘temp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
git-2.52.0/builtin/submodule--helper.c:1067:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘temp’
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: acquire_memory: this call could return NULL
git-2.52.0/builtin/submodule--helper.c:1067:17: danger: ‘temp’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
git-2.52.0/builtin/submodule--helper.c:1072:33: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: acquire_memory: allocated here
git-2.52.0/builtin/submodule--helper.c:1072:33: throw: if ‘xstrdup’ throws an exception...
git-2.52.0/builtin/submodule--helper.c:1072:33: danger: ‘temp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
git-2.52.0/builtin/submodule--helper.c:1074:17: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
git-2.52.0/builtin/submodule--helper.c:1054:13: enter_function: entry to ‘submodule_summary_callback’
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: acquire_memory: allocated here
git-2.52.0/builtin/submodule--helper.c:1074:17: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1074:17: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1074:17: call_function: inlined call to ‘st_mult’ from ‘submodule_summary_callback’
git-2.52.0/builtin/submodule--helper.c:1074:17: throw: if ‘xrealloc’ throws an exception...
git-2.52.0/builtin/submodule--helper.c:1074:17: danger: ‘temp’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
git-2.52.0/builtin/submodule--helper.c:1077:1: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: acquire_memory: allocated here
git-2.52.0/builtin/submodule--helper.c:1074:17: branch_false: following ‘false’ branch...
git-2.52.0/builtin/submodule--helper.c:1075:17: branch_false: ...to here
git-2.52.0/builtin/submodule--helper.c:1077:1: danger: ‘temp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
git-2.52.0/builtin/submodule--helper.c:1675:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/builtin/submodule--helper.c:1668:20: acquire_memory: allocated here
git-2.52.0/builtin/submodule--helper.c:1672:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/submodule--helper.c:1675:13: branch_false: ...to here
git-2.52.0/builtin/submodule--helper.c:1675:13: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/builtin/submodule--helper.c:1675:13: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def244]
git-2.52.0/builtin/upload-archive.c:68:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/builtin/upload-archive.c:67:9: acquire_resource: ‘va_start’ called here
git-2.52.0/builtin/upload-archive.c:68:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/builtin/upload-archive.c:68:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
git-2.52.0/builtin/worktree.c:226:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(repo_git_path(the_repository, "worktrees"))’
git-2.52.0/builtin/worktree.c:222:15: acquire_memory: allocated here
git-2.52.0/builtin/worktree.c:224:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/worktree.c:224:12: branch_false: ...to here
git-2.52.0/builtin/worktree.c:226:21: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/builtin/worktree.c:226:21: danger: ‘opendir(repo_git_path(the_repository, "worktrees"))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
git-2.52.0/bundle-uri.c:344:9: warning[-Wanalyzer-malloc-leak]: leak of ‘child_in’
git-2.52.0/bundle-uri.c:740:12: enter_function: entry to ‘fetch_bundle_uri_internal’
git-2.52.0/bundle-uri.c:748:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:754:14: branch_false: ...to here
git-2.52.0/bundle-uri.c:754:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:760:54: branch_false: ...to here
git-2.52.0/bundle-uri.c:760:23: call_function: calling ‘copy_uri_to_file’ from ‘fetch_bundle_uri_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
git-2.52.0/bundle-uri.c:344:9: warning[-Wanalyzer-malloc-leak]: leak of ‘child_out’
git-2.52.0/bundle-uri.c:740:12: enter_function: entry to ‘fetch_bundle_uri_internal’
git-2.52.0/bundle-uri.c:748:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:754:14: branch_false: ...to here
git-2.52.0/bundle-uri.c:754:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:760:54: branch_false: ...to here
git-2.52.0/bundle-uri.c:760:23: call_function: calling ‘copy_uri_to_file’ from ‘fetch_bundle_uri_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
git-2.52.0/bundle-uri.c:346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘child_in’
git-2.52.0/bundle-uri.c:740:12: enter_function: entry to ‘fetch_bundle_uri_internal’
git-2.52.0/bundle-uri.c:748:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:754:14: branch_false: ...to here
git-2.52.0/bundle-uri.c:754:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:760:54: branch_false: ...to here
git-2.52.0/bundle-uri.c:760:23: call_function: calling ‘copy_uri_to_file’ from ‘fetch_bundle_uri_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
git-2.52.0/bundle-uri.c:346:17: warning[-Wanalyzer-malloc-leak]: leak of ‘child_out’
git-2.52.0/bundle-uri.c:740:12: enter_function: entry to ‘fetch_bundle_uri_internal’
git-2.52.0/bundle-uri.c:748:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:754:14: branch_false: ...to here
git-2.52.0/bundle-uri.c:754:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:760:54: branch_false: ...to here
git-2.52.0/bundle-uri.c:760:23: call_function: calling ‘copy_uri_to_file’ from ‘fetch_bundle_uri_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
git-2.52.0/bundle-uri.c:352:9: warning[-Wanalyzer-malloc-leak]: leak of ‘child_in’
git-2.52.0/bundle-uri.c:740:12: enter_function: entry to ‘fetch_bundle_uri_internal’
git-2.52.0/bundle-uri.c:748:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:754:14: branch_false: ...to here
git-2.52.0/bundle-uri.c:754:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:760:54: branch_false: ...to here
git-2.52.0/bundle-uri.c:760:23: call_function: calling ‘copy_uri_to_file’ from ‘fetch_bundle_uri_internal’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
git-2.52.0/bundle-uri.c:355:26: warning[-Wanalyzer-malloc-leak]: leak of ‘child_in’
git-2.52.0/bundle-uri.c:740:12: enter_function: entry to ‘fetch_bundle_uri_internal’
git-2.52.0/bundle-uri.c:748:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:754:14: branch_false: ...to here
git-2.52.0/bundle-uri.c:754:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle-uri.c:760:54: branch_false: ...to here
git-2.52.0/bundle-uri.c:760:23: call_function: calling ‘copy_uri_to_file’ from ‘fetch_bundle_uri_internal’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def252]
git-2.52.0/bundle.c:84:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
git-2.52.0/bundle.c:153:5: enter_function: entry to ‘read_bundle_header’
git-2.52.0/bundle.c:155:18: acquire_resource: opened here
git-2.52.0/bundle.c:157:12: branch_false: following ‘false’ branch...
git-2.52.0/bundle.c:159:16: branch_false: ...to here
git-2.52.0/bundle.c:159:16: call_function: calling ‘read_bundle_header_fd’ from ‘read_bundle_header’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def253]
git-2.52.0/bundle.c:358:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pack_objects.out’
git-2.52.0/bundle.c:349:12: branch_true: following ‘true’ branch (when ‘bundle_fd > 1’)...
git-2.52.0/bundle.c:350:36: branch_true: ...to here
git-2.52.0/bundle.c:350:36: acquire_resource: opened here
git-2.52.0/bundle.c:351:20: branch_false: following ‘false’ branch...
git-2.52.0/bundle.c:358:13: branch_false: ...to here
git-2.52.0/bundle.c:358:13: throw: if ‘start_command’ throws an exception...
git-2.52.0/bundle.c:358:13: danger: ‘pack_objects.out’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING: [#def254]
git-2.52.0/column.c:395:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.52.0/column.c:370:12: branch_false: following ‘false’ branch...
git-2.52.0/column.c:373:9: branch_false: ...to here
git-2.52.0/column.c:390:12: branch_false: following ‘false’ branch...
git-2.52.0/column.c:393:18: branch_false: ...to here
git-2.52.0/column.c:394:9: release_resource: closed here
git-2.52.0/column.c:395:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def255]
git-2.52.0/column.c:408:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.52.0/column.c:402:12: branch_false: following ‘false’ branch...
git-2.52.0/column.c:405:9: branch_false: ...to here
git-2.52.0/column.c:406:9: release_resource: closed here
git-2.52.0/column.c:408:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def256]
git-2.52.0/combine-diff.c:1073:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*elem.path, 0)’
git-2.52.0/combine-diff.c:1032:12: branch_false: following ‘false’ branch...
git-2.52.0/combine-diff.c:1036:12: branch_false: ...to here
git-2.52.0/combine-diff.c:1036:12: branch_false: following ‘false’ branch (when ‘working_tree_file != 0’)...
git-2.52.0/combine-diff.c:1044:27: branch_false: ...to here
git-2.52.0/combine-diff.c:1044:20: branch_false: following ‘false’ branch...
git-2.52.0/combine-diff.c:1047:21: branch_false: ...to here
git-2.52.0/combine-diff.c:1047:20: branch_false: following ‘false’ branch...
git-2.52.0/combine-diff.c:1057:27: branch_false: ...to here
git-2.52.0/combine-diff.c:1057:27: branch_false: following ‘false’ branch...
git-2.52.0/combine-diff.c:1067:27: branch_false: ...to here
git-2.52.0/combine-diff.c:1067:27: branch_false: following ‘false’ branch (when ‘textconv’ is NULL)...
git-2.52.0/combine-diff.c:1072:44: branch_false: ...to here
git-2.52.0/combine-diff.c:1072:39: acquire_resource: opened here
git-2.52.0/combine-diff.c:1072:27: branch_true: following ‘true’ branch...
git-2.52.0/combine-diff.c:1073:46: branch_true: ...to here
git-2.52.0/combine-diff.c:1073:46: danger: ‘open(*elem.path, 0)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
git-2.52.0/commit-graph.c:2287:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘g’
git-2.52.0/commit-graph.c:2261:12: branch_true: following ‘true’ branch...
git-2.52.0/commit-graph.c:2261:12: branch_true: ...to here
git-2.52.0/commit-graph.c:2263:24: branch_false: following ‘false’ branch (when ‘g’ is NULL)...
git-2.52.0/commit-graph.c:2280:12: branch_false: ...to here
git-2.52.0/commit-graph.c:2280:12: branch_true: following ‘true’ branch (when ‘flags != 2’)...
git-2.52.0/commit-graph.c:2281:17: branch_true: ...to here
git-2.52.0/commit-graph.c:2281:17: release_memory: ‘g’ is NULL
git-2.52.0/commit-graph.c:2286:12: branch_true: following ‘true’ branch...
git-2.52.0/commit-graph.c:2287:40: branch_true: ...to here
git-2.52.0/commit-graph.c:2287:40: danger: dereference of NULL ‘g’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def258]
git-2.52.0/commit.c:1965:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/commit.c:1963:9: acquire_resource: ‘va_start’ called here
git-2.52.0/commit.c:1964:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/commit.c:1965:17: branch_true: ...to here
git-2.52.0/commit.c:1965:17: throw: if ‘strvec_push’ throws an exception...
git-2.52.0/commit.c:1965:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
git-2.52.0/compat/disk.h:39:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:223:9: call_function: calling ‘get_disk_info’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def260]
git-2.52.0/compat/disk.h:41:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:223:9: call_function: calling ‘get_disk_info’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def261]
git-2.52.0/compat/disk.h:47:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:223:9: call_function: calling ‘get_disk_info’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def262]
git-2.52.0/compat/disk.h:48:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:223:9: call_function: calling ‘get_disk_info’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def263]
git-2.52.0/compat/disk.h:49:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:223:9: call_function: calling ‘get_disk_info’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def264]
git-2.52.0/compat/disk.h:53:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:223:9: call_function: calling ‘get_disk_info’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def265]
git-2.52.0/compat/open.c:47:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/compat/open.c:34:14: acquire_resource: opened here
git-2.52.0/compat/open.c:35:12: branch_false: following ‘false’ branch...
git-2.52.0/compat/open.c:45:21: branch_false: ...to here
git-2.52.0/compat/open.c:45:20: branch_true: following ‘true’ branch...
git-2.52.0/compat/open.c:45:21: branch_true: ...to here
git-2.52.0/compat/open.c:45:21: branch_true: following ‘true’ branch...
git-2.52.0/compat/open.c:47:37: throw: if ‘fcntl’ throws an exception...
git-2.52.0/compat/open.c:47:37: danger: ‘fd’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def266]
git-2.52.0/config.c:2521:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/config.c:2518:12: branch_true: following ‘true’ branch (when ‘err’ is non-NULL)...
git-2.52.0/config.c:2520:17: branch_true: ...to here
git-2.52.0/config.c:2520:17: acquire_resource: ‘va_start’ called here
git-2.52.0/config.c:2521:17: throw: if the called function throws an exception...
git-2.52.0/config.c:2521:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def267]
git-2.52.0/connect.c:847:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/connect.c:811:12: enter_function: entry to ‘git_tcp_connect_sock’
git-2.52.0/connect.c:820:9: call_function: calling ‘get_host_and_port’ from ‘git_tcp_connect_sock’
git-2.52.0/connect.c:820:9: return_function: returning to ‘git_tcp_connect_sock’ from ‘get_host_and_port’
git-2.52.0/connect.c:836:12: branch_false: following ‘false’ branch...
git-2.52.0/connect.c:839:12: branch_false: ...to here
git-2.52.0/connect.c:843:24: branch_true: following ‘true’ branch...
git-2.52.0/connect.c:844:26: branch_true: ...to here
git-2.52.0/connect.c:844:26: acquire_resource: socket created here
git-2.52.0/connect.c:846:20: branch_false: following ‘false’ branch (when ‘sockfd >= 0’)...
git-2.52.0/connect.c:847:53: branch_false: ...to here
git-2.52.0/connect.c:847:22: throw: if ‘connect’ throws an exception...
git-2.52.0/connect.c:847:22: danger: ‘sockfd’ leaks here
Error: COMPILER_WARNING (CWE-704): [#def268]
git-2.52.0/convert.c: scope_hint: In function ‘ident_to_git’
git-2.52.0/convert.c:1138:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def269]
git-2.52.0/convert.c:1138:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def270]
git-2.52.0/convert.c:1147:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def271]
git-2.52.0/convert.c:1147:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def272]
git-2.52.0/convert.c: scope_hint: In function ‘ident_to_worktree’
git-2.52.0/convert.c:1188:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def273]
git-2.52.0/convert.c:1188:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def274]
git-2.52.0/convert.c:1211:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def275]
git-2.52.0/convert.c:1211:32: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def276]
git-2.52.0/convert.c:1222:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def277]
git-2.52.0/convert.c:1222:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def278]
git-2.52.0/copy.c:14:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’
git-2.52.0/copy.c:38:5: enter_function: entry to ‘copy_file’
git-2.52.0/copy.c:43:20: acquire_resource: opened here
git-2.52.0/copy.c:43:12: branch_false: following ‘false’ branch...
git-2.52.0/copy.c:45:20: branch_false: ...to here
git-2.52.0/copy.c:45:12: branch_false: following ‘false’ branch...
git-2.52.0/copy.c:49:18: branch_false: ...to here
git-2.52.0/copy.c:49:18: call_function: calling ‘copy_fd’ from ‘copy_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def279]
git-2.52.0/copy.c:45:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’
git-2.52.0/copy.c:43:20: acquire_resource: opened here
git-2.52.0/copy.c:43:12: branch_false: following ‘false’ branch...
git-2.52.0/copy.c:45:20: branch_false: ...to here
git-2.52.0/copy.c:45:20: throw: if ‘open’ throws an exception...
git-2.52.0/copy.c:45:20: danger: ‘open(src, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def280]
git-2.52.0/copy.c:46:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(src, 0)’
git-2.52.0/copy.c:43:20: acquire_resource: opened here
git-2.52.0/copy.c:43:12: branch_false: following ‘false’ branch...
git-2.52.0/copy.c:45:20: branch_false: ...to here
git-2.52.0/copy.c:45:12: branch_true: following ‘true’ branch...
git-2.52.0/copy.c:46:17: branch_true: ...to here
git-2.52.0/copy.c:46:17: danger: ‘open(src, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def281]
git-2.52.0/daemon.c:101:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/daemon.c:1097:13: enter_function: entry to ‘socksetup’
git-2.52.0/daemon.c:1099:12: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:1100:17: branch_true: ...to here
git-2.52.0/daemon.c:1100:17: call_function: calling ‘setup_named_sock’ from ‘socksetup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def282]
git-2.52.0/daemon.c:113:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/daemon.c:1097:13: enter_function: entry to ‘socksetup’
git-2.52.0/daemon.c:1099:12: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:1100:17: branch_true: ...to here
git-2.52.0/daemon.c:1100:17: call_function: calling ‘setup_named_sock’ from ‘socksetup’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def283]
git-2.52.0/daemon.c:113:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/daemon.c:725:13: enter_function: entry to ‘set_keep_alive’
git-2.52.0/daemon.c:730:20: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:731:25: branch_true: ...to here
git-2.52.0/daemon.c:731:25: call_function: calling ‘logerror’ from ‘set_keep_alive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def284]
git-2.52.0/daemon.c:118:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/daemon.c:1097:13: enter_function: entry to ‘socksetup’
git-2.52.0/daemon.c:1099:12: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:1100:17: branch_true: ...to here
git-2.52.0/daemon.c:1100:17: call_function: calling ‘setup_named_sock’ from ‘socksetup’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def285]
git-2.52.0/daemon.c:118:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/daemon.c:725:13: enter_function: entry to ‘set_keep_alive’
git-2.52.0/daemon.c:730:20: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:731:25: branch_true: ...to here
git-2.52.0/daemon.c:731:25: call_function: calling ‘logerror’ from ‘set_keep_alive’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def286]
git-2.52.0/daemon.c:957:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/daemon.c:1097:13: enter_function: entry to ‘socksetup’
git-2.52.0/daemon.c:1099:12: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:1100:17: branch_true: ...to here
git-2.52.0/daemon.c:1100:17: call_function: calling ‘setup_named_sock’ from ‘socksetup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def287]
git-2.52.0/daemon.c:1020:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/daemon.c:1097:13: enter_function: entry to ‘socksetup’
git-2.52.0/daemon.c:1099:12: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:1100:17: branch_true: ...to here
git-2.52.0/daemon.c:1100:17: call_function: calling ‘setup_named_sock’ from ‘socksetup’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def288]
git-2.52.0/daemon.c:1024:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sockfd’
git-2.52.0/daemon.c:1097:13: enter_function: entry to ‘socksetup’
git-2.52.0/daemon.c:1099:12: branch_true: following ‘true’ branch...
git-2.52.0/daemon.c:1100:17: branch_true: ...to here
git-2.52.0/daemon.c:1100:17: call_function: calling ‘setup_named_sock’ from ‘socksetup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
git-2.52.0/diagnose.c:83:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*path.buf)’
git-2.52.0/diagnose.c:76:20: acquire_memory: allocated here
git-2.52.0/diagnose.c:80:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:80:12: branch_false: ...to here
git-2.52.0/diagnose.c:83:21: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/diagnose.c:83:21: danger: ‘opendir(*path.buf)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
git-2.52.0/diagnose.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/diagnose.c:93:20: acquire_memory: allocated here
git-2.52.0/diagnose.c:101:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:104:9: branch_false: ...to here
git-2.52.0/diagnose.c:105:9: throw: if ‘strbuf_add_absolute_path’ throws an exception...
git-2.52.0/diagnose.c:105:9: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
git-2.52.0/diagnose.c:108:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/diagnose.c:93:20: acquire_memory: allocated here
git-2.52.0/diagnose.c:101:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:104:9: branch_false: ...to here
git-2.52.0/diagnose.c:108:9: throw: if ‘strbuf_add_absolute_path’ throws an exception...
git-2.52.0/diagnose.c:108:9: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
git-2.52.0/diagnose.c:148:17: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(<unknown>)’
git-2.52.0/diagnose.c:138:15: acquire_memory: allocated here
git-2.52.0/diagnose.c:139:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:147:12: branch_false: ...to here
git-2.52.0/diagnose.c:147:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:148:17: branch_true: ...to here
git-2.52.0/diagnose.c:148:17: throw: if ‘strbuf_addf’ throws an exception...
git-2.52.0/diagnose.c:148:17: danger: ‘opendir(<unknown>)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
git-2.52.0/diagnose.c:150:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(<unknown>)’
git-2.52.0/diagnose.c:138:15: acquire_memory: allocated here
git-2.52.0/diagnose.c:139:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:147:12: branch_false: ...to here
git-2.52.0/diagnose.c:150:9: throw: if ‘strvec_pushf’ throws an exception...
git-2.52.0/diagnose.c:150:9: danger: ‘opendir(<unknown>)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
git-2.52.0/diagnose.c:209:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:209:23: throw: if ‘xopen’ throws an exception...
git-2.52.0/diagnose.c:209:23: danger: ‘stdout_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def295]
git-2.52.0/diagnose.c:210:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:13: acquire_resource: opened here
git-2.52.0/diagnose.c:210:12: danger: ‘dup2(xopen(*zip_path.buf, 577, 438), 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def296]
git-2.52.0/diagnose.c:211:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:211:23: branch_true: ...to here
git-2.52.0/diagnose.c:211:23: call_function: calling ‘_’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:211:23: return_function: returning to ‘create_diagnostics_archive’ from ‘_’
git-2.52.0/diagnose.c:211:23: throw: if ‘error_errno’ throws an exception...
git-2.52.0/diagnose.c:211:23: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
git-2.52.0/diagnose.c:215:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:215:9: throw: if ‘init_zip_archiver’ throws an exception...
git-2.52.0/diagnose.c:215:9: danger: ‘stdout_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
git-2.52.0/diagnose.c:216:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:216:9: throw: if ‘strvec_pushl’ throws an exception...
git-2.52.0/diagnose.c:216:9: danger: ‘stdout_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def299]
git-2.52.0/diagnose.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:220:9: throw: if ‘get_version_info’ throws an exception...
git-2.52.0/diagnose.c:220:9: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
git-2.52.0/diagnose.c:222:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:222:9: throw: if ‘strbuf_addf’ throws an exception...
git-2.52.0/diagnose.c:222:9: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
git-2.52.0/diagnose.c:224:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:224:9: throw: if ‘write_or_die’ throws an exception...
git-2.52.0/diagnose.c:224:9: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
git-2.52.0/diagnose.c:274:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:211:23: branch_true: ...to here
git-2.52.0/diagnose.c:211:23: call_function: calling ‘_’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:211:23: return_function: returning to ‘create_diagnostics_archive’ from ‘_’
git-2.52.0/diagnose.c:272:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:273:17: branch_true: ...to here
git-2.52.0/diagnose.c:274:17: throw: if ‘close’ throws an exception...
git-2.52.0/diagnose.c:274:17: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def303]
git-2.52.0/diagnose.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:211:23: branch_true: ...to here
git-2.52.0/diagnose.c:211:23: call_function: calling ‘_’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:211:23: return_function: returning to ‘create_diagnostics_archive’ from ‘_’
git-2.52.0/diagnose.c:272:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:277:9: branch_false: ...to here
git-2.52.0/diagnose.c:278:9: throw: if ‘strvec_clear’ throws an exception...
git-2.52.0/diagnose.c:278:9: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def304]
git-2.52.0/diagnose.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:211:23: branch_true: ...to here
git-2.52.0/diagnose.c:211:23: call_function: calling ‘_’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:211:23: return_function: returning to ‘create_diagnostics_archive’ from ‘_’
git-2.52.0/diagnose.c:272:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:277:9: branch_false: ...to here
git-2.52.0/diagnose.c:279:9: throw: if ‘strbuf_release’ throws an exception...
git-2.52.0/diagnose.c:279:9: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
git-2.52.0/diagnose.c:281:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_true: following ‘true’ branch...
git-2.52.0/diagnose.c:211:23: branch_true: ...to here
git-2.52.0/diagnose.c:211:23: call_function: calling ‘_’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:211:23: return_function: returning to ‘create_diagnostics_archive’ from ‘_’
git-2.52.0/diagnose.c:272:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:277:9: branch_false: ...to here
git-2.52.0/diagnose.c:281:16: danger: ‘stdout_fd’ leaks here; was opened at [(4)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def306]
git-2.52.0/diff-lib.c:316:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.52.0/diff-lib.c:437:13: enter_function: entry to ‘do_oneway_diff’
git-2.52.0/diff-lib.c:448:12: branch_true: following ‘true’ branch...
git-2.52.0/diff-lib.c:449:13: branch_true: ...to here
git-2.52.0/diff-lib.c:448:13: branch_true: following ‘true’ branch...
git-2.52.0/diff-lib.c:448:13: branch_true: ...to here
git-2.52.0/diff-lib.c:457:18: branch_true: following ‘true’ branch...
git-2.52.0/diff-lib.c:457:18: branch_true: ...to here
git-2.52.0/diff-lib.c:462:12: branch_false: following ‘false’ branch...
git-2.52.0/diff-lib.c:474:12: branch_false: ...to here
git-2.52.0/diff-lib.c:474:12: branch_true: following ‘true’ branch (when ‘tree’ is NULL)...
git-2.52.0/diff-lib.c:475:17: branch_true: ...to here
git-2.52.0/diff-lib.c:475:17: call_function: calling ‘show_new_file’ from ‘do_oneway_diff’
Error: COMPILER_WARNING (CWE-704): [#def307]
git-2.52.0/diff.c: scope_hint: In function ‘fn_out_diff_words_write_helper’
git-2.52.0/diff.c:1933:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def308]
git-2.52.0/diff.c:1933:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def309]
git-2.52.0/diff.c: scope_hint: In function ‘gather_dirstat’
git-2.52.0/diff.c:3022:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def310]
git-2.52.0/diff.c:3022:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
git-2.52.0/diff.c:4223:39: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*s.path, 0)’
git-2.52.0/diff.c:633:12: enter_function: entry to ‘fill_mmfile’
git-2.52.0/diff.c:641:18: call_function: calling ‘diff_populate_filespec’ from ‘fill_mmfile’
Error: COMPILER_WARNING (CWE-704): [#def312]
git-2.52.0/diffcore-rename.c: scope_hint: In function ‘get_dirname’
git-2.52.0/diffcore-rename.c:382:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def313]
git-2.52.0/diffcore-rename.c:382:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
git-2.52.0/dir.c:84:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/dir.c:3253:5: enter_function: entry to ‘is_empty_dir’
git-2.52.0/dir.c:3255:20: acquire_memory: allocated here
git-2.52.0/dir.c:3259:12: branch_false: following ‘false’ branch...
git-2.52.0/dir.c:3262:13: branch_false: ...to here
git-2.52.0/dir.c:3262:13: call_function: calling ‘readdir_skip_dot_and_dotdot’ from ‘is_empty_dir’
Error: COMPILER_WARNING (CWE-704): [#def315]
git-2.52.0/dir.c: scope_hint: In function ‘remove_path’
git-2.52.0/dir.c:3524:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def316]
git-2.52.0/dir.c:3524:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
git-2.52.0/dir.c:3960:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ucd’
git-2.52.0/dir.c:3990:12: enter_function: entry to ‘invalidate_one_component’
git-2.52.0/dir.c:3996:12: branch_true: following ‘true’ branch (when ‘rest’ is non-NULL)...
git-2.52.0/dir.c:3997:37: branch_true: ...to here
git-2.52.0/dir.c:3999:25: call_function: calling ‘lookup_untracked’ from ‘invalidate_one_component’
git-2.52.0/dir.c:3999:25: return_function: returning to ‘invalidate_one_component’ from ‘lookup_untracked’
git-2.52.0/dir.c:4001:25: call_function: calling ‘invalidate_one_component’ from ‘invalidate_one_component’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
git-2.52.0/entry.c:64:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*path.buf)’
git-2.52.0/entry.c:482:5: enter_function: entry to ‘checkout_entry_ca’
git-2.52.0/entry.c:501:12: branch_false: following ‘false’ branch (when ‘topath’ is NULL)...
git-2.52.0/entry.c:509:9: branch_false: ...to here
git-2.52.0/entry.c:509:9: call_function: calling ‘strbuf_setlen’ from ‘checkout_entry_ca’
git-2.52.0/entry.c:509:9: return_function: returning to ‘checkout_entry_ca’ from ‘strbuf_setlen’
git-2.52.0/entry.c:513:12: branch_true: following ‘true’ branch...
git-2.52.0/entry.c:515:50: branch_true: ...to here
git-2.52.0/entry.c:522:20: branch_false: following ‘false’ branch...
git-2.52.0/entry.c:539:20: branch_false: ...to here
git-2.52.0/entry.c:539:20: branch_false: following ‘false’ branch...
git-2.52.0/entry.c:541:21: branch_false: ...to here
git-2.52.0/entry.c:541:20: branch_false: following ‘false’ branch...
git-2.52.0/entry.c:549:21: branch_false: ...to here
git-2.52.0/entry.c:558:20: branch_true: following ‘true’ branch...
git-2.52.0/entry.c:560:29: branch_true: ...to here
git-2.52.0/entry.c:560:28: branch_false: following ‘false’ branch...
git-2.52.0/entry.c:574:29: branch_false: ...to here
git-2.52.0/entry.c:576:25: call_function: calling ‘remove_subtree’ from ‘checkout_entry_ca’
Error: COMPILER_WARNING (CWE-704): [#def319]
git-2.52.0/fmt-merge-msg.c: scope_hint: In function ‘record_person_from_buf’
git-2.52.0/fmt-merge-msg.c:254:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def320]
git-2.52.0/fmt-merge-msg.c:254:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def321]
git-2.52.0/fsck.c:55:27: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/fsck.c:1157:12: enter_function: entry to ‘fsck_blob’
git-2.52.0/fsck.c:1165:12: branch_true: following ‘true’ branch...
git-2.52.0/fsck.c:1166:39: branch_true: ...to here
git-2.52.0/fsck.c:1171:20: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
git-2.52.0/fsck.c:1177:32: branch_true: ...to here
git-2.52.0/fsck.c:1177:32: call_function: calling ‘report’ from ‘fsck_blob’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def322]
git-2.52.0/fsck.c:252:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/fsck.c:1157:12: enter_function: entry to ‘fsck_blob’
git-2.52.0/fsck.c:1165:12: branch_true: following ‘true’ branch...
git-2.52.0/fsck.c:1166:39: branch_true: ...to here
git-2.52.0/fsck.c:1171:20: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
git-2.52.0/fsck.c:1177:32: branch_true: ...to here
git-2.52.0/fsck.c:1177:32: call_function: calling ‘report’ from ‘fsck_blob’
Error: COMPILER_WARNING (CWE-704): [#def323]
git-2.52.0/fsck.c: scope_hint: In function ‘fsck_tag_standalone’
git-2.52.0/fsck.c:1029:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def324]
git-2.52.0/fsck.c:1029:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def325]
git-2.52.0/fsck.c:1045:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def326]
git-2.52.0/fsck.c:1045:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def327]
git-2.52.0/fsck.c:1071:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def328]
git-2.52.0/fsck.c:1071:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def329]
git-2.52.0/fsck.c:1079:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def330]
git-2.52.0/fsck.c:1079:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def331]
git-2.52.0/base85.c:1: included_from: Included from here.
git-2.52.0/git-compat-util.h: scope_hint: In function ‘git_find_last_dir_sep’
git-2.52.0/git-compat-util.h:373:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def332]
git-2.52.0/git-compat-util.h:373:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
git-2.52.0/git-compat-util.h:626:17: warning[-Wanalyzer-malloc-leak]: leak of ‘temp’
git-2.52.0/builtin/submodule--helper.c:1054:13: enter_function: entry to ‘submodule_summary_callback’
git-2.52.0/builtin/submodule--helper.c:1060:21: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1061:43: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1066:43: acquire_memory: allocated here
git-2.52.0/builtin/submodule--helper.c:1074:17: branch_true: following ‘true’ branch...
git-2.52.0/builtin/submodule--helper.c:1074:17: branch_true: ...to here
git-2.52.0/builtin/submodule--helper.c:1074:17: call_function: inlined call to ‘st_mult’ from ‘submodule_summary_callback’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def334]
git-2.52.0/git-compat-util.h:626:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/strvec.c:42:6: enter_function: entry to ‘strvec_pushl’
git-2.52.0/strvec.c:47:9: acquire_resource: ‘va_start’ called here
git-2.52.0/strvec.c:48:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/strvec.c:49:17: branch_true: ...to here
git-2.52.0/strvec.c:49:17: call_function: calling ‘strvec_push’ from ‘strvec_pushl’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def335]
git-2.52.0/git-compat-util.h:735:17: warning[-Wanalyzer-null-argument]: use of NULL ‘dst’ where non-null expected
git-2.52.0/line-log.c:1099:12: enter_function: entry to ‘process_all_files’
git-2.52.0/line-log.c:1106:22: call_function: calling ‘line_log_data_copy’ from ‘process_all_files’
Error: COMPILER_WARNING (CWE-704): [#def336]
git-2.52.0/gpg-interface.c: scope_hint: In function ‘parse_ssh_output’
git-2.52.0/gpg-interface.c:444:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def337]
git-2.52.0/gpg-interface.c:444:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
git-2.52.0/graph.c:1115:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parents’
git-2.52.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.52.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def339]
git-2.52.0/graph.c:1148:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/graph.c:1519:6: enter_function: entry to ‘graph_show_commit_msg’
git-2.52.0/graph.c:1528:9: call_function: calling ‘graph_show_strbuf’ from ‘graph_show_commit_msg’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
git-2.52.0/grep.c:1963:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
git-2.52.0/grep.c:1943:12: enter_function: entry to ‘grep_source_load_file’
git-2.52.0/grep.c:1951:12: branch_false: following ‘false’ branch...
git-2.52.0/grep.c:1957:14: branch_false: ...to here
git-2.52.0/grep.c:1957:12: branch_false: following ‘false’ branch...
git-2.52.0/grep.c:1959:24: branch_false: ...to here
git-2.52.0/grep.c:1959:16: call_function: inlined call to ‘xsize_t’ from ‘grep_source_load_file’
git-2.52.0/grep.c:1960:13: acquire_resource: opened here
git-2.52.0/grep.c:1961:12: branch_false: following ‘false’ branch...
git-2.52.0/grep.c:1963:16: branch_false: ...to here
git-2.52.0/grep.c:1963:16: throw: if ‘xmallocz’ throws an exception...
git-2.52.0/grep.c:1963:16: danger: ‘open(filename, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def341]
git-2.52.0/grep.c:1964:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
git-2.52.0/grep.c:1943:12: enter_function: entry to ‘grep_source_load_file’
git-2.52.0/grep.c:1951:12: branch_false: following ‘false’ branch...
git-2.52.0/grep.c:1957:14: branch_false: ...to here
git-2.52.0/grep.c:1957:12: branch_false: following ‘false’ branch...
git-2.52.0/grep.c:1959:24: branch_false: ...to here
git-2.52.0/grep.c:1959:16: call_function: inlined call to ‘xsize_t’ from ‘grep_source_load_file’
git-2.52.0/grep.c:1960:13: acquire_resource: opened here
git-2.52.0/grep.c:1961:12: branch_false: following ‘false’ branch...
git-2.52.0/grep.c:1963:16: branch_false: ...to here
git-2.52.0/grep.c:1964:27: throw: if ‘read_in_full’ throws an exception...
git-2.52.0/grep.c:1964:13: danger: ‘open(filename, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
git-2.52.0/help.c:261:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/help.c:639:7: enter_function: entry to ‘help_unknown_cmd’
git-2.52.0/help.c:655:12: branch_false: following ‘false’ branch...
git-2.52.0/help.c:660:9: branch_false: ...to here
git-2.52.0/help.c:660:9: call_function: calling ‘load_command_list’ from ‘help_unknown_cmd’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
git-2.52.0/help.c:262:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/help.c:639:7: enter_function: entry to ‘help_unknown_cmd’
git-2.52.0/help.c:655:12: branch_false: following ‘false’ branch...
git-2.52.0/help.c:660:9: branch_false: ...to here
git-2.52.0/help.c:660:9: call_function: calling ‘load_command_list’ from ‘help_unknown_cmd’
Error: COMPILER_WARNING (CWE-704): [#def344]
git-2.52.0/help.c: scope_hint: In function ‘append_similar_ref’
git-2.52.0/help.c:859:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def345]
git-2.52.0/help.c:859:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def346]
git-2.52.0/hook.c:191:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/hook.c:189:9: acquire_resource: ‘va_start’ called here
git-2.52.0/hook.c:190:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/hook.c:191:17: branch_true: ...to here
git-2.52.0/hook.c:191:17: throw: if ‘strvec_push’ throws an exception...
git-2.52.0/hook.c:191:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def347]
git-2.52.0/http-push.c: scope_hint: In function ‘cmd_main’
git-2.52.0/http-push.c:1770:38: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def348]
git-2.52.0/http-push.c:1770:38: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def349]
git-2.52.0/http.c: scope_hint: In function ‘redact_sensitive_header’
git-2.52.0/http.c:755:43: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def350]
git-2.52.0/http.c:755:43: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def351]
git-2.52.0/http.c:2721:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(prevfile.buf, 0)’
git-2.52.0/http.c:2657:29: enter_function: entry to ‘new_http_object_request’
git-2.52.0/http.c:2702:12: branch_false: following ‘false’ branch...
git-2.52.0/http.c:2708:9: branch_false: ...to here
git-2.52.0/http.c:2712:21: call_function: calling ‘get_remote_object_url’ from ‘new_http_object_request’
git-2.52.0/http.c:2712:21: return_function: returning to ‘new_http_object_request’ from ‘get_remote_object_url’
git-2.52.0/http.c:2718:21: acquire_resource: opened here
git-2.52.0/http.c:2719:12: branch_true: following ‘true’ branch...
git-2.52.0/http.c:2719:12: branch_true: ...to here
git-2.52.0/http.c:2721:37: throw: if ‘xread’ throws an exception...
git-2.52.0/http.c:2721:37: danger: ‘open(prevfile.buf, 0)’ leaks here; was opened at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def352]
git-2.52.0/imap-send.c:460:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
git-2.52.0/imap-send.c:1779:5: enter_function: entry to ‘cmd_main’
git-2.52.0/imap-send.c:1794:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1799:12: branch_false: ...to here
git-2.52.0/imap-send.c:1799:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1814:14: branch_false: ...to here
git-2.52.0/imap-send.c:1817:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1828:13: branch_false: ...to here
git-2.52.0/imap-send.c:1828:12: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1829:21: branch_true: ...to here
git-2.52.0/imap-send.c:1829:20: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1830:31: branch_true: ...to here
git-2.52.0/imap-send.c:1830:31: call_function: calling ‘list_imap_folders’ from ‘cmd_main’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def353]
git-2.52.0/imap-send.c:515:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/imap-send.c:1779:5: enter_function: entry to ‘cmd_main’
git-2.52.0/imap-send.c:1794:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1799:12: branch_false: ...to here
git-2.52.0/imap-send.c:1799:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1814:14: branch_false: ...to here
git-2.52.0/imap-send.c:1817:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1828:13: branch_false: ...to here
git-2.52.0/imap-send.c:1828:12: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1829:21: branch_true: ...to here
git-2.52.0/imap-send.c:1829:20: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1830:31: branch_true: ...to here
git-2.52.0/imap-send.c:1830:31: call_function: calling ‘list_imap_folders’ from ‘cmd_main’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def354]
git-2.52.0/imap-send.c:516:20: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/imap-send.c:1779:5: enter_function: entry to ‘cmd_main’
git-2.52.0/imap-send.c:1794:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1799:12: branch_false: ...to here
git-2.52.0/imap-send.c:1799:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1814:14: branch_false: ...to here
git-2.52.0/imap-send.c:1817:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1828:13: branch_false: ...to here
git-2.52.0/imap-send.c:1828:12: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1829:21: branch_true: ...to here
git-2.52.0/imap-send.c:1829:20: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1830:31: branch_true: ...to here
git-2.52.0/imap-send.c:1830:31: call_function: calling ‘list_imap_folders’ from ‘cmd_main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def355]
git-2.52.0/imap-send.c:1193:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
git-2.52.0/imap-send.c:1779:5: enter_function: entry to ‘cmd_main’
git-2.52.0/imap-send.c:1794:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1799:12: branch_false: ...to here
git-2.52.0/imap-send.c:1799:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1814:14: branch_false: ...to here
git-2.52.0/imap-send.c:1817:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1828:13: branch_false: ...to here
git-2.52.0/imap-send.c:1828:12: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1829:21: branch_true: ...to here
git-2.52.0/imap-send.c:1829:20: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1830:31: branch_true: ...to here
git-2.52.0/imap-send.c:1830:31: call_function: calling ‘list_imap_folders’ from ‘cmd_main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def356]
git-2.52.0/imap-send.c:1197:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
git-2.52.0/imap-send.c:1779:5: enter_function: entry to ‘cmd_main’
git-2.52.0/imap-send.c:1794:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1799:12: branch_false: ...to here
git-2.52.0/imap-send.c:1799:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1814:14: branch_false: ...to here
git-2.52.0/imap-send.c:1817:12: branch_false: following ‘false’ branch...
git-2.52.0/imap-send.c:1828:13: branch_false: ...to here
git-2.52.0/imap-send.c:1828:12: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1829:21: branch_true: ...to here
git-2.52.0/imap-send.c:1829:20: branch_true: following ‘true’ branch...
git-2.52.0/imap-send.c:1830:31: branch_true: ...to here
git-2.52.0/imap-send.c:1830:31: call_function: calling ‘list_imap_folders’ from ‘cmd_main’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def357]
git-2.52.0/loose.c:201:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(path.buf, 1089, 438)’
git-2.52.0/loose.c:169:12: enter_function: entry to ‘write_one_object’
git-2.52.0/loose.c:182:12: branch_false: following ‘false’ branch...
git-2.52.0/loose.c:184:13: branch_false: ...to here
git-2.52.0/loose.c:184:12: branch_false: following ‘false’ branch...
git-2.52.0/loose.c:186:14: branch_false: ...to here
git-2.52.0/loose.c:190:12: branch_false: following ‘false’ branch...
git-2.52.0/loose.c:192:13: branch_false: ...to here
git-2.52.0/loose.c:192:13: release_resource: first ‘close’ here
git-2.52.0/loose.c:192:12: branch_true: following ‘true’ branch...
git-2.52.0/loose.c:193:17: branch_true: ...to here
git-2.52.0/loose.c:200:9: call_function: calling ‘_’ from ‘write_one_object’
git-2.52.0/loose.c:200:9: return_function: returning to ‘write_one_object’ from ‘_’
git-2.52.0/loose.c:201:9: danger: second ‘close’ here; first ‘close’ was at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: COMPILER_WARNING (CWE-704): [#def358]
git-2.52.0/mailinfo.c: scope_hint: In function ‘output_header_lines’
git-2.52.0/mailinfo.c:1144:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def359]
git-2.52.0/mailinfo.c:1144:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def360]
git-2.52.0/mailmap.c:165:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/mailmap.c:212:5: enter_function: entry to ‘read_mailmap’
git-2.52.0/mailmap.c:223:24: call_function: calling ‘read_mailmap_file’ from ‘read_mailmap’
Error: COMPILER_WARNING (CWE-704): [#def361]
git-2.52.0/mem-pool.c: scope_hint: In function ‘mem_pool_strndup’
git-2.52.0/mem-pool.c:172:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def362]
git-2.52.0/mem-pool.c:172:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def363]
git-2.52.0/merge-ort.c: scope_hint: In function ‘apply_directory_rename_modifications’
git-2.52.0/merge-ort.c:2701:36: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def364]
git-2.52.0/midx.c:225:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘git_open_cloexec(midx_name, 0)’
git-2.52.0/midx.c:102:33: enter_function: entry to ‘load_multi_pack_index_one’
git-2.52.0/midx.c:118:12: branch_false: following ‘false’ branch...
git-2.52.0/midx.c:120:13: branch_false: ...to here
git-2.52.0/midx.c:120:12: branch_false: following ‘false’ branch...
git-2.52.0/midx.c:125:29: branch_false: ...to here
git-2.52.0/midx.c:125:21: call_function: inlined call to ‘xsize_t’ from ‘load_multi_pack_index_one’
git-2.52.0/midx.c:127:12: branch_false: following ‘false’ branch...
git-2.52.0/midx.c:132:20: branch_false: ...to here
git-2.52.0/midx.c:133:9: release_resource: first ‘close’ here
git-2.52.0/midx.c:141:12: branch_false: following ‘false’ branch...
git-2.52.0/midx.c:145:22: branch_false: ...to here
git-2.52.0/midx.c:146:12: branch_false: following ‘false’ branch...
git-2.52.0/midx.c:150:24: branch_false: ...to here
git-2.52.0/midx.c:152:17: call_function: calling ‘_’ from ‘load_multi_pack_index_one’
git-2.52.0/midx.c:152:17: return_function: returning to ‘load_multi_pack_index_one’ from ‘_’
git-2.52.0/midx.c:222:12: branch_true: following ‘true’ branch (when ‘midx_map’ is non-NULL)...
git-2.52.0/midx.c:223:17: branch_true: ...to here
git-2.52.0/midx.c:224:12: branch_true: following ‘true’ branch...
git-2.52.0/midx.c:225:17: branch_true: ...to here
git-2.52.0/midx.c:225:17: danger: second ‘close’ here; first ‘close’ was at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def365]
git-2.52.0/object-file.c:1612:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
git-2.52.0/object-file.c:1637:5: enter_function: entry to ‘index_path’
git-2.52.0/object-file.c:1646:22: acquire_resource: opened here
git-2.52.0/object-file.c:1647:20: branch_false: following ‘false’ branch...
git-2.52.0/object-file.c:1649:21: branch_false: ...to here
git-2.52.0/object-file.c:1649:21: call_function: calling ‘index_fd’ from ‘index_path’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
git-2.52.0/object-file.c:1715:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*path.buf)’
git-2.52.0/object-file.c:1686:12: enter_function: entry to ‘for_each_file_in_obj_subdir’
git-2.52.0/object-file.c:1700:12: branch_false: following ‘false’ branch (when ‘subdir_nr <= 255’)...
git-2.52.0/object-file.c:1703:9: branch_false: ...to here
git-2.52.0/object-file.c:1707:15: acquire_memory: allocated here
git-2.52.0/object-file.c:1708:12: branch_false: following ‘false’ branch...
git-2.52.0/object-file.c:1715:9: branch_false: ...to here
git-2.52.0/object-file.c:1716:9: call_function: calling ‘strbuf_addch’ from ‘for_each_file_in_obj_subdir’
Error: COMPILER_WARNING (CWE-704): [#def367]
git-2.52.0/object-name.c: scope_hint: In function ‘repo_interpret_branch_name’
git-2.52.0/object-name.c:1782:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def368]
git-2.52.0/object-name.c:1782:18: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:16:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:17:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:20:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:24:9: throw: if ‘credential_init’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:24:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:25:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:16:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:17:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:20:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:25:9: throw: if ‘credential_from_url_gently’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:25:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:28:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:16:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:17:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:20:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:28:9: throw: if ‘credential_clear’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-credential-from-url-gently.c:28:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
git-2.52.0/oss-fuzz/fuzz-parse-attr-line.c:24:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-parse-attr-line.c:17:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-parse-attr-line.c:18:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-parse-attr-line.c:21:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-parse-attr-line.c:24:15: throw: if ‘parse_attr_line’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-parse-attr-line.c:24:15: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:25:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:17:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:18:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:21:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:25:13: throw: if ‘url_decode’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:25:13: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:28:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:17:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:18:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:21:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:28:13: throw: if ‘url_percent_decode’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:28:13: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:17:15: acquire_memory: allocated here
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:18:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:21:9: branch_false: ...to here
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:32:13: throw: if ‘url_decode_parameter_name’ throws an exception...
git-2.52.0/oss-fuzz/fuzz-url-decode-mem.c:32:13: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def376]
git-2.52.0/pack-revindex.c: scope_hint: In function ‘midx_key_to_pack_pos’
git-2.52.0/pack-revindex.c:564:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def377]
git-2.52.0/pack-revindex.c:564:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING: [#def378]
git-2.52.0/pager.c:55:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘1’
git-2.52.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.52.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.52.0/pager.c:52:9: branch_false: ...to here
git-2.52.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.52.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.52.0/pager.c:55:9: danger: ‘1’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def379]
git-2.52.0/pager.c:59:17: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘2’
git-2.52.0/pager.c:47:6: enter_function: entry to ‘wait_for_pager’
git-2.52.0/pager.c:49:12: branch_false: following ‘false’ branch...
git-2.52.0/pager.c:52:9: branch_false: ...to here
git-2.52.0/pager.c:52:9: call_function: calling ‘finish_pager’ from ‘wait_for_pager’
git-2.52.0/pager.c:52:9: return_function: returning to ‘wait_for_pager’ from ‘finish_pager’
git-2.52.0/pager.c:58:12: branch_true: following ‘true’ branch...
git-2.52.0/pager.c:59:17: branch_true: ...to here
git-2.52.0/pager.c:59:17: danger: ‘2’ could be invalid
Error: COMPILER_WARNING (CWE-704): [#def380]
git-2.52.0/pager.c: scope_hint: In function ‘setup_pager_env’
git-2.52.0/pager.c:121:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def381]
git-2.52.0/pager.c:121:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def382]
git-2.52.0/parse-options.c:1499:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/parse-options.c:1498:9: acquire_resource: ‘va_start’ called here
git-2.52.0/parse-options.c:1499:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/parse-options.c:1499:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def383]
git-2.52.0/path.c:428:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/path.c:1683:1: enter_function: entry to ‘git_path_shallow’
git-2.52.0/path.c:1683:1: branch_true: following ‘true’ branch...
git-2.52.0/path.c:1683:1: branch_true: ...to here
git-2.52.0/path.c:1683:1: call_function: calling ‘repo_git_path’ from ‘git_path_shallow’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def384]
git-2.52.0/pkt-line.c:154:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/pkt-line.c:693:6: enter_function: entry to ‘packet_writer_error’
git-2.52.0/pkt-line.c:697:9: acquire_resource: ‘va_start’ called here
git-2.52.0/pkt-line.c:698:9: call_function: calling ‘packet_write_fmt_1’ from ‘packet_writer_error’
Error: COMPILER_WARNING (CWE-704): [#def385]
git-2.52.0/pkt-line.c: scope_hint: In function ‘find_packfile_uri_path’
git-2.52.0/pkt-line.c:401:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def386]
git-2.52.0/pkt-line.c:401:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def387]
git-2.52.0/pseudo-merge.c: scope_hint: In function ‘find_pseudo_merge’
git-2.52.0/pseudo-merge.c:650:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def388]
git-2.52.0/pseudo-merge.c:650:16: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def389]
git-2.52.0/range-diff.c: scope_hint: In function ‘read_patches’
git-2.52.0/range-diff.c:109:50: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def390]
git-2.52.0/range-diff.c:109:50: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def391]
git-2.52.0/range-diff.c:559:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b_util’
git-2.52.0/range-diff.c:542:26: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:542:38: branch_true: ...to here
git-2.52.0/range-diff.c:543:26: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:543:38: branch_true: ...to here
git-2.52.0/range-diff.c:546:24: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:546:37: branch_true: ...to here
git-2.52.0/range-diff.c:547:34: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:547:48: branch_true: ...to here
git-2.52.0/range-diff.c:546:24: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:546:37: branch_true: ...to here
git-2.52.0/range-diff.c:550:20: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:550:34: branch_true: ...to here
git-2.52.0/range-diff.c:550:21: branch_false: following ‘false’ branch...
git-2.52.0/range-diff.c:550:21: branch_false: ...to here
git-2.52.0/range-diff.c:559:24: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:560:28: branch_false: following ‘false’ branch...
git-2.52.0/range-diff.c:563:25: branch_false: ...to here
git-2.52.0/range-diff.c:559:24: branch_true: following ‘true’ branch...
git-2.52.0/range-diff.c:559:37: branch_true: ...to here
git-2.52.0/range-diff.c:559:37: danger: dereference of NULL ‘b_util’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def392]
git-2.52.0/read-cache.c:3104:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘ieot’
git-2.52.0/read-cache.c:3313:5: enter_function: entry to ‘write_locked_index’
git-2.52.0/read-cache.c:3337:23: call_function: calling ‘do_write_locked_index’ from ‘write_locked_index’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def393]
git-2.52.0/read-cache.h:42:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.52.0/diff-lib.c:512:12: enter_function: entry to ‘oneway_diff’
git-2.52.0/diff-lib.c:525:12: branch_true: following ‘true’ branch...
git-2.52.0/diff-lib.c:525:12: branch_true: ...to here
git-2.52.0/diff-lib.c:528:13: branch_false: following ‘false’ branch (when ‘idx’ is NULL)...
git-2.52.0/diff-lib.c:528:13: branch_false: ...to here
git-2.52.0/diff-lib.c:528:13: call_function: calling ‘ce_path_match’ from ‘oneway_diff’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def394]
git-2.52.0/ref-filter.c:258:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/ref-filter.c:898:12: enter_function: entry to ‘ahead_behind_atom_parser’
git-2.52.0/ref-filter.c:903:24: call_function: calling ‘_’ from ‘ahead_behind_atom_parser’
git-2.52.0/ref-filter.c:903:24: return_function: returning to ‘ahead_behind_atom_parser’ from ‘_’
git-2.52.0/ref-filter.c:903:24: call_function: calling ‘strbuf_addf_ret’ from ‘ahead_behind_atom_parser’
Error: COMPILER_WARNING (CWE-704): [#def395]
git-2.52.0/ref-filter.c: scope_hint: In function ‘rstrip_ref_components’
git-2.52.0/ref-filter.c:2169:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def396]
git-2.52.0/ref-filter.c:2169:27: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def397]
git-2.52.0/reflog-walk.c: scope_hint: In function ‘add_reflog_for_walk’
git-2.52.0/reflog-walk.c:160:29: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def398]
git-2.52.0/reflog-walk.c:160:29: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-126): [#def399]
git-2.52.0/refs.c:2601:31: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
git-2.52.0/refs.c:2733:28: enter_function: entry to ‘refs_verify_refname_available’
git-2.52.0/refs.c:2747:16: call_function: calling ‘refs_verify_refnames_available’ from ‘refs_verify_refname_available’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def400]
git-2.52.0/refs.c:2602:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
git-2.52.0/refs.c:2733:28: enter_function: entry to ‘refs_verify_refname_available’
git-2.52.0/refs.c:2747:16: call_function: calling ‘refs_verify_refnames_available’ from ‘refs_verify_refname_available’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
git-2.52.0/refs/files-backend.c:374:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path.buf)’
git-2.52.0/refs/files-backend.c:3701:12: enter_function: entry to ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3705:17: call_function: calling ‘files_downcast’ from ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3705:17: return_function: returning to ‘files_ref_store_remove_on_disk’ from ‘files_downcast’
git-2.52.0/refs/files-backend.c:3719:9: call_function: calling ‘strbuf_setlen’ from ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3719:9: return_function: returning to ‘files_ref_store_remove_on_disk’ from ‘strbuf_setlen’
git-2.52.0/refs/files-backend.c:3727:9: call_function: calling ‘strbuf_setlen’ from ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3727:9: return_function: returning to ‘files_ref_store_remove_on_disk’ from ‘strbuf_setlen’
git-2.52.0/refs/files-backend.c:3729:13: call_function: calling ‘for_each_root_ref’ from ‘files_ref_store_remove_on_disk’
Error: COMPILER_WARNING (CWE-704): [#def402]
git-2.52.0/refs/files-backend.c: scope_hint: In function ‘show_one_reflog_ent’
git-2.52.0/refs/files-backend.c:2211:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def403]
git-2.52.0/refs/files-backend.c:2211:25: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def404]
git-2.52.0/refs/packed-backend.c:533:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/refs/packed-backend.c:2070:12: enter_function: entry to ‘packed_fsck’
git-2.52.0/refs/packed-backend.c:2074:41: call_function: calling ‘packed_downcast’ from ‘packed_fsck’
git-2.52.0/refs/packed-backend.c:2074:41: return_function: returning to ‘packed_fsck’ from ‘packed_downcast’
git-2.52.0/refs/packed-backend.c:2082:12: branch_false: following ‘false’ branch...
git-2.52.0/refs/packed-backend.c:2085:13: branch_false: ...to here
git-2.52.0/refs/packed-backend.c:2089:12: branch_false: following ‘false’ branch...
git-2.52.0/refs/packed-backend.c:2108:20: branch_false: ...to here
git-2.52.0/refs/packed-backend.c:2108:19: branch_false: following ‘false’ branch...
git-2.52.0/refs/packed-backend.c:2111:21: branch_false: ...to here
git-2.52.0/refs/packed-backend.c:2111:19: branch_false: following ‘false’ branch...
git-2.52.0/refs/packed-backend.c:2120:14: branch_false: ...to here
git-2.52.0/refs/packed-backend.c:2120:14: call_function: calling ‘allocate_snapshot_buffer’ from ‘packed_fsck’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def405]
git-2.52.0/refs/packed-backend.c:574:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*snapshot_14(D)->refs.path, 0)’
git-2.52.0/refs/packed-backend.c:558:14: acquire_resource: opened here
git-2.52.0/refs/packed-backend.c:559:12: branch_false: following ‘false’ branch...
git-2.52.0/refs/packed-backend.c:574:9: branch_false: ...to here
git-2.52.0/refs/packed-backend.c:574:9: throw: if ‘stat_validity_update’ throws an exception...
git-2.52.0/refs/packed-backend.c:574:9: danger: ‘open(*snapshot_14(D)->refs.path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
git-2.52.0/reftable/basics.c:23:24: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
git-2.52.0/reftable/basics.c:198:5: enter_function: entry to ‘parse_names’
git-2.52.0/reftable/basics.c:207:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.52.0/reftable/basics.c:208:30: branch_true: ...to here
git-2.52.0/reftable/basics.c:209:20: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
git-2.52.0/reftable/basics.c:212:27: branch_false: ...to here
git-2.52.0/reftable/basics.c:212:27: branch_true: following ‘true’ branch (when ‘end > next’)...
git-2.52.0/reftable/basics.c:213:25: branch_true: ...to here
git-2.52.0/reftable/basics.c:218:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.52.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.52.0/reftable/basics.c:219:28: branch_true: following ‘true’ branch...
git-2.52.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.52.0/reftable/basics.c:219:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.52.0/reftable/basics.c:219:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.52.0/reftable/basics.c:219:29: branch_false: following ‘false’ branch...
git-2.52.0/reftable/basics.c:225:30: branch_false: ...to here
git-2.52.0/reftable/basics.c:225:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def407]
git-2.52.0/reftable/basics.c:238:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
git-2.52.0/reftable/basics.c:198:5: enter_function: entry to ‘parse_names’
git-2.52.0/reftable/basics.c:207:16: branch_true: following ‘true’ branch (when ‘p < end’)...
git-2.52.0/reftable/basics.c:208:30: branch_true: ...to here
git-2.52.0/reftable/basics.c:209:20: branch_false: following ‘false’ branch (when ‘next’ is non-NULL)...
git-2.52.0/reftable/basics.c:212:27: branch_false: ...to here
git-2.52.0/reftable/basics.c:212:27: branch_true: following ‘true’ branch (when ‘end > next’)...
git-2.52.0/reftable/basics.c:213:25: branch_true: ...to here
git-2.52.0/reftable/basics.c:218:20: branch_true: following ‘true’ branch (when ‘p < next’)...
git-2.52.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.52.0/reftable/basics.c:219:28: branch_true: following ‘true’ branch...
git-2.52.0/reftable/basics.c:219:29: branch_true: ...to here
git-2.52.0/reftable/basics.c:219:29: call_function: calling ‘reftable_alloc_grow’ from ‘parse_names’
git-2.52.0/reftable/basics.c:219:29: return_function: returning to ‘parse_names’ from ‘reftable_alloc_grow’
git-2.52.0/reftable/basics.c:219:29: branch_false: following ‘false’ branch...
git-2.52.0/reftable/basics.c:225:30: branch_false: ...to here
git-2.52.0/reftable/basics.c:225:44: call_function: calling ‘reftable_strdup’ from ‘parse_names’
git-2.52.0/reftable/basics.c:225:44: return_function: returning to ‘parse_names’ from ‘reftable_strdup’
git-2.52.0/reftable/basics.c:226:28: branch_false: following ‘false’ branch...
git-2.52.0/reftable/basics.c:231:17: branch_false: ...to here
git-2.52.0/reftable/basics.c:234:12: branch_false: following ‘false’ branch...
git-2.52.0/reftable/basics.c:238:14: branch_false: ...to here
git-2.52.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-476): [#def408]
git-2.52.0/reftable/stack.c:315:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_tables’
git-2.52.0/reftable/stack.c:647:5: enter_function: entry to ‘reftable_stack_reload’
git-2.52.0/reftable/stack.c:651:24: call_function: calling ‘reftable_stack_reload_maybe_reuse’ from ‘reftable_stack_reload’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
git-2.52.0/reftable/stack.c:1783:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*st.reftable_dir)’
git-2.52.0/reftable/stack.c:1777:20: acquire_memory: allocated here
git-2.52.0/reftable/stack.c:1779:12: branch_false: following ‘false’ branch...
git-2.52.0/reftable/stack.c:1779:12: branch_false: ...to here
git-2.52.0/reftable/stack.c:1783:21: throw: if ‘readdir’ throws an exception...
git-2.52.0/reftable/stack.c:1783:21: danger: ‘opendir(*st.reftable_dir)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def410]
git-2.52.0/remote.c:1846:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/remote.c:1843:12: branch_true: following ‘true’ branch (when ‘err’ is non-NULL)...
git-2.52.0/remote.c:1845:17: branch_true: ...to here
git-2.52.0/remote.c:1845:17: acquire_resource: ‘va_start’ called here
git-2.52.0/remote.c:1846:17: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/remote.c:1846:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
git-2.52.0/rerere.c:139:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(repo_git_path(the_repository, "rr-cache/%s", &*rr_dir.name))’
git-2.52.0/rerere.c:153:27: enter_function: entry to ‘find_rerere_dir’
git-2.52.0/rerere.c:159:17: call_function: calling ‘st_add’ from ‘find_rerere_dir’
git-2.52.0/rerere.c:159:17: return_function: returning to ‘find_rerere_dir’ from ‘st_add’
git-2.52.0/rerere.c:165:17: call_function: calling ‘scan_rerere_dir’ from ‘find_rerere_dir’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def412]
git-2.52.0/revision.c:1145:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘commit’
git-2.52.0/revision.c:3937:5: enter_function: entry to ‘prepare_revision_walk’
git-2.52.0/revision.c:3947:21: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3957:9: branch_false: ...to here
git-2.52.0/revision.c:3964:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3969:14: branch_false: ...to here
git-2.52.0/revision.c:3969:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3971:13: branch_false: ...to here
git-2.52.0/revision.c:3971:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3973:13: branch_false: ...to here
git-2.52.0/revision.c:3973:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3975:13: branch_false: ...to here
git-2.52.0/revision.c:3975:12: branch_true: following ‘true’ branch...
git-2.52.0/revision.c:3976:21: branch_true: ...to here
git-2.52.0/revision.c:3976:21: call_function: calling ‘limit_list’ from ‘prepare_revision_walk’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def413]
git-2.52.0/revision.c:1491:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pop_commit(&original_list)’
git-2.52.0/revision.c:3937:5: enter_function: entry to ‘prepare_revision_walk’
git-2.52.0/revision.c:3947:21: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3957:9: branch_false: ...to here
git-2.52.0/revision.c:3964:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3969:14: branch_false: ...to here
git-2.52.0/revision.c:3969:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3971:13: branch_false: ...to here
git-2.52.0/revision.c:3971:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3973:13: branch_false: ...to here
git-2.52.0/revision.c:3973:12: branch_false: following ‘false’ branch...
git-2.52.0/revision.c:3975:13: branch_false: ...to here
git-2.52.0/revision.c:3975:12: branch_true: following ‘true’ branch...
git-2.52.0/revision.c:3976:21: branch_true: ...to here
git-2.52.0/revision.c:3976:21: call_function: calling ‘limit_list’ from ‘prepare_revision_walk’
Error: COMPILER_WARNING (CWE-704): [#def414]
git-2.52.0/revision.c: scope_hint: In function ‘handle_dotdot’
git-2.52.0/revision.c:2159:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def415]
git-2.52.0/revision.c:2159:24: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def416]
git-2.52.0/revision.c: scope_hint: In function ‘handle_revision_arg_1’
git-2.52.0/revision.c:2203:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def417]
git-2.52.0/revision.c:2203:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def418]
git-2.52.0/revision.c:2212:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def419]
git-2.52.0/revision.c:2212:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def420]
git-2.52.0/revision.c:2218:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def421]
git-2.52.0/revision.c:2218:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def422]
git-2.52.0/run-command.c:128:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
git-2.52.0/run-command.c:1152:5: enter_function: entry to ‘start_async’
git-2.52.0/run-command.c:1159:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1160:21: branch_true: ...to here
git-2.52.0/run-command.c:1160:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1165:29: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1170:21: branch_true: ...to here
git-2.52.0/run-command.c:1170:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1171:28: branch_true: ...to here
git-2.52.0/run-command.c:1171:28: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1172:33: branch_true: ...to here
git-2.52.0/run-command.c:1172:33: call_function: calling ‘close_pair’ from ‘start_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def423]
git-2.52.0/run-command.c:128:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdout[1]’
git-2.52.0/run-command.c:677:5: enter_function: entry to ‘start_command’
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:701:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:703:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:705:21: branch_true: ...to here
git-2.52.0/run-command.c:705:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:714:28: branch_false: ...to here
git-2.52.0/run-command.c:717:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:719:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:720:40: branch_true: ...to here
git-2.52.0/run-command.c:721:28: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:723:34: branch_false: ...to here
git-2.52.0/run-command.c:723:33: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:725:28: branch_false: ...to here
git-2.52.0/run-command.c:725:28: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:726:33: branch_true: ...to here
git-2.52.0/run-command.c:726:33: call_function: calling ‘close_pair’ from ‘start_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def424]
git-2.52.0/run-command.c:128:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘maint.in’
git-2.52.0/run-command.c:1842:5: enter_function: entry to ‘run_auto_maintenance’
git-2.52.0/run-command.c:1845:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1847:16: branch_false: ...to here
git-2.52.0/run-command.c:1847:16: call_function: calling ‘run_command’ from ‘run_auto_maintenance’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def425]
git-2.52.0/run-command.c:128:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘maint.out’
git-2.52.0/run-command.c:1842:5: enter_function: entry to ‘run_auto_maintenance’
git-2.52.0/run-command.c:1845:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1847:16: branch_false: ...to here
git-2.52.0/run-command.c:1847:16: call_function: calling ‘run_command’ from ‘run_auto_maintenance’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def426]
git-2.52.0/run-command.c:129:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdout[1]’
git-2.52.0/run-command.c:677:5: enter_function: entry to ‘start_command’
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:701:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:703:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:705:21: branch_true: ...to here
git-2.52.0/run-command.c:705:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:714:28: branch_false: ...to here
git-2.52.0/run-command.c:717:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:719:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:720:40: branch_true: ...to here
git-2.52.0/run-command.c:721:28: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:723:34: branch_false: ...to here
git-2.52.0/run-command.c:723:33: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:725:28: branch_false: ...to here
git-2.52.0/run-command.c:725:28: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:726:33: branch_true: ...to here
git-2.52.0/run-command.c:726:33: call_function: calling ‘close_pair’ from ‘start_command’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def427]
git-2.52.0/run-command.c:129:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘maint.in’
git-2.52.0/run-command.c:1842:5: enter_function: entry to ‘run_auto_maintenance’
git-2.52.0/run-command.c:1845:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1847:16: branch_false: ...to here
git-2.52.0/run-command.c:1847:16: call_function: calling ‘run_command’ from ‘run_auto_maintenance’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def428]
git-2.52.0/run-command.c:129:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘maint.out’
git-2.52.0/run-command.c:1842:5: enter_function: entry to ‘run_auto_maintenance’
git-2.52.0/run-command.c:1845:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1847:16: branch_false: ...to here
git-2.52.0/run-command.c:1847:16: call_function: calling ‘run_command’ from ‘run_auto_maintenance’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def429]
git-2.52.0/run-command.c:343:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, to)’
git-2.52.0/run-command.c:343:13: acquire_resource: opened here
git-2.52.0/run-command.c:343:12: danger: ‘dup2(fd, to)’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def430]
git-2.52.0/run-command.c:553:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_in’
git-2.52.0/run-command.c:1152:5: enter_function: entry to ‘start_async’
git-2.52.0/run-command.c:1159:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1160:21: branch_true: ...to here
git-2.52.0/run-command.c:1160:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1165:29: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1180:12: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1181:17: branch_true: ...to here
git-2.52.0/run-command.c:1187:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1189:18: branch_false: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1238:12: branch_true: following ‘true’ branch (when ‘proc_in >= 0’)...
git-2.52.0/run-command.c:1239:17: branch_true: ...to here
git-2.52.0/run-command.c:1239:17: call_function: calling ‘set_cloexec’ from ‘start_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def431]
git-2.52.0/run-command.c:553:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_out’
git-2.52.0/run-command.c:1152:5: enter_function: entry to ‘start_async’
git-2.52.0/run-command.c:1159:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1168:20: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1170:21: branch_true: ...to here
git-2.52.0/run-command.c:1170:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1177:30: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1182:18: branch_false: ...to here
git-2.52.0/run-command.c:1187:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1188:17: branch_true: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1238:12: branch_true: following ‘true’ branch (when ‘proc_in >= 0’)...
git-2.52.0/run-command.c:1239:17: branch_true: ...to here
git-2.52.0/run-command.c:1239:17: call_function: calling ‘set_cloexec’ from ‘start_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def432]
git-2.52.0/run-command.c:555:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_in’
git-2.52.0/run-command.c:1152:5: enter_function: entry to ‘start_async’
git-2.52.0/run-command.c:1159:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1160:21: branch_true: ...to here
git-2.52.0/run-command.c:1160:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1165:29: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1180:12: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1181:17: branch_true: ...to here
git-2.52.0/run-command.c:1187:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1189:18: branch_false: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1238:12: branch_false: following ‘false’ branch (when ‘proc_in < 0’)...
git-2.52.0/run-command.c:1240:12: branch_false: ...to here
git-2.52.0/run-command.c:1240:12: branch_true: following ‘true’ branch (when ‘proc_out >= 0’)...
git-2.52.0/run-command.c:1241:17: branch_true: ...to here
git-2.52.0/run-command.c:1241:17: call_function: calling ‘set_cloexec’ from ‘start_async’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def433]
git-2.52.0/run-command.c:555:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_out’
git-2.52.0/run-command.c:1152:5: enter_function: entry to ‘start_async’
git-2.52.0/run-command.c:1159:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1168:20: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1170:21: branch_true: ...to here
git-2.52.0/run-command.c:1170:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1177:30: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1182:18: branch_false: ...to here
git-2.52.0/run-command.c:1187:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1188:17: branch_true: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1238:12: branch_true: following ‘true’ branch (when ‘proc_in >= 0’)...
git-2.52.0/run-command.c:1239:17: branch_true: ...to here
git-2.52.0/run-command.c:1239:17: call_function: calling ‘set_cloexec’ from ‘start_async’
Error: COMPILER_WARNING (CWE-704): [#def434]
git-2.52.0/run-command.c: scope_hint: In function ‘trace_add_env’
git-2.52.0/run-command.c:608:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def435]
git-2.52.0/run-command.c:608:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def436]
git-2.52.0/run-command.c:724:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdout[1]’
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:701:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:703:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:705:21: branch_true: ...to here
git-2.52.0/run-command.c:705:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:714:28: branch_false: ...to here
git-2.52.0/run-command.c:717:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:719:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:720:40: branch_true: ...to here
git-2.52.0/run-command.c:721:28: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:723:34: branch_false: ...to here
git-2.52.0/run-command.c:723:33: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:724:33: branch_true: ...to here
git-2.52.0/run-command.c:724:33: throw: if ‘close’ throws an exception...
git-2.52.0/run-command.c:724:33: danger: ‘fdout[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def437]
git-2.52.0/run-command.c:740:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fderr[1]’
git-2.52.0/run-command.c:717:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:719:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:737:28: branch_false: ...to here
git-2.52.0/run-command.c:740:9: throw: if ‘trace2_child_start_fl’ throws an exception...
git-2.52.0/run-command.c:740:9: danger: ‘fderr[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def438]
git-2.52.0/run-command.c:740:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdin[0]’
git-2.52.0/run-command.c:689:19: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:691:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:698:27: branch_false: ...to here
git-2.52.0/run-command.c:740:9: throw: if ‘trace2_child_start_fl’ throws an exception...
git-2.52.0/run-command.c:740:9: danger: ‘fdin[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def439]
git-2.52.0/run-command.c:740:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdout[1]’
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:701:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:703:20: branch_true: ...to here
git-2.52.0/run-command.c:701:20: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:705:21: branch_true: ...to here
git-2.52.0/run-command.c:705:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:714:28: branch_false: ...to here
git-2.52.0/run-command.c:740:9: throw: if ‘trace2_child_start_fl’ throws an exception...
git-2.52.0/run-command.c:740:9: danger: ‘fdout[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def440]
git-2.52.0/run-command.c:1234:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_in’
git-2.52.0/run-command.c:1159:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1160:21: branch_true: ...to here
git-2.52.0/run-command.c:1160:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1165:29: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1180:12: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1181:17: branch_true: ...to here
git-2.52.0/run-command.c:1187:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1189:18: branch_false: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1234:17: throw: if ‘set_die_routine’ throws an exception...
git-2.52.0/run-command.c:1234:17: danger: ‘proc_in’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def441]
git-2.52.0/run-command.c:1234:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_out’
git-2.52.0/run-command.c:1159:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1168:20: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1170:21: branch_true: ...to here
git-2.52.0/run-command.c:1170:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1177:30: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1182:18: branch_false: ...to here
git-2.52.0/run-command.c:1187:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1188:17: branch_true: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1234:17: throw: if ‘set_die_routine’ throws an exception...
git-2.52.0/run-command.c:1234:17: danger: ‘proc_out’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def442]
git-2.52.0/run-command.c:1235:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_in’
git-2.52.0/run-command.c:1159:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1160:21: branch_true: ...to here
git-2.52.0/run-command.c:1160:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1165:29: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1180:12: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1181:17: branch_true: ...to here
git-2.52.0/run-command.c:1187:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1189:18: branch_false: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1235:17: throw: if ‘set_die_is_recursing_routine’ throws an exception...
git-2.52.0/run-command.c:1235:17: danger: ‘proc_in’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def443]
git-2.52.0/run-command.c:1235:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘proc_out’
git-2.52.0/run-command.c:1159:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1168:20: branch_false: ...to here
git-2.52.0/run-command.c:1169:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1170:21: branch_true: ...to here
git-2.52.0/run-command.c:1170:20: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1177:30: branch_false: ...to here
git-2.52.0/run-command.c:1180:12: branch_false: following ‘false’ branch...
git-2.52.0/run-command.c:1182:18: branch_false: ...to here
git-2.52.0/run-command.c:1187:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1188:17: branch_true: ...to here
git-2.52.0/run-command.c:1225:12: branch_true: following ‘true’ branch...
git-2.52.0/run-command.c:1230:17: branch_true: ...to here
git-2.52.0/run-command.c:1235:17: throw: if ‘set_die_is_recursing_routine’ throws an exception...
git-2.52.0/run-command.c:1235:17: danger: ‘proc_out’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def444]
git-2.52.0/scalar.c:83:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/scalar.c:608:12: enter_function: entry to ‘cmd_list’
git-2.52.0/scalar.c:610:12: branch_false: following ‘false’ branch (when ‘argc == 1’)...
git-2.52.0/scalar.c:613:13: branch_false: ...to here
git-2.52.0/scalar.c:613:13: call_function: calling ‘run_git’ from ‘cmd_list’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def445]
git-2.52.0/scalar.c:85:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/scalar.c:608:12: enter_function: entry to ‘cmd_list’
git-2.52.0/scalar.c:610:12: branch_false: following ‘false’ branch (when ‘argc == 1’)...
git-2.52.0/scalar.c:613:13: branch_false: ...to here
git-2.52.0/scalar.c:613:13: call_function: calling ‘run_git’ from ‘cmd_list’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def446]
git-2.52.0/scalar.c:320:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/scalar.c:426:12: enter_function: entry to ‘cmd_clone’
git-2.52.0/scalar.c:460:12: branch_true: following ‘true’ branch...
git-2.52.0/scalar.c:461:17: branch_true: ...to here
git-2.52.0/scalar.c:483:12: branch_false: following ‘false’ branch...
git-2.52.0/scalar.c:486:13: branch_false: ...to here
git-2.52.0/scalar.c:491:9: call_function: calling ‘strbuf_setlen’ from ‘cmd_clone’
git-2.52.0/scalar.c:491:9: return_function: returning to ‘cmd_clone’ from ‘strbuf_setlen’
git-2.52.0/scalar.c:500:12: branch_false: following ‘false’ branch...
git-2.52.0/scalar.c:503:13: branch_false: ...to here
git-2.52.0/scalar.c:503:12: branch_false: following ‘false’ branch...
git-2.52.0/scalar.c:508:9: branch_false: ...to here
git-2.52.0/scalar.c:513:12: branch_false: following ‘false’ branch...
git-2.52.0/scalar.c:518:13: branch_false: ...to here
git-2.52.0/scalar.c:518:13: call_function: calling ‘set_config’ from ‘cmd_clone’
Error: COMPILER_WARNING (CWE-704): [#def447]
git-2.52.0/send-pack.c: scope_hint: In function ‘receive_status’
git-2.52.0/send-pack.c:184:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def448]
git-2.52.0/send-pack.c:184:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def449]
git-2.52.0/send-pack.c:215:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def450]
git-2.52.0/send-pack.c:215:27: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def451]
git-2.52.0/send-pack.c:240:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def452]
git-2.52.0/send-pack.c:240:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def453]
git-2.52.0/sequencer.c:468:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/sequencer.c:5197:12: enter_function: entry to ‘commit_staged_changes’
git-2.52.0/sequencer.c:5205:37: call_function: calling ‘reflog_message’ from ‘commit_staged_changes’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def454]
git-2.52.0/sequencer.c:2221:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/sequencer.c:5197:12: enter_function: entry to ‘commit_staged_changes’
git-2.52.0/sequencer.c:5205:37: call_function: calling ‘reflog_message’ from ‘commit_staged_changes’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def455]
git-2.52.0/sequencer.c:2239:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/sequencer.c:5197:12: enter_function: entry to ‘commit_staged_changes’
git-2.52.0/sequencer.c:5205:37: call_function: calling ‘reflog_message’ from ‘commit_staged_changes’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def456]
git-2.52.0/sequencer.c:2242:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/sequencer.c:4804:12: enter_function: entry to ‘checkout_onto’
git-2.52.0/sequencer.c:4813:29: call_function: calling ‘reflog_message’ from ‘checkout_onto’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def457]
git-2.52.0/sequencer.c:2419:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*item.flags’
git-2.52.0/sequencer.c:5460:12: enter_function: entry to ‘single_pick’
git-2.52.0/sequencer.c:5471:16: call_function: calling ‘do_pick_commit’ from ‘single_pick’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def458]
git-2.52.0/sequencer.c:2940:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
git-2.52.0/sequencer.c:4844:12: enter_function: entry to ‘reread_todo_if_changed’
git-2.52.0/sequencer.c:4851:13: call_function: calling ‘strbuf_read_file_or_whine’ from ‘reread_todo_if_changed’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def459]
git-2.52.0/sequencer.c:3893:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/sequencer.c:3883:12: branch_false: following ‘false’ branch...
git-2.52.0/sequencer.c:3886:13: branch_false: ...to here
git-2.52.0/sequencer.c:3892:9: acquire_resource: ‘va_start’ called here
git-2.52.0/sequencer.c:3893:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/sequencer.c:3893:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def460]
git-2.52.0/server-info.c:54:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/server-info.c:332:12: enter_function: entry to ‘write_pack_info_file’
git-2.52.0/server-info.c:339:13: call_function: calling ‘uic_printf’ from ‘write_pack_info_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def461]
git-2.52.0/setup.c:381:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
git-2.52.0/setup.c:1984:13: enter_function: entry to ‘resolve_gitdir_gently’
git-2.52.0/setup.c:1986:13: call_function: calling ‘is_git_directory’ from ‘resolve_gitdir_gently’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def462]
git-2.52.0/setup.c:960:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
git-2.52.0/setup.c:2436:13: enter_function: entry to ‘separate_git_dir’
git-2.52.0/setup.c:2440:12: branch_true: following ‘true’ branch...
git-2.52.0/setup.c:2443:21: branch_true: ...to here
git-2.52.0/setup.c:2443:20: branch_true: following ‘true’ branch...
git-2.52.0/setup.c:2444:31: branch_true: ...to here
git-2.52.0/setup.c:2444:31: call_function: calling ‘read_gitfile_gently’ from ‘separate_git_dir’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
git-2.52.0/setup.c:2177:50: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(template_path.buf)’
git-2.52.0/setup.c:2151:13: enter_function: entry to ‘copy_templates’
git-2.52.0/setup.c:2162:12: branch_false: following ‘false’ branch...
git-2.52.0/setup.c:2169:15: acquire_memory: allocated here
git-2.52.0/setup.c:2170:12: branch_false: following ‘false’ branch...
git-2.52.0/setup.c:2176:9: branch_false: ...to here
git-2.52.0/setup.c:2177:9: call_function: calling ‘read_repository_format’ from ‘copy_templates’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def464]
git-2.52.0/strbuf.c:111:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/strbuf.c:839:13: enter_function: entry to ‘strbuf_humanise’
git-2.52.0/strbuf.c:851:19: branch_false: following ‘false’ branch (when ‘bytes <= 1048576’)...
git-2.52.0/strbuf.c:860:19: branch_false: ...to here
git-2.52.0/strbuf.c:860:19: branch_false: following ‘false’ branch (when ‘bytes <= 1024’)...
git-2.52.0/strbuf.c:870:17: branch_false: ...to here
git-2.52.0/strbuf.c:870:17: call_function: calling ‘strbuf_addf’ from ‘strbuf_humanise’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def465]
git-2.52.0/strbuf.c:114:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/strbuf.c:945:7: enter_function: entry to ‘xstrfmt’
git-2.52.0/strbuf.c:950:9: acquire_resource: ‘va_start’ called here
git-2.52.0/strbuf.c:951:15: call_function: calling ‘xstrvfmt’ from ‘xstrfmt’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def466]
git-2.52.0/strbuf.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/strbuf.c:1049:6: enter_function: entry to ‘strbuf_stripspace’
git-2.52.0/strbuf.c:1056:9: call_function: calling ‘strbuf_grow’ from ‘strbuf_stripspace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
git-2.52.0/strbuf.h:145:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*template_path.buf)’
git-2.52.0/setup.c:2084:13: enter_function: entry to ‘copy_templates_1’
git-2.52.0/setup.c:2099:16: branch_true: following ‘true’ branch...
git-2.52.0/setup.c:2103:17: branch_true: ...to here
git-2.52.0/setup.c:2103:17: call_function: calling ‘strbuf_setlen’ from ‘copy_templates_1’
git-2.52.0/setup.c:2103:17: return_function: returning to ‘copy_templates_1’ from ‘strbuf_setlen’
git-2.52.0/setup.c:2104:17: call_function: calling ‘strbuf_setlen’ from ‘copy_templates_1’
git-2.52.0/setup.c:2104:17: return_function: returning to ‘copy_templates_1’ from ‘strbuf_setlen’
git-2.52.0/setup.c:2117:20: branch_false: following ‘false’ branch...
git-2.52.0/setup.c:2120:21: branch_false: ...to here
git-2.52.0/setup.c:2120:20: branch_true: following ‘true’ branch...
git-2.52.0/setup.c:2121:47: branch_true: ...to here
git-2.52.0/setup.c:2121:39: acquire_memory: allocated here
git-2.52.0/setup.c:2122:28: branch_false: following ‘false’ branch...
git-2.52.0/setup.c:2124:25: branch_false: ...to here
git-2.52.0/setup.c:2124:25: call_function: calling ‘strbuf_addch’ from ‘copy_templates_1’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
git-2.52.0/strbuf.h:145:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/diagnose.c:91:13: enter_function: entry to ‘loose_objs_stats’
git-2.52.0/diagnose.c:93:20: acquire_memory: allocated here
git-2.52.0/diagnose.c:101:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:104:9: branch_false: ...to here
git-2.52.0/diagnose.c:109:9: call_function: calling ‘strbuf_addch’ from ‘loose_objs_stats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
git-2.52.0/strbuf.h:145:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path.buf)’
git-2.52.0/notes-merge.c:682:5: enter_function: entry to ‘notes_merge_commit’
git-2.52.0/notes-merge.c:707:12: branch_false: following ‘false’ branch...
git-2.52.0/notes-merge.c:711:15: acquire_memory: allocated here
git-2.52.0/notes-merge.c:712:12: branch_false: following ‘false’ branch...
git-2.52.0/notes-merge.c:715:9: branch_false: ...to here
git-2.52.0/notes-merge.c:715:9: call_function: calling ‘strbuf_addch’ from ‘notes_merge_commit’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def470]
git-2.52.0/strbuf.h:166:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
git-2.52.0/refs/files-backend.c:2666:35: enter_function: entry to ‘lock_ref_for_update’
git-2.52.0/refs/files-backend.c:2680:9: call_function: inlined call to ‘files_assert_main_repository’ from ‘lock_ref_for_update’
git-2.52.0/refs/files-backend.c:2682:9: branch_true: ...to here
git-2.52.0/refs/files-backend.c:2694:12: branch_false: following ‘false’ branch...
git-2.52.0/refs/files-backend.c:2697:23: branch_false: ...to here
git-2.52.0/refs/files-backend.c:2697:23: call_function: calling ‘lock_raw_ref’ from ‘lock_ref_for_update’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def471]
git-2.52.0/strbuf.h:167:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/pkt-line.c:693:6: enter_function: entry to ‘packet_writer_error’
git-2.52.0/pkt-line.c:697:9: acquire_resource: ‘va_start’ called here
git-2.52.0/pkt-line.c:698:9: call_function: calling ‘packet_write_fmt_1’ from ‘packet_writer_error’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def472]
git-2.52.0/strbuf.h:235:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/path.c:1683:1: enter_function: entry to ‘git_path_shallow’
git-2.52.0/path.c:1683:1: branch_true: following ‘true’ branch...
git-2.52.0/path.c:1683:1: branch_true: ...to here
git-2.52.0/path.c:1683:1: call_function: calling ‘repo_git_path’ from ‘git_path_shallow’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def473]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_fd’
git-2.52.0/diagnose.c:181:5: enter_function: entry to ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:198:12: branch_false: following ‘false’ branch (when ‘mode != 0’)...
git-2.52.0/diagnose.c:203:21: branch_false: ...to here
git-2.52.0/diagnose.c:203:21: acquire_resource: opened here
git-2.52.0/diagnose.c:204:12: branch_false: following ‘false’ branch (when ‘stdout_fd >= 0’)...
git-2.52.0/diagnose.c:209:29: branch_false: ...to here
git-2.52.0/diagnose.c:210:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:215:9: branch_false: ...to here
git-2.52.0/diagnose.c:218:9: call_function: calling ‘strbuf_setlen’ from ‘create_diagnostics_archive’
git-2.52.0/diagnose.c:218:9: return_function: returning to ‘create_diagnostics_archive’ from ‘strbuf_setlen’
git-2.52.0/diagnose.c:219:9: call_function: calling ‘strbuf_addstr’ from ‘create_diagnostics_archive’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(from_path)’
git-2.52.0/refs.c:3046:12: enter_function: entry to ‘move_files’
git-2.52.0/refs.c:3053:20: acquire_memory: allocated here
git-2.52.0/refs.c:3054:12: branch_false: following ‘false’ branch...
git-2.52.0/refs.c:3061:9: branch_false: ...to here
git-2.52.0/refs.c:3061:9: call_function: calling ‘strbuf_addstr’ from ‘move_files’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/diagnose.c:91:13: enter_function: entry to ‘loose_objs_stats’
git-2.52.0/diagnose.c:93:20: acquire_memory: allocated here
git-2.52.0/diagnose.c:101:12: branch_false: following ‘false’ branch...
git-2.52.0/diagnose.c:104:9: branch_false: ...to here
git-2.52.0/diagnose.c:104:9: call_function: calling ‘strbuf_addstr’ from ‘loose_objs_stats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path.buf)’
git-2.52.0/refs/files-backend.c:3701:12: enter_function: entry to ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3705:17: call_function: calling ‘files_downcast’ from ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3705:17: return_function: returning to ‘files_ref_store_remove_on_disk’ from ‘files_downcast’
git-2.52.0/refs/files-backend.c:3719:9: call_function: calling ‘strbuf_setlen’ from ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3719:9: return_function: returning to ‘files_ref_store_remove_on_disk’ from ‘strbuf_setlen’
git-2.52.0/refs/files-backend.c:3727:9: call_function: calling ‘strbuf_setlen’ from ‘files_ref_store_remove_on_disk’
git-2.52.0/refs/files-backend.c:3727:9: return_function: returning to ‘files_ref_store_remove_on_disk’ from ‘strbuf_setlen’
git-2.52.0/refs/files-backend.c:3729:13: call_function: calling ‘for_each_root_ref’ from ‘files_ref_store_remove_on_disk’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(template_path.buf)’
git-2.52.0/setup.c:2151:13: enter_function: entry to ‘copy_templates’
git-2.52.0/setup.c:2162:12: branch_false: following ‘false’ branch...
git-2.52.0/setup.c:2169:15: acquire_memory: allocated here
git-2.52.0/setup.c:2170:12: branch_false: following ‘false’ branch...
git-2.52.0/setup.c:2176:9: branch_false: ...to here
git-2.52.0/setup.c:2176:9: call_function: calling ‘strbuf_addstr’ from ‘copy_templates’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def478]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
git-2.52.0/builtin/config.c:679:12: enter_function: entry to ‘get_urlmatch’
git-2.52.0/builtin/config.c:694:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/config.c:697:26: branch_false: ...to here
git-2.52.0/builtin/config.c:699:12: branch_true: following ‘true’ branch (when ‘section_tail’ is non-NULL)...
git-2.52.0/builtin/config.c:700:17: branch_true: ...to here
git-2.52.0/builtin/config.c:714:9: branch_true: following ‘true’ branch...
git-2.52.0/builtin/config.c:718:17: branch_false: following ‘false’ branch...
git-2.52.0/builtin/config.c:718:52: branch_false: ...to here
git-2.52.0/builtin/config.c:718:17: call_function: calling ‘format_config’ from ‘get_urlmatch’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def479]
git-2.52.0/strbuf.h:310:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/path.c:1683:1: enter_function: entry to ‘git_path_shallow’
git-2.52.0/path.c:1683:1: branch_true: following ‘true’ branch...
git-2.52.0/path.c:1683:1: branch_true: ...to here
git-2.52.0/path.c:1683:1: call_function: calling ‘repo_git_path’ from ‘git_path_shallow’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
git-2.52.0/strbuf.h:632:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*path.buf)’
git-2.52.0/builtin/clean.c:188:15: acquire_memory: allocated here
git-2.52.0/builtin/clean.c:189:12: branch_false: following ‘false’ branch...
git-2.52.0/builtin/clean.c:203:9: branch_false: ...to here
git-2.52.0/builtin/clean.c:206:21: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/strbuf.h:632:13: danger: ‘opendir(*path.buf)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
git-2.52.0/strbuf.h:632:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(from_path)’
git-2.52.0/refs.c:3046:12: enter_function: entry to ‘move_files’
git-2.52.0/refs.c:3053:20: acquire_memory: allocated here
git-2.52.0/refs.c:3054:12: branch_false: following ‘false’ branch...
git-2.52.0/refs.c:3061:9: branch_false: ...to here
git-2.52.0/refs.c:3065:9: call_function: calling ‘strbuf_addstr’ from ‘move_files’
Error: COMPILER_WARNING (CWE-704): [#def482]
git-2.52.0/string-list.c: scope_hint: In function ‘split_string’
git-2.52.0/string-list.c:341:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def483]
git-2.52.0/string-list.c:341:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def484]
git-2.52.0/strvec.c:18:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/strvec.c:42:6: enter_function: entry to ‘strvec_pushl’
git-2.52.0/strvec.c:47:9: acquire_resource: ‘va_start’ called here
git-2.52.0/strvec.c:48:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/strvec.c:49:17: branch_true: ...to here
git-2.52.0/strvec.c:49:17: call_function: calling ‘strvec_push’ from ‘strvec_pushl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def485]
git-2.52.0/strvec.c:25:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/strvec.c:42:6: enter_function: entry to ‘strvec_pushl’
git-2.52.0/strvec.c:47:9: acquire_resource: ‘va_start’ called here
git-2.52.0/strvec.c:48:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/strvec.c:49:17: branch_true: ...to here
git-2.52.0/strvec.c:49:17: call_function: calling ‘strvec_push’ from ‘strvec_pushl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def486]
git-2.52.0/strvec.c:35:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/strvec.c:34:9: acquire_resource: ‘va_start’ called here
git-2.52.0/strvec.c:35:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/strvec.c:35:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
git-2.52.0/t/helper/test-hash.c:32:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
git-2.52.0/t/helper/test-hash.c:25:26: acquire_memory: allocated here
git-2.52.0/t/helper/test-hash.c:32:9: throw: if the called function throws an exception...
git-2.52.0/t/helper/test-hash.c:32:9: danger: ‘buffer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
git-2.52.0/t/helper/test-hash.c:40:30: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
git-2.52.0/t/helper/test-hash.c:25:26: acquire_memory: allocated here
git-2.52.0/t/helper/test-hash.c:39:24: branch_true: following ‘true’ branch (when ‘room != 0’)...
git-2.52.0/t/helper/test-hash.c:40:30: branch_true: ...to here
git-2.52.0/t/helper/test-hash.c:40:30: throw: if ‘xread’ throws an exception...
git-2.52.0/t/helper/test-hash.c:40:30: danger: ‘cp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def489]
git-2.52.0/t/helper/test-pack-deltas.c:69:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘delta_size’
git-2.52.0/t/helper/test-pack-deltas.c:46:13: enter_function: entry to ‘write_ref_delta’
git-2.52.0/t/helper/test-pack-deltas.c:57:12: branch_false: following ‘false’ branch...
git-2.52.0/t/helper/test-pack-deltas.c:60:50: branch_false: ...to here
git-2.52.0/t/helper/test-pack-deltas.c:63:12: branch_false: following ‘false’ branch...
git-2.52.0/t/helper/test-pack-deltas.c:66:21: branch_false: ...to here
git-2.52.0/t/helper/test-pack-deltas.c:66:21: call_function: calling ‘diff_delta’ from ‘write_ref_delta’
git-2.52.0/t/helper/test-pack-deltas.c:66:21: return_function: returning to ‘write_ref_delta’ from ‘diff_delta’
git-2.52.0/t/helper/test-pack-deltas.c:69:27: danger: use of uninitialized value ‘delta_size’ here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def490]
git-2.52.0/t/helper/test-parse-options.c:87:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/helper/test-parse-options.c:86:9: acquire_resource: ‘va_start’ called here
git-2.52.0/t/helper/test-parse-options.c:87:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/t/helper/test-parse-options.c:87:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
git-2.52.0/t/helper/test-run-command.c:183:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(".")’
git-2.52.0/t/helper/test-run-command.c:180:15: acquire_memory: allocated here
git-2.52.0/t/helper/test-run-command.c:181:12: branch_false: following ‘false’ branch...
git-2.52.0/t/helper/test-run-command.c:181:12: branch_false: ...to here
git-2.52.0/t/helper/test-run-command.c:183:21: throw: if ‘readdir’ throws an exception...
git-2.52.0/t/helper/test-run-command.c:183:21: danger: ‘opendir(".")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
git-2.52.0/t/unit-tests/clar/clar/fs.h:486:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/t/unit-tests/clar/clar/sandbox.h:121:13: enter_function: entry to ‘clar_tempdir_shutdown’
git-2.52.0/t/unit-tests/clar/clar/sandbox.h:126:9: call_function: inlined call to ‘clar__assert’ from ‘clar_tempdir_shutdown’
git-2.52.0/t/unit-tests/clar/clar/sandbox.h:128:9: branch_true: ...to here
git-2.52.0/t/unit-tests/clar/clar/sandbox.h:128:9: call_function: calling ‘fs_rm’ from ‘clar_tempdir_shutdown’
Error: COMPILER_WARNING (CWE-704): [#def493]
git-2.52.0/t/unit-tests/clar/clar.c:918: included_from: Included from here.
git-2.52.0/t/unit-tests/clar/clar/print.h: scope_hint: In function ‘print_escaped’
git-2.52.0/t/unit-tests/clar/clar/print.h:132:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def494]
git-2.52.0/t/unit-tests/clar/clar/print.h:132:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def495]
git-2.52.0/t/unit-tests/clar/clar/print.h:191:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/clar/clar/print.h:239:13: enter_function: entry to ‘clar_print_onabort’
git-2.52.0/t/unit-tests/clar/clar/print.h:242:9: acquire_resource: ‘va_start’ called here
git-2.52.0/t/unit-tests/clar/clar/print.h:243:9: call_function: calling ‘clar_print_onabortv’ from ‘clar_print_onabort’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def496]
git-2.52.0/t/unit-tests/clar/clar/summary.h:74:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "w")’
git-2.52.0/t/unit-tests/clar/clar/summary.h:70:19: acquire_resource: opened here
git-2.52.0/t/unit-tests/clar/clar/summary.h:70:12: branch_false: following ‘false’ branch...
git-2.52.0/t/unit-tests/clar/clar/summary.h:74:24: branch_false: ...to here
git-2.52.0/t/unit-tests/clar/clar/summary.h:74:12: danger: ‘fopen(filename, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
git-2.52.0/t/unit-tests/clar/clar/summary.h:74:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "w")’
git-2.52.0/t/unit-tests/clar/clar/summary.h:70:19: acquire_memory: allocated here
git-2.52.0/t/unit-tests/clar/clar/summary.h:70:12: branch_false: following ‘false’ branch...
git-2.52.0/t/unit-tests/clar/clar/summary.h:74:24: branch_false: ...to here
git-2.52.0/t/unit-tests/clar/clar/summary.h:74:12: danger: ‘fopen(filename, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def498]
git-2.52.0/t/unit-tests/test-lib.c:103:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/test-lib.c:415:5: enter_function: entry to ‘check_char_loc’
git-2.52.0/t/unit-tests/test-lib.c:417:19: call_function: calling ‘test_assert’ from ‘check_char_loc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def499]
git-2.52.0/t/unit-tests/test-lib.c:108:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/test-lib.c:415:5: enter_function: entry to ‘check_char_loc’
git-2.52.0/t/unit-tests/test-lib.c:417:19: call_function: calling ‘test_assert’ from ‘check_char_loc’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def500]
git-2.52.0/t/unit-tests/u-oidtree.c:66:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/u-oidtree.c:64:9: acquire_resource: ‘va_start’ called here
git-2.52.0/t/unit-tests/u-oidtree.c:65:16: branch_true: following ‘true’ branch (when ‘arg’ is non-NULL)...
git-2.52.0/t/unit-tests/u-oidtree.c:66:17: branch_true: ...to here
git-2.52.0/t/unit-tests/u-oidtree.c:66:17: throw: if ‘strvec_push’ throws an exception...
git-2.52.0/t/unit-tests/u-oidtree.c:66:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
git-2.52.0/t/unit-tests/u-reftable-basics.c:200:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
git-2.52.0/t/unit-tests/u-reftable-basics.c:192:6: enter_function: entry to ‘test_reftable_basics__alloc_grow’
git-2.52.0/t/unit-tests/u-reftable-basics.c:197:9: call_function: calling ‘reftable_alloc_grow’ from ‘test_reftable_basics__alloc_grow’
git-2.52.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.52.0/t/unit-tests/u-reftable-basics.c:197:9: branch_true: following ‘true’ branch...
git-2.52.0/t/unit-tests/u-reftable-basics.c:197:9: branch_true: ...to here
git-2.52.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): [#def502]
git-2.52.0/t/unit-tests/u-reftable-basics.c:227:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘arr’
git-2.52.0/t/unit-tests/u-reftable-basics.c:219:6: enter_function: entry to ‘test_reftable_basics__alloc_grow_or_null’
git-2.52.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.52.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.52.0/t/unit-tests/u-reftable-basics.c:224:9: branch_true: following ‘true’ branch...
git-2.52.0/t/unit-tests/u-reftable-basics.c:224:9: branch_true: ...to here
git-2.52.0/t/unit-tests/u-reftable-basics.c:227:9: danger: dereference of NULL ‘arr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
git-2.52.0/t/unit-tests/u-reftable-stack.c:38:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirname)’
git-2.52.0/t/unit-tests/u-reftable-stack.c:32:20: acquire_memory: allocated here
git-2.52.0/t/unit-tests/u-reftable-stack.c:35:12: branch_false: following ‘false’ branch...
git-2.52.0/t/unit-tests/u-reftable-stack.c:35:12: branch_false: ...to here
git-2.52.0/t/unit-tests/u-reftable-stack.c:38:21: throw: if ‘readdir’ throws an exception...
git-2.52.0/t/unit-tests/u-reftable-stack.c:38:21: danger: ‘opendir(dirname)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def504]
git-2.52.0/t/unit-tests/u-string-list.c:9:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/u-string-list.c:246:13: enter_function: entry to ‘t_string_list_remove_duplicates’
git-2.52.0/t/unit-tests/u-string-list.c:251:9: acquire_resource: ‘va_start’ called here
git-2.52.0/t/unit-tests/u-string-list.c:252:9: call_function: calling ‘t_vcreate_string_list_dup’ from ‘t_string_list_remove_duplicates’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def505]
git-2.52.0/t/unit-tests/u-string-list.c:11:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/u-string-list.c:246:13: enter_function: entry to ‘t_string_list_remove_duplicates’
git-2.52.0/t/unit-tests/u-string-list.c:251:9: acquire_resource: ‘va_start’ called here
git-2.52.0/t/unit-tests/u-string-list.c:252:9: call_function: calling ‘t_vcreate_string_list_dup’ from ‘t_string_list_remove_duplicates’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def506]
git-2.52.0/t/unit-tests/u-string-list.c:13:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/t/unit-tests/u-string-list.c:246:13: enter_function: entry to ‘t_string_list_remove_duplicates’
git-2.52.0/t/unit-tests/u-string-list.c:251:9: acquire_resource: ‘va_start’ called here
git-2.52.0/t/unit-tests/u-string-list.c:252:9: call_function: calling ‘t_vcreate_string_list_dup’ from ‘t_string_list_remove_duplicates’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
git-2.52.0/tempfile.c:273:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(*tempfile.fd, mode)’
git-2.52.0/tempfile.c:268:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.52.0/tempfile.c:270:13: branch_false: ...to here
git-2.52.0/tempfile.c:270:12: branch_false: following ‘false’ branch...
git-2.52.0/tempfile.c:273:31: branch_false: ...to here
git-2.52.0/tempfile.c:273:24: acquire_memory: allocated here
git-2.52.0/tempfile.c:273:9: danger: ‘fdopen(*tempfile.fd, mode)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def508]
git-2.52.0/tempfile.c:332:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*tempfile.filename.buf, 513)’
git-2.52.0/tempfile.c:328:12: branch_false: following ‘false’ branch (when ‘tempfile’ is non-NULL)...
git-2.52.0/tempfile.c:330:18: branch_false: ...to here
git-2.52.0/tempfile.c:330:12: branch_false: following ‘false’ branch...
git-2.52.0/tempfile.c:332:29: branch_false: ...to here
git-2.52.0/tempfile.c:332:24: acquire_resource: opened here
git-2.52.0/tempfile.c:332:9: danger: ‘open(*tempfile.filename.buf, 513)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
git-2.52.0/tmp-objdir.c:202:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
git-2.52.0/tmp-objdir.c:198:14: acquire_memory: allocated here
git-2.52.0/tmp-objdir.c:199:12: branch_false: following ‘false’ branch...
git-2.52.0/tmp-objdir.c:199:12: branch_false: ...to here
git-2.52.0/tmp-objdir.c:202:22: throw: if ‘readdir’ throws an exception...
git-2.52.0/tmp-objdir.c:202:22: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def510]
git-2.52.0/trace.c:56:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace.c:414:13: enter_function: entry to ‘print_command_performance_atexit’
git-2.52.0/trace.c:416:9: call_function: calling ‘trace_performance_leave_fl’ from ‘print_command_performance_atexit’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def511]
git-2.52.0/trace.c:58:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace.c:414:13: enter_function: entry to ‘print_command_performance_atexit’
git-2.52.0/trace.c:416:9: call_function: calling ‘trace_performance_leave_fl’ from ‘print_command_performance_atexit’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def512]
git-2.52.0/trace.c:66:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace.c:414:13: enter_function: entry to ‘print_command_performance_atexit’
git-2.52.0/trace.c:416:9: call_function: calling ‘trace_performance_leave_fl’ from ‘print_command_performance_atexit’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def513]
git-2.52.0/trace.c:92:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace.c:414:13: enter_function: entry to ‘print_command_performance_atexit’
git-2.52.0/trace.c:416:9: call_function: calling ‘trace_performance_leave_fl’ from ‘print_command_performance_atexit’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def514]
git-2.52.0/trace2.c:808:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:838:6: enter_function: entry to ‘trace2_region_enter_printf_fl’
git-2.52.0/trace2.c:845:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:846:9: call_function: inlined call to ‘trace2_region_enter_printf_va_fl’ from ‘trace2_region_enter_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def515]
git-2.52.0/trace2.c:809:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:838:6: enter_function: entry to ‘trace2_region_enter_printf_fl’
git-2.52.0/trace2.c:845:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:846:9: call_function: inlined call to ‘trace2_region_enter_printf_va_fl’ from ‘trace2_region_enter_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def516]
git-2.52.0/trace2.c:818:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:838:6: enter_function: entry to ‘trace2_region_enter_printf_fl’
git-2.52.0/trace2.c:845:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:846:9: call_function: inlined call to ‘trace2_region_enter_printf_va_fl’ from ‘trace2_region_enter_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def517]
git-2.52.0/trace2.c:820:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:838:6: enter_function: entry to ‘trace2_region_enter_printf_fl’
git-2.52.0/trace2.c:845:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:846:9: call_function: inlined call to ‘trace2_region_enter_printf_va_fl’ from ‘trace2_region_enter_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def518]
git-2.52.0/trace2.c:865:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:900:6: enter_function: entry to ‘trace2_region_leave_printf_fl’
git-2.52.0/trace2.c:907:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:908:9: call_function: inlined call to ‘trace2_region_leave_printf_va_fl’ from ‘trace2_region_leave_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def519]
git-2.52.0/trace2.c:866:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:900:6: enter_function: entry to ‘trace2_region_leave_printf_fl’
git-2.52.0/trace2.c:907:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:908:9: call_function: inlined call to ‘trace2_region_leave_printf_va_fl’ from ‘trace2_region_leave_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def520]
git-2.52.0/trace2.c:874:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:900:6: enter_function: entry to ‘trace2_region_leave_printf_fl’
git-2.52.0/trace2.c:907:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:908:9: call_function: inlined call to ‘trace2_region_leave_printf_va_fl’ from ‘trace2_region_leave_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def521]
git-2.52.0/trace2.c:876:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:900:6: enter_function: entry to ‘trace2_region_leave_printf_fl’
git-2.52.0/trace2.c:907:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:908:9: call_function: inlined call to ‘trace2_region_leave_printf_va_fl’ from ‘trace2_region_leave_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def522]
git-2.52.0/trace2.c:882:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:900:6: enter_function: entry to ‘trace2_region_leave_printf_fl’
git-2.52.0/trace2.c:907:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:908:9: call_function: inlined call to ‘trace2_region_leave_printf_va_fl’ from ‘trace2_region_leave_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def523]
git-2.52.0/trace2.c:884:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:900:6: enter_function: entry to ‘trace2_region_leave_printf_fl’
git-2.52.0/trace2.c:907:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:908:9: call_function: inlined call to ‘trace2_region_leave_printf_va_fl’ from ‘trace2_region_leave_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def524]
git-2.52.0/trace2.c:986:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:999:6: enter_function: entry to ‘trace2_printf_fl’
git-2.52.0/trace2.c:1003:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:1004:9: call_function: inlined call to ‘trace2_printf_va_fl’ from ‘trace2_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def525]
git-2.52.0/trace2.c:987:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:999:6: enter_function: entry to ‘trace2_printf_fl’
git-2.52.0/trace2.c:1003:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:1004:9: call_function: inlined call to ‘trace2_printf_va_fl’ from ‘trace2_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def526]
git-2.52.0/trace2.c:993:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:999:6: enter_function: entry to ‘trace2_printf_fl’
git-2.52.0/trace2.c:1003:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:1004:9: call_function: inlined call to ‘trace2_printf_va_fl’ from ‘trace2_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def527]
git-2.52.0/trace2.c:995:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2.c:999:6: enter_function: entry to ‘trace2_printf_fl’
git-2.52.0/trace2.c:1003:9: acquire_resource: ‘va_start’ called here
git-2.52.0/trace2.c:1004:9: call_function: inlined call to ‘trace2_printf_va_fl’ from ‘trace2_printf_fl’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
git-2.52.0/trace2/tr2_dst.c:99:16: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path.buf)’
git-2.52.0/trace2/tr2_dst.c:312:5: enter_function: entry to ‘tr2_dst_get_trace_fd’
git-2.52.0/trace2/tr2_dst.c:324:12: branch_false: following ‘false’ branch...
git-2.52.0/trace2/tr2_dst.c:330:12: branch_false: following ‘false’ branch...
git-2.52.0/trace2/tr2_dst.c:340:13: call_function: inlined call to ‘is_absolute_path’ from ‘tr2_dst_get_trace_fd’
git-2.52.0/trace2/tr2_dst.c:341:21: branch_true: ...to here
git-2.52.0/trace2/tr2_dst.c:341:20: branch_true: following ‘true’ branch...
git-2.52.0/trace2/tr2_dst.c:342:32: branch_true: ...to here
git-2.52.0/trace2/tr2_dst.c:342:32: call_function: calling ‘tr2_dst_try_auto_path’ from ‘tr2_dst_get_trace_fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def529]
git-2.52.0/trace2/tr2_dst.c:213:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/trace2/tr2_dst.c:312:5: enter_function: entry to ‘tr2_dst_get_trace_fd’
git-2.52.0/trace2/tr2_dst.c:324:12: branch_false: following ‘false’ branch...
git-2.52.0/trace2/tr2_dst.c:330:12: branch_false: following ‘false’ branch...
git-2.52.0/trace2/tr2_dst.c:340:13: call_function: inlined call to ‘is_absolute_path’ from ‘tr2_dst_get_trace_fd’
git-2.52.0/trace2/tr2_dst.c:348:13: branch_false: ...to here
git-2.52.0/trace2/tr2_dst.c:348:12: branch_true: following ‘true’ branch...
git-2.52.0/trace2/tr2_dst.c:349:24: branch_true: ...to here
git-2.52.0/trace2/tr2_dst.c:349:24: call_function: calling ‘tr2_dst_try_unix_domain_socket’ from ‘tr2_dst_get_trace_fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def530]
git-2.52.0/trace2/tr2_dst.c:215:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/trace2/tr2_dst.c:312:5: enter_function: entry to ‘tr2_dst_get_trace_fd’
git-2.52.0/trace2/tr2_dst.c:324:12: branch_false: following ‘false’ branch...
git-2.52.0/trace2/tr2_dst.c:330:12: branch_false: following ‘false’ branch...
git-2.52.0/trace2/tr2_dst.c:340:13: call_function: inlined call to ‘is_absolute_path’ from ‘tr2_dst_get_trace_fd’
git-2.52.0/trace2/tr2_dst.c:348:13: branch_false: ...to here
git-2.52.0/trace2/tr2_dst.c:348:12: branch_true: following ‘true’ branch...
git-2.52.0/trace2/tr2_dst.c:349:24: branch_true: ...to here
git-2.52.0/trace2/tr2_dst.c:349:24: call_function: calling ‘tr2_dst_try_unix_domain_socket’ from ‘tr2_dst_get_trace_fd’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def531]
git-2.52.0/trace2/tr2_tgt_event.c:224:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2/tr2_tgt_event.c:219:12: branch_true: following ‘true’ branch...
git-2.52.0/trace2/tr2_tgt_event.c:223:17: acquire_resource: ‘va_copy’ called here
git-2.52.0/trace2/tr2_tgt_event.c:224:17: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/trace2/tr2_tgt_event.c:224:17: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def532]
git-2.52.0/trace2/tr2_tgt_normal.c:139:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2/tr2_tgt_normal.c:328:13: enter_function: entry to ‘fn_printf_va_fl’
git-2.52.0/trace2/tr2_tgt_normal.c:335:9: call_function: calling ‘maybe_append_string_va’ from ‘fn_printf_va_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def533]
git-2.52.0/trace2/tr2_tgt_perf.c:231:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/trace2/tr2_tgt_perf.c:549:13: enter_function: entry to ‘fn_printf_va_fl’
git-2.52.0/trace2/tr2_tgt_perf.c:556:9: call_function: calling ‘maybe_append_string_va’ from ‘fn_printf_va_fl’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def534]
git-2.52.0/transport-helper.c:176:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘duped’
git-2.52.0/transport-helper.c:1299:12: enter_function: entry to ‘get_bundle_uri’
git-2.52.0/transport-helper.c:1301:9: call_function: calling ‘get_helper’ from ‘get_bundle_uri’
Error: COMPILER_WARNING (CWE-704): [#def535]
git-2.52.0/transport-helper.c: scope_hint: In function ‘push_update_ref_status’
git-2.52.0/transport-helper.c:803:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def536]
git-2.52.0/transport-helper.c:803:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def537]
git-2.52.0/transport.c: scope_hint: In function ‘transport_anonymize_url’
git-2.52.0/transport.c:1663:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def538]
git-2.52.0/transport.c:1663:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def539]
git-2.52.0/transport.c:1668:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def540]
git-2.52.0/transport.c:1668:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def541]
git-2.52.0/unix-socket.c:31:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/unix-socket.c:106:5: enter_function: entry to ‘unix_stream_listen’
git-2.52.0/unix-socket.c:116:13: call_function: calling ‘unix_sockaddr_init’ from ‘unix_stream_listen’
git-2.52.0/unix-socket.c:116:13: return_function: returning to ‘unix_stream_listen’ from ‘unix_sockaddr_init’
git-2.52.0/unix-socket.c:116:12: branch_false: following ‘false’ branch...
git-2.52.0/unix-socket.c:118:14: branch_false: ...to here
git-2.52.0/unix-socket.c:118:14: acquire_resource: stream socket created here
git-2.52.0/unix-socket.c:119:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
git-2.52.0/unix-socket.c:122:13: branch_false: ...to here
git-2.52.0/unix-socket.c:122:12: branch_false: following ‘false’ branch...
git-2.52.0/unix-socket.c:125:9: branch_false: ...to here
git-2.52.0/unix-socket.c:128:12: branch_false: following ‘false’ branch...
git-2.52.0/unix-socket.c:131:9: branch_false: ...to here
git-2.52.0/unix-socket.c:131:9: call_function: calling ‘unix_sockaddr_cleanup’ from ‘unix_stream_listen’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def542]
git-2.52.0/unix-socket.c:92:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/unix-socket.c:86:12: branch_false: following ‘false’ branch...
git-2.52.0/unix-socket.c:88:14: branch_false: ...to here
git-2.52.0/unix-socket.c:88:14: acquire_resource: stream socket created here
git-2.52.0/unix-socket.c:89:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
git-2.52.0/unix-socket.c:92:13: branch_false: ...to here
git-2.52.0/unix-socket.c:92:13: throw: if ‘connect’ throws an exception...
git-2.52.0/unix-socket.c:92:13: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def543]
git-2.52.0/unix-socket.c:137:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
git-2.52.0/unix-socket.c:116:12: branch_false: following ‘false’ branch...
git-2.52.0/unix-socket.c:118:14: branch_false: ...to here
git-2.52.0/unix-socket.c:118:14: acquire_resource: stream socket created here
git-2.52.0/unix-socket.c:119:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
git-2.52.0/unix-socket.c:122:13: branch_false: ...to here
git-2.52.0/unix-socket.c:122:12: branch_false: following ‘false’ branch...
git-2.52.0/unix-socket.c:125:9: branch_false: ...to here
git-2.52.0/unix-socket.c:128:12: branch_true: following ‘true’ branch...
git-2.52.0/unix-socket.c:129:17: branch_true: ...to here
git-2.52.0/unix-socket.c:136:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
git-2.52.0/unix-socket.c:137:17: branch_true: ...to here
git-2.52.0/unix-socket.c:137:17: throw: if ‘close’ throws an exception...
git-2.52.0/unix-socket.c:137:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def544]
git-2.52.0/unpack-trees.c:2209:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘a’
git-2.52.0/unpack-trees.c:2910:5: enter_function: entry to ‘twoway_merge’
git-2.52.0/unpack-trees.c:2917:12: branch_false: following ‘false’ branch...
git-2.52.0/unpack-trees.c:2921:24: branch_false: ...to here
git-2.52.0/unpack-trees.c:2921:12: branch_true: following ‘true’ branch...
git-2.52.0/unpack-trees.c:2921:12: branch_true: ...to here
git-2.52.0/unpack-trees.c:2923:12: branch_false: following ‘false’ branch...
git-2.52.0/unpack-trees.c:2926:12: branch_false: ...to here
git-2.52.0/unpack-trees.c:2926:12: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
git-2.52.0/unpack-trees.c:2927:21: branch_true: ...to here
git-2.52.0/unpack-trees.c:2927:20: branch_true: following ‘true’ branch...
git-2.52.0/unpack-trees.c:2928:29: branch_true: ...to here
git-2.52.0/unpack-trees.c:2928:29: call_function: calling ‘same’ from ‘twoway_merge’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def545]
git-2.52.0/unpack-trees.c:2332:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ce’
git-2.52.0/unpack-trees.c:2475:12: enter_function: entry to ‘verify_absent_1’
git-2.52.0/unpack-trees.c:2486:12: branch_false: following ‘false’ branch...
git-2.52.0/unpack-trees.c:2496:44: branch_false: ...to here
git-2.52.0/unpack-trees.c:2497:12: branch_false: following ‘false’ branch...
git-2.52.0/unpack-trees.c:2499:17: branch_false: ...to here
git-2.52.0/unpack-trees.c:2499:17: branch_true: following ‘true’ branch...
git-2.52.0/unpack-trees.c:2503:24: branch_true: ...to here
git-2.52.0/unpack-trees.c:2504:20: branch_false: following ‘false’ branch...
git-2.52.0/unpack-trees.c:2507:29: branch_false: ...to here
git-2.52.0/unpack-trees.c:2507:28: branch_false: following ‘false’ branch...
git-2.52.0/unpack-trees.c:2512:39: branch_false: ...to here
git-2.52.0/unpack-trees.c:2512:39: call_function: calling ‘check_ok_to_remove’ from ‘verify_absent_1’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def546]
git-2.52.0/upload-pack.c:1054:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/upload-pack.c:1053:9: acquire_resource: ‘va_start’ called here
git-2.52.0/upload-pack.c:1054:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/upload-pack.c:1054:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def547]
git-2.52.0/usage.c:36:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:353:15: enter_function: entry to ‘BUG_fl’
git-2.52.0/usage.c:360:9: call_function: calling ‘BUG_vfl’ from ‘BUG_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def548]
git-2.52.0/usage.c:37:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:353:15: enter_function: entry to ‘BUG_fl’
git-2.52.0/usage.c:360:9: call_function: calling ‘BUG_vfl’ from ‘BUG_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def549]
git-2.52.0/usage.c:211:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:205:12: branch_false: following ‘false’ branch...
git-2.52.0/usage.c:210:9: branch_false: ...to here
git-2.52.0/usage.c:210:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:211:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:211:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def550]
git-2.52.0/usage.c:251:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:244:12: branch_false: following ‘false’ branch...
git-2.52.0/usage.c:250:9: branch_false: ...to here
git-2.52.0/usage.c:250:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:251:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:251:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def551]
git-2.52.0/usage.c:261:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:260:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:261:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:261:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def552]
git-2.52.0/usage.c:273:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:272:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:273:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:273:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def553]
git-2.52.0/usage.c:285:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:284:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:285:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:285:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def554]
git-2.52.0/usage.c:296:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:295:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:296:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:296:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def555]
git-2.52.0/usage.c:307:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:306:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:307:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:307:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def556]
git-2.52.0/usage.c:316:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:315:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:316:9: throw: if the called function throws an exception...
git-2.52.0/usage.c:316:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def557]
git-2.52.0/usage.c:346:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:353:15: enter_function: entry to ‘BUG_fl’
git-2.52.0/usage.c:360:9: call_function: calling ‘BUG_vfl’ from ‘BUG_fl’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def558]
git-2.52.0/usage.c:376:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/usage.c:365:6: enter_function: entry to ‘bug_fl’
git-2.52.0/usage.c:372:9: call_function: calling ‘BUG_vfl_common’ from ‘bug_fl’
git-2.52.0/usage.c:372:9: return_function: returning to ‘bug_fl’ from ‘BUG_vfl_common’
git-2.52.0/usage.c:375:9: acquire_resource: ‘va_start’ called here
git-2.52.0/usage.c:376:9: throw: if ‘trace2_cmd_error_va_fl’ throws an exception...
git-2.52.0/usage.c:376:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(12)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def559]
git-2.52.0/utf8.c:137:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
git-2.52.0/utf8.c:791:5: enter_function: entry to ‘is_hfs_dotmailmap’
git-2.52.0/utf8.c:793:16: call_function: calling ‘is_hfs_dot_str’ from ‘is_hfs_dotmailmap’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def560]
git-2.52.0/worktree.c:336:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/worktree.c:332:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
git-2.52.0/worktree.c:335:9: branch_false: ...to here
git-2.52.0/worktree.c:335:9: acquire_resource: ‘va_start’ called here
git-2.52.0/worktree.c:336:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/worktree.c:336:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
git-2.52.0/worktree.c:551:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(sb.buf)’
git-2.52.0/worktree.c:516:5: enter_function: entry to ‘submodule_uses_worktrees’
git-2.52.0/worktree.c:527:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:531:9: branch_false: ...to here
git-2.52.0/worktree.c:536:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:542:9: branch_false: ...to here
git-2.52.0/worktree.c:546:9: call_function: calling ‘strbuf_setlen’ from ‘submodule_uses_worktrees’
git-2.52.0/worktree.c:546:9: return_function: returning to ‘submodule_uses_worktrees’ from ‘strbuf_setlen’
git-2.52.0/worktree.c:550:15: acquire_memory: allocated here
git-2.52.0/worktree.c:551:9: throw: if ‘strbuf_release’ throws an exception...
git-2.52.0/worktree.c:551:9: danger: ‘opendir(sb.buf)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
git-2.52.0/worktree.c:556:13: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(sb.buf)’
git-2.52.0/worktree.c:516:5: enter_function: entry to ‘submodule_uses_worktrees’
git-2.52.0/worktree.c:527:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:531:9: branch_false: ...to here
git-2.52.0/worktree.c:536:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:542:9: branch_false: ...to here
git-2.52.0/worktree.c:546:9: call_function: calling ‘strbuf_setlen’ from ‘submodule_uses_worktrees’
git-2.52.0/worktree.c:546:9: return_function: returning to ‘submodule_uses_worktrees’ from ‘strbuf_setlen’
git-2.52.0/worktree.c:550:15: acquire_memory: allocated here
git-2.52.0/worktree.c:553:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:556:13: branch_false: ...to here
git-2.52.0/worktree.c:556:13: throw: if ‘readdir_skip_dot_and_dotdot’ throws an exception...
git-2.52.0/worktree.c:556:13: danger: ‘opendir(sb.buf)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def563]
git-2.52.0/worktree.c:941:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(gitdir.buf, 0)’
git-2.52.0/worktree.c:920:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:925:9: branch_false: ...to here
git-2.52.0/worktree.c:926:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:929:18: branch_false: ...to here
git-2.52.0/worktree.c:929:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:934:19: branch_false: ...to here
git-2.52.0/worktree.c:934:14: acquire_resource: opened here
git-2.52.0/worktree.c:935:12: branch_false: following ‘false’ branch...
git-2.52.0/worktree.c:941:23: branch_false: ...to here
git-2.52.0/worktree.c:941:23: danger: ‘open(gitdir.buf, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-704): [#def564]
git-2.52.0/wrapper.c: scope_hint: In function ‘xstrndup’
git-2.52.0/wrapper.c:118:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def565]
git-2.52.0/wrapper.c:118:19: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-404): [#def566]
git-2.52.0/wrapper.c:697:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/wrapper.c:696:9: acquire_resource: ‘va_start’ called here
git-2.52.0/wrapper.c:697:9: throw: if ‘strbuf_vaddf’ throws an exception...
git-2.52.0/wrapper.c:697:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def567]
git-2.52.0/wt-status.c:74:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
git-2.52.0/wt-status.c:1462:13: enter_function: entry to ‘print_rebase_state’
git-2.52.0/wt-status.c:1471:17: call_function: calling ‘_’ from ‘print_rebase_state’
git-2.52.0/wt-status.c:1471:17: return_function: returning to ‘print_rebase_state’ from ‘_’
git-2.52.0/wt-status.c:1471:17: call_function: calling ‘status_printf_ln’ from ‘print_rebase_state’
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| 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-153.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | git-2.52.0-1.fc44 |
| store-results-to | /tmp/tmpsvbi0g_j/git-2.52.0-1.fc44.tar.xz |
| time-created | 2026-01-08 16:25:04 |
| time-finished | 2026-01-08 16:30:59 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpsvbi0g_j/git-2.52.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsvbi0g_j/git-2.52.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |