sudo-1.9.17-6.p2.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
sudo-1.9.17p2/lib/eventlog/parse_json.c:195:5: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
sudo-1.9.17p2/lib/eventlog/parse_json.c:184:16: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:184:8: branch_false: following 'false' branch (when 'ret' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:189:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:195:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:195:5: danger: 'ret' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
sudo-1.9.17p2/lib/eventlog/parse_json.c:508:5: warning[-Wanalyzer-malloc-leak]: leak of 'item'
sudo-1.9.17p2/lib/eventlog/parse_json.c:499:17: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:499:8: branch_false: following 'false' branch (when 'item' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:504:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:508:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:508:5: danger: 'item' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
sudo-1.9.17p2/lib/eventlog/parse_json.c:556:26: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/lib/eventlog/parse_json.c:522:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:526:19: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:529:17: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:530:8: branch_false: following 'false' branch (when 'ret' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:530:8: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:534:12: branch_true: following 'true' branch (when 'end > src')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:535:19: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:536:12: branch_true: following 'true' branch (when 'ch == 92')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:537:21: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:555:20: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:556:26: throw: if 'sudo_hexchar_v1' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:556:26: danger: 'dst' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
sudo-1.9.17p2/lib/eventlog/parse_json.c:556:26: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
sudo-1.9.17p2/lib/eventlog/parse_json.c:522:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:526:19: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:529:17: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:530:8: branch_false: following 'false' branch (when 'ret' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:530:8: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:534:12: branch_true: following 'true' branch (when 'end > src')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:535:19: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:536:12: branch_true: following 'true' branch (when 'ch == 92')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:537:21: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:534:12: branch_true: following 'true' branch (when 'end > src')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:535:19: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:536:12: branch_true: following 'true' branch (when 'ch == 92')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:537:21: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:555:20: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:556:26: throw: if 'sudo_hexchar_v1' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:556:26: danger: 'ret' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
sudo-1.9.17p2/lib/eventlog/parse_json.c:583:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/lib/eventlog/parse_json.c:522:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:526:19: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:529:17: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:530:8: branch_false: following 'false' branch (when 'ret' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:530:8: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:534:12: branch_false: following 'false' branch (when 'end <= src')...
sudo-1.9.17p2/lib/eventlog/parse_json.c:575:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:583:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:583:5: danger: 'dst' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
sudo-1.9.17p2/lib/eventlog/parse_json.c:583:5: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
sudo-1.9.17p2/lib/eventlog/parse_json.c:801:1: enter_function: entry to 'eventlog_json_read'
sudo-1.9.17p2/lib/eventlog/parse_json.c:816:8: branch_false: following 'false' branch (when 'root' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:819:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:823:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:824:20: branch_true: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:850:16: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:853:13: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:916:20: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:923:20: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:923:20: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:925:33: call_function: calling 'json_parse_string' from 'eventlog_json_read'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
sudo-1.9.17p2/lib/eventlog/parse_json.c:823:23: warning[-Wanalyzer-malloc-leak]: leak of 'frame'
sudo-1.9.17p2/lib/eventlog/parse_json.c:815:12: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:816:8: branch_false: following 'false' branch (when 'root' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:819:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:823:23: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:823:23: danger: 'frame' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
sudo-1.9.17p2/lib/eventlog/parse_json.c:1070:5: warning[-Wanalyzer-malloc-leak]: leak of 'frame'
sudo-1.9.17p2/lib/eventlog/parse_json.c:815:12: acquire_memory: allocated here
sudo-1.9.17p2/lib/eventlog/parse_json.c:816:8: branch_false: following 'false' branch (when 'root' is non-NULL)...
sudo-1.9.17p2/lib/eventlog/parse_json.c:819:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:823:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:1047:9: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:1047:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/eventlog/parse_json.c:1059:5: branch_false: ...to here
sudo-1.9.17p2/lib/eventlog/parse_json.c:1070:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/eventlog/parse_json.c:1070:5: danger: 'frame' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
sudo-1.9.17p2/lib/iolog/iolog_filter.c:73:5: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/lib/iolog/iolog_filter.c:67:14: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:68:8: branch_true: following 'true' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:69:9: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:73:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:73:5: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/lib/iolog/iolog_filter.c:126:8: branch_false: following 'false' branch (when 'filt' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:128:21: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:128:21: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:129:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: throw: if 'sudo_regex_compile_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: warning[-Wanalyzer-malloc-leak]: leak of 'filt'
sudo-1.9.17p2/lib/iolog/iolog_filter.c:125:12: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:126:8: branch_false: following 'false' branch (when 'filt' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:128:21: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:129:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: throw: if 'sudo_regex_compile_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:132:10: danger: 'filt' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
sudo-1.9.17p2/lib/iolog/iolog_filter.c:142:5: warning[-Wanalyzer-malloc-leak]: leak of 'filt'
sudo-1.9.17p2/lib/iolog/iolog_filter.c:125:12: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:126:8: branch_false: following 'false' branch (when 'filt' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:128:21: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:129:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:130:9: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_filter.c:142:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_filter.c:142:5: danger: 'filt' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:76:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:8: branch_false: following 'false' branch (when 'fd != -1')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:18: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:8: branch_true: following 'true' branch (when 'evlog' is NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:76:9: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:76:9: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:76:9: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: warning[-Wanalyzer-malloc-leak]: leak of 'evlog'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:18: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:79:5: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: branch_true: following 'true' branch (when 'legacy != 0')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: throw: if 'iolog_parse_loginfo_legacy' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: danger: 'evlog' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:8: branch_false: following 'false' branch (when 'fd != -1')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:18: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:79:5: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: branch_true: following 'true' branch (when 'legacy != 0')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: throw: if 'iolog_parse_loginfo_legacy' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:83:19: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of 'evlog'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:18: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:79:5: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: branch_false: following 'false' branch (when 'legacy == 0')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: throw: if 'iolog_parse_loginfo_json' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: danger: 'evlog' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:8: branch_false: following 'false' branch (when 'fd != -1')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:69:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:18: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:75:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:79:5: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: branch_false: following 'false' branch (when 'legacy == 0')...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: throw: if 'iolog_parse_loginfo_json' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:84:9: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:20: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:20: throw: if 'iolog_get_uid' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:20: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:37: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:37: throw: if 'iolog_get_gid' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:37: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:112:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:119:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:120:9: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:120:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:120:9: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:20: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:163:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:170:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:172:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:175:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:177:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:186:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:20: throw: if 'iolog_get_uid' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:20: danger: 'fp' leaks here; was allocated at [(15)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:163:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:170:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:172:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:175:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:177:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:186:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: throw: if 'iolog_get_gid' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: danger: 'fp' leaks here; was allocated at [(15)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:194:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:163:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:170:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:172:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:175:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:177:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:186:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:194:9: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:194:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:194:9: danger: 'fp' leaks here; was allocated at [(15)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:200:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:163:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:167:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:170:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:172:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:175:5: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:177:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:180:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:183:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:186:10: branch_true: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:27: acquire_memory: allocated here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:187:9: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:193:37: branch_false: ...to here
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:200:5: throw: if 'sudo_json_get_buf_v1' throws an exception...
sudo-1.9.17p2/lib/iolog/iolog_loginfo.c:200:5: danger: 'fp' leaks here; was allocated at [(15)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/14)
Error: COMPILER_WARNING (CWE-704): [#def25]
sudo-1.9.17p2/lib/util/basename.c: scope_hint: In function 'sudo_basename_v1'
sudo-1.9.17p2/lib/util/basename.c:46:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def26]
sudo-1.9.17p2/lib/util/basename.c:46:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
sudo-1.9.17p2/lib/util/closefrom.c:167:24: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc/self/fd")'
sudo-1.9.17p2/lib/util/closefrom.c:114:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/closefrom.c:165:17: branch_false: ...to here
sudo-1.9.17p2/lib/util/closefrom.c:165:17: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/closefrom.c:165:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/closefrom.c:165:8: branch_true: ...to here
sudo-1.9.17p2/lib/util/closefrom.c:167:24: throw: if 'readdir' throws an exception...
sudo-1.9.17p2/lib/util/closefrom.c:167:24: danger: 'opendir("/proc/self/fd")' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
sudo-1.9.17p2/lib/util/digest_openssl.c:90:5: warning[-Wanalyzer-malloc-leak]: leak of 'dig'
sudo-1.9.17p2/lib/util/digest_openssl.c:78:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/digest_openssl.c:81:13: branch_false: ...to here
sudo-1.9.17p2/lib/util/digest_openssl.c:82:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/digest_openssl.c:85:16: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/digest_openssl.c:85:8: branch_false: following 'false' branch (when 'dig' is non-NULL)...
sudo-1.9.17p2/lib/util/digest_openssl.c:87:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/digest_openssl.c:90:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/util/digest_openssl.c:90:5: danger: 'dig' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def29]
sudo-1.9.17p2/lib/util/fatal.c:190:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/fatal.c:126:1: enter_function: entry to 'sudo_warnx_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:129:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:130:5: call_function: calling 'warning' from 'sudo_warnx_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def30]
sudo-1.9.17p2/lib/util/fatal.c:199:29: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/fatal.c:126:1: enter_function: entry to 'sudo_warnx_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:129:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:130:5: call_function: calling 'warning' from 'sudo_warnx_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def31]
sudo-1.9.17p2/lib/util/fatal.c:233:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/fatal.c:126:1: enter_function: entry to 'sudo_warnx_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:129:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:130:5: call_function: calling 'warning' from 'sudo_warnx_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
sudo-1.9.17p2/lib/util/getentropy.c:456:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:456:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
sudo-1.9.17p2/lib/util/getentropy.c:462:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:462:25: throw: if 'dl_iterate_phdr' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
sudo-1.9.17p2/lib/util/getentropy.c:467:33: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:467:33: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
sudo-1.9.17p2/lib/util/getentropy.c:470:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:470:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:470:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:470:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:470:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
sudo-1.9.17p2/lib/util/getentropy.c:471:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:471:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:471:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:471:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:471:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
sudo-1.9.17p2/lib/util/getentropy.c:472:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:472:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:472:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:472:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:472:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
sudo-1.9.17p2/lib/util/getentropy.c:473:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:473:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:473:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:473:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:473:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
sudo-1.9.17p2/lib/util/getentropy.c:474:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:473:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:473:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:474:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:474:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:474:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:474:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
sudo-1.9.17p2/lib/util/getentropy.c:479:40: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:473:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:473:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:474:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:474:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:476:28: branch_true: following 'true' branch (when 'faster == 0')...
sudo-1.9.17p2/lib/util/getentropy.c:477:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:479:40: throw: if 'nanosleep' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:479:40: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
sudo-1.9.17p2/lib/util/getentropy.c:482:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:482:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:482:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:482:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:482:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
sudo-1.9.17p2/lib/util/getentropy.c:483:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:483:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:483:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:483:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:483:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
sudo-1.9.17p2/lib/util/getentropy.c:485:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:483:25: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:483:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:485:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:485:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
sudo-1.9.17p2/lib/util/getentropy.c:486:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:486:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:486:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
sudo-1.9.17p2/lib/util/getentropy.c:488:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:488:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:488:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
sudo-1.9.17p2/lib/util/getentropy.c:490:25: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:490:25: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:490:25: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
sudo-1.9.17p2/lib/util/getentropy.c:516:41: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:492:28: branch_true: following 'true' branch (when 'i == 0')...
sudo-1.9.17p2/lib/util/getentropy.c:506:35: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:515:45: branch_true: following 'true' branch (when 'm != 12')...
sudo-1.9.17p2/lib/util/getentropy.c:516:41: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:516:41: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:516:41: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:516:41: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:516:41: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
sudo-1.9.17p2/lib/util/getentropy.c:536:49: warning[-Wanalyzer-malloc-leak]: leak of 'results'
sudo-1.9.17p2/lib/util/getentropy.c:432:12: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/lib/util/getentropy.c:434:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:435:12: branch_false: following 'false' branch (when 'pgs != 18446744073709551615')...
sudo-1.9.17p2/lib/util/getentropy.c:437:20: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:437:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:439:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:440:43: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:440:43: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getentropy.c:440:13: branch_false: following 'false' branch (when 'results' is non-NULL)...
sudo-1.9.17p2/lib/util/getentropy.c:443:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:455:29: branch_true: following 'true' branch (when 'repeat > j')...
sudo-1.9.17p2/lib/util/getentropy.c:456:25: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:457:28: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/getentropy.c:462:25: branch_false: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:466:38: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:467:33: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:492:28: branch_true: following 'true' branch (when 'i == 0')...
sudo-1.9.17p2/lib/util/getentropy.c:506:35: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:515:45: branch_true: following 'true' branch (when 'm != 12')...
sudo-1.9.17p2/lib/util/getentropy.c:516:41: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:534:54: branch_true: following 'true' branch (when 'ii != 6')...
sudo-1.9.17p2/lib/util/getentropy.c:536:49: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:536:49: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:536:49: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:536:49: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/lib/util/getentropy.c:536:49: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
sudo-1.9.17p2/lib/util/getgrouplist.c:105:13: warning[-Wanalyzer-malloc-leak]: leak of 'groups'
sudo-1.9.17p2/lib/util/getgrouplist.c:82:8: branch_false: following 'false' branch (when 'groups' is NULL)...
sudo-1.9.17p2/lib/util/getgrouplist.c:91:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/getgrouplist.c:99:21: branch_true: following 'true' branch (when 'tries != 10')...
sudo-1.9.17p2/lib/util/getgrouplist.c:100:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/getgrouplist.c:101:18: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/getgrouplist.c:102:12: branch_false: following 'false' branch (when 'groups' is non-NULL)...
sudo-1.9.17p2/lib/util/getgrouplist.c:104:19: branch_false: ...to here
sudo-1.9.17p2/lib/util/getgrouplist.c:105:13: throw: if 'getgrouplist' throws an exception...
sudo-1.9.17p2/lib/util/getgrouplist.c:105:13: danger: 'groups' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
sudo-1.9.17p2/lib/util/gidlist.c:74:41: warning[-Wanalyzer-malloc-leak]: leak of 'gids'
sudo-1.9.17p2/lib/util/gidlist.c:63:8: branch_true: following 'true' branch (when 'ngids != 0')...
sudo-1.9.17p2/lib/util/gidlist.c:64:16: branch_true: ...to here
sudo-1.9.17p2/lib/util/gidlist.c:64:16: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/gidlist.c:65:12: branch_false: following 'false' branch (when 'gids' is non-NULL)...
sudo-1.9.17p2/lib/util/gidlist.c:70:12: branch_false: ...to here
sudo-1.9.17p2/lib/util/gidlist.c:74:41: throw: if 'sudo_strtoidx_v1' throws an exception...
sudo-1.9.17p2/lib/util/gidlist.c:74:41: danger: 'gids' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
sudo-1.9.17p2/lib/util/gidlist.c:76:17: warning[-Wanalyzer-malloc-leak]: leak of 'gids'
sudo-1.9.17p2/lib/util/gidlist.c:63:8: branch_true: following 'true' branch (when 'ngids != 0')...
sudo-1.9.17p2/lib/util/gidlist.c:64:16: branch_true: ...to here
sudo-1.9.17p2/lib/util/gidlist.c:64:16: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/gidlist.c:65:12: branch_false: following 'false' branch (when 'gids' is non-NULL)...
sudo-1.9.17p2/lib/util/gidlist.c:70:12: branch_false: ...to here
sudo-1.9.17p2/lib/util/gidlist.c:76:17: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/gidlist.c:76:17: danger: 'gids' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def52]
sudo-1.9.17p2/lib/util/lbuf.c:75:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def53]
sudo-1.9.17p2/lib/util/lbuf.c:79:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def54]
sudo-1.9.17p2/lib/util/lbuf.c:82:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def55]
sudo-1.9.17p2/lib/util/lbuf.c:87:27: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def56]
sudo-1.9.17p2/lib/util/lbuf.c:92:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def57]
sudo-1.9.17p2/lib/util/lbuf.c:95:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def58]
sudo-1.9.17p2/lib/util/lbuf.c:100:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def59]
sudo-1.9.17p2/lib/util/lbuf.c:103:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:223:1: enter_function: entry to 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_quoted_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:9: return_function: returning to 'sudo_lbuf_append_quoted_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:232:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:235:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:235:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:236:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:237:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:260:14: call_function: calling 'sudo_lbuf_expand' from 'sudo_lbuf_append_quoted_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def60]
sudo-1.9.17p2/lib/util/lbuf.c:309:21: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/lbuf.c:282:1: enter_function: entry to 'sudo_lbuf_append_v1'
sudo-1.9.17p2/lib/util/lbuf.c:291:9: call_function: calling 'sudo_lbuf_error_v1' from 'sudo_lbuf_append_v1'
sudo-1.9.17p2/lib/util/lbuf.c:291:9: return_function: returning to 'sudo_lbuf_append_v1' from 'sudo_lbuf_error_v1'
sudo-1.9.17p2/lib/util/lbuf.c:291:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/lbuf.c:294:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:294:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/lbuf.c:295:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:296:12: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:296:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:301:20: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:302:17: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:303:16: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/lbuf.c:307:20: branch_true: following 'true' branch (when 'len > 11')...
sudo-1.9.17p2/lib/util/lbuf.c:308:21: branch_true: ...to here
sudo-1.9.17p2/lib/util/lbuf.c:309:21: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/util/lbuf.c:309:21: danger: missing call to 'va_end' to match 'va_start' at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
sudo-1.9.17p2/lib/util/rcstr.c:72:5: warning[-Wanalyzer-malloc-leak]: leak of 'rcs'
sudo-1.9.17p2/lib/util/rcstr.c:65:11: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/rcstr.c:66:8: branch_false: following 'false' branch (when 'rcs' is non-NULL)...
sudo-1.9.17p2/lib/util/rcstr.c:69:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/rcstr.c:72:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/util/rcstr.c:72:5: danger: 'rcs' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
sudo-1.9.17p2/lib/util/sudo_conf.c:304:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/lib/util/sudo_conf.c:257:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:259:27: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:263:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:265:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:269:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_true: following 'true' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:274:21: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:278:8: branch_false: following 'false' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:291:18: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:292:8: branch_false: following 'false' branch (when 'debug_file' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:294:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:294:30: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:295:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:297:31: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:298:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:299:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:304:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:304:5: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
sudo-1.9.17p2/lib/util/sudo_conf.c:304:5: warning[-Wanalyzer-malloc-leak]: leak of 'debug_file'
sudo-1.9.17p2/lib/util/sudo_conf.c:257:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:259:27: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:263:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:265:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:269:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_true: following 'true' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:274:21: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:278:8: branch_false: following 'false' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:291:18: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:291:18: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:292:8: branch_false: following 'false' branch (when 'debug_file' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:294:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:295:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:296:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:304:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:304:5: danger: 'debug_file' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
sudo-1.9.17p2/lib/util/sudo_conf.c:304:16: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/lib/util/sudo_conf.c:257:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:259:27: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:263:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:265:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:269:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_true: following 'true' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:274:21: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:278:8: branch_false: following 'false' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:291:18: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:292:8: branch_false: following 'false' branch (when 'debug_file' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:294:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:294:30: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:295:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:297:31: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:298:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:299:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:304:16: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:304:16: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
sudo-1.9.17p2/lib/util/sudo_conf.c:304:16: warning[-Wanalyzer-malloc-leak]: leak of 'debug_file'
sudo-1.9.17p2/lib/util/sudo_conf.c:257:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:259:27: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:263:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:265:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:269:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:273:5: branch_true: following 'true' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:274:21: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:278:8: branch_false: following 'false' branch (when 'debug_spec' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:291:18: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:291:18: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:292:8: branch_false: following 'false' branch (when 'debug_file' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:294:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:295:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:296:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:304:16: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:304:16: danger: 'debug_file' leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: warning[-Wanalyzer-malloc-leak]: leak of 'options'
sudo-1.9.17p2/lib/util/sudo_conf.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:331:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:335:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:337:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:342:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:347:30: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:351:19: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:352:12: branch_false: following 'false' branch (when 'options' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: throw: if 'sudo_strsplit_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: danger: 'options' leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
sudo-1.9.17p2/lib/util/sudo_conf.c:357:30: warning[-Wanalyzer-malloc-leak]: leak of 'options'
sudo-1.9.17p2/lib/util/sudo_conf.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:331:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:335:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:337:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:342:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:347:30: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:351:19: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:352:12: branch_false: following 'false' branch (when 'options' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:357:13: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:358:50: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:359:16: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:361:13: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:357:30: throw: if 'sudo_strsplit_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:357:30: danger: 'options' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
sudo-1.9.17p2/lib/util/sudo_conf.c:381:5: warning[-Wanalyzer-malloc-leak]: leak of 'options'
sudo-1.9.17p2/lib/util/sudo_conf.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:331:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:335:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:337:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:342:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:347:30: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:351:19: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:352:12: branch_false: following 'false' branch (when 'options' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:367:8: branch_true: following 'true' branch (when 'info' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:368:13: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:381:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:381:5: danger: 'options' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
sudo-1.9.17p2/lib/util/sudo_conf.c:381:16: warning[-Wanalyzer-malloc-leak]: leak of 'options'
sudo-1.9.17p2/lib/util/sudo_conf.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:331:22: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:335:8: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:337:23: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:342:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:347:30: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:351:19: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:352:12: branch_false: following 'false' branch (when 'options' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:356:30: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:357:13: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:358:50: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:359:16: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:361:13: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:357:13: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:358:50: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:359:16: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:361:13: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:357:13: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:358:50: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:381:16: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:381:16: danger: 'options' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
sudo-1.9.17p2/lib/util/sudo_conf.c:604:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:740:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: call_function: calling 'sudo_conf_init' from 'sudo_conf_read_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
sudo-1.9.17p2/lib/util/sudo_conf.c:604:5: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:740:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: call_function: calling 'sudo_conf_init' from 'sudo_conf_read_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
sudo-1.9.17p2/lib/util/sudo_conf.c:650:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:740:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: call_function: calling 'sudo_conf_init' from 'sudo_conf_read_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
sudo-1.9.17p2/lib/util/sudo_conf.c:650:5: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:740:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: call_function: calling 'sudo_conf_init' from 'sudo_conf_read_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
sudo-1.9.17p2/lib/util/sudo_conf.c:684:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_true: following 'true' branch (when 'path' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:682:13: call_function: inlined call to 'strlcpy' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:683:13: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:684:13: throw: if 'sudo_warn_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:684:13: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
sudo-1.9.17p2/lib/util/sudo_conf.c:689:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_true: following 'true' branch (when 'path' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:682:13: call_function: inlined call to 'strlcpy' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:689:23: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:689:13: throw: if 'sudo_warn_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:689:13: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
sudo-1.9.17p2/lib/util/sudo_conf.c:689:23: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_true: following 'true' branch (when 'path' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:682:13: call_function: inlined call to 'strlcpy' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:689:23: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:689:23: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:689:23: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: throw: if 'sudo_open_conf_path_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
sudo-1.9.17p2/lib/util/sudo_conf.c:700:17: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:700:17: throw: if 'sudo_secure_fd_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:700:17: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
sudo-1.9.17p2/lib/util/sudo_conf.c:708:17: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:707:16: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:708:17: throw: if 'sudo_warn_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:708:17: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
sudo-1.9.17p2/lib/util/sudo_conf.c:708:27: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:707:16: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:708:27: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:708:27: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
sudo-1.9.17p2/lib/util/sudo_conf.c:711:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:711:13: throw: if 'sudo_warnx_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:711:13: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
sudo-1.9.17p2/lib/util/sudo_conf.c:711:24: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:711:24: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:711:24: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
sudo-1.9.17p2/lib/util/sudo_conf.c:714:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:714:13: throw: if 'sudo_warnx_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:714:13: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
sudo-1.9.17p2/lib/util/sudo_conf.c:714:24: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:714:24: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:714:24: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
sudo-1.9.17p2/lib/util/sudo_conf.c:718:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:718:13: throw: if 'sudo_warnx_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:718:13: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
sudo-1.9.17p2/lib/util/sudo_conf.c:718:24: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:718:24: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:718:24: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
sudo-1.9.17p2/lib/util/sudo_conf.c:721:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:721:13: throw: if 'sudo_warnx_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:721:13: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
sudo-1.9.17p2/lib/util/sudo_conf.c:721:24: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:721:24: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:721:24: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
sudo-1.9.17p2/lib/util/sudo_conf.c:724:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:680:8: branch_false: following 'false' branch (when 'path' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:698:14: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:724:13: throw: if 'sudo_warnx_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:724:13: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
sudo-1.9.17p2/lib/util/sudo_conf.c:735:9: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_true: following 'true' branch (when 'fp' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:735:19: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:735:9: throw: if 'sudo_warn_nodebug_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:735:9: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
sudo-1.9.17p2/lib/util/sudo_conf.c:735:19: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_true: following 'true' branch (when 'fp' is NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:735:19: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:735:19: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:735:19: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: throw: if 'sudo_parseln_v2' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: danger: 'fp' leaks here; was allocated at [(11)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: throw: if 'sudo_parseln_v2' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
sudo-1.9.17p2/lib/util/sudo_conf.c:758:27: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:748:14: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:758:27: throw: if the called function throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:758:27: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
sudo-1.9.17p2/lib/util/sudo_conf.c:773:13: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:743:12: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:748:14: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:773:13: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:773:13: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
sudo-1.9.17p2/lib/util/sudo_conf.c:784:9: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:783:13: branch_true: following 'true' branch (when 'fd != -1')...
sudo-1.9.17p2/lib/util/sudo_conf.c:784:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:784:9: throw: if 'close' throws an exception...
sudo-1.9.17p2/lib/util/sudo_conf.c:784:9: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
sudo-1.9.17p2/lib/util/sudo_conf.c:801:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:740:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: call_function: calling 'sudo_conf_init' from 'sudo_conf_read_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
sudo-1.9.17p2/lib/util/sudo_conf.c:801:5: warning[-Wanalyzer-malloc-leak]: leak of 'prev_locale'
sudo-1.9.17p2/lib/util/sudo_conf.c:657:1: enter_function: entry to 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:667:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:24: acquire_memory: allocated here
sudo-1.9.17p2/lib/util/sudo_conf.c:671:8: branch_false: following 'false' branch (when 'prev_locale' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:677:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:682:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:687:14: call_function: inlined call to 'open' from 'sudo_conf_read_v1'
sudo-1.9.17p2/lib/util/sudo_conf.c:688:12: branch_false: following 'false' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:734:15: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:734:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/lib/util/sudo_conf.c:740:9: branch_false: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:740:8: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: branch_true: ...to here
sudo-1.9.17p2/lib/util/sudo_conf.c:741:9: call_function: calling 'sudo_conf_init' from 'sudo_conf_read_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def99]
sudo-1.9.17p2/lib/util/sudo_debug.c:750:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/sudo_debug.c:813:1: enter_function: entry to 'sudo_debug_printf2_v1'
sudo-1.9.17p2/lib/util/sudo_debug.c:818:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/sudo_debug.c:819:5: call_function: calling 'sudo_debug_vprintf2_v1' from 'sudo_debug_printf2_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def100]
sudo-1.9.17p2/lib/util/sudo_debug.c:756:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/sudo_debug.c:813:1: enter_function: entry to 'sudo_debug_printf2_v1'
sudo-1.9.17p2/lib/util/sudo_debug.c:818:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/sudo_debug.c:819:5: call_function: calling 'sudo_debug_vprintf2_v1' from 'sudo_debug_printf2_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
sudo-1.9.17p2/logsrvd/iolog_writer.c:100:13: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
sudo-1.9.17p2/logsrvd/iolog_writer.c:93:11: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/iolog_writer.c:94:8: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
sudo-1.9.17p2/logsrvd/iolog_writer.c:94:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:98:17: branch_true: following ‘true’ branch (when ‘i < len’)...
sudo-1.9.17p2/logsrvd/iolog_writer.c:99:33: branch_true: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:99:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/iolog_writer.c:100:13: branch_true: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:100:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/iolog_writer.c:100:13: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
sudo-1.9.17p2/logsrvd/iolog_writer.c:105:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
sudo-1.9.17p2/logsrvd/iolog_writer.c:93:11: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/iolog_writer.c:94:8: branch_false: following ‘false’ branch (when ‘dst’ is non-NULL)...
sudo-1.9.17p2/logsrvd/iolog_writer.c:94:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:98:17: branch_false: following ‘false’ branch (when ‘i >= len’)...
sudo-1.9.17p2/logsrvd/iolog_writer.c:104:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:105:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/iolog_writer.c:105:5: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
sudo-1.9.17p2/logsrvd/iolog_writer.c:153:5: warning[-Wanalyzer-malloc-leak]: leak of ‘evlog’
sudo-1.9.17p2/logsrvd/iolog_writer.c:146:13: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/iolog_writer.c:147:8: branch_false: following ‘false’ branch (when ‘evlog’ is non-NULL)...
sudo-1.9.17p2/logsrvd/iolog_writer.c:153:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:153:5: throw: if ‘sudo_uuid_create_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/iolog_writer.c:153:5: danger: ‘evlog’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
sudo-1.9.17p2/logsrvd/iolog_writer.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘evlog’
sudo-1.9.17p2/logsrvd/iolog_writer.c:146:13: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/iolog_writer.c:147:8: branch_false: following ‘false’ branch (when ‘evlog’ is non-NULL)...
sudo-1.9.17p2/logsrvd/iolog_writer.c:153:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:154:9: throw: if ‘sudo_uuid_to_string_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/iolog_writer.c:154:9: danger: ‘evlog’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
sudo-1.9.17p2/logsrvd/iolog_writer.c:623:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*evlog.iolog_path’
sudo-1.9.17p2/logsrvd/iolog_writer.c:574:1: enter_function: entry to ‘create_iolog_path’
sudo-1.9.17p2/logsrvd/iolog_writer.c:585:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/iolog_writer.c:592:10: branch_true: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:592:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/iolog_writer.c:599:11: call_function: inlined call to ‘snprintf’ from ‘create_iolog_path’
sudo-1.9.17p2/logsrvd/iolog_writer.c:601:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/iolog_writer.c:611:10: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:611:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/iolog_writer.c:615:30: branch_true: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:615:30: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/iolog_writer.c:615:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/iolog_writer.c:619:45: branch_false: ...to here
sudo-1.9.17p2/logsrvd/iolog_writer.c:623:9: danger: ‘*evlog.iolog_path’ leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def106]
sudo-1.9.17p2/logsrvd/logsrvd.c:152:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*buf.data’
sudo-1.9.17p2/logsrvd/logsrvd.c:1429:1: enter_function: entry to ‘new_connection’
sudo-1.9.17p2/logsrvd/logsrvd.c:1435:20: call_function: calling ‘connection_closure_alloc’ from ‘new_connection’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def107]
sudo-1.9.17p2/logsrvd/logsrvd.c:152:18: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘buf’
sudo-1.9.17p2/logsrvd/logsrvd.c:1429:1: enter_function: entry to ‘new_connection’
sudo-1.9.17p2/logsrvd/logsrvd.c:1435:20: call_function: calling ‘connection_closure_alloc’ from ‘new_connection’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
sudo-1.9.17p2/logsrvd/logsrvd.c:189:16: warning[-Wanalyzer-malloc-leak]: leak of ‘closure’
sudo-1.9.17p2/logsrvd/logsrvd.c:1429:1: enter_function: entry to ‘new_connection’
sudo-1.9.17p2/logsrvd/logsrvd.c:1435:20: call_function: calling ‘connection_closure_alloc’ from ‘new_connection’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
sudo-1.9.17p2/logsrvd/logsrvd.c:306:33: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
sudo-1.9.17p2/logsrvd/logsrvd.c:1170:1: enter_function: entry to ‘schedule_commit_point’
sudo-1.9.17p2/logsrvd/logsrvd.c:1175:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1177:23: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1185:14: call_function: calling ‘fmt_server_message’ from ‘schedule_commit_point’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
sudo-1.9.17p2/logsrvd/logsrvd.c:313:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*buf.data’
sudo-1.9.17p2/logsrvd/logsrvd.c:1170:1: enter_function: entry to ‘schedule_commit_point’
sudo-1.9.17p2/logsrvd/logsrvd.c:1175:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1177:23: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1185:14: call_function: calling ‘fmt_server_message’ from ‘schedule_commit_point’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
sudo-1.9.17p2/logsrvd/logsrvd.c:318:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/logsrvd/logsrvd.c:1170:1: enter_function: entry to ‘schedule_commit_point’
sudo-1.9.17p2/logsrvd/logsrvd.c:1175:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1177:23: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1185:14: call_function: calling ‘fmt_server_message’ from ‘schedule_commit_point’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
sudo-1.9.17p2/logsrvd/logsrvd.c:318:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
sudo-1.9.17p2/logsrvd/logsrvd.c:1170:1: enter_function: entry to ‘schedule_commit_point’
sudo-1.9.17p2/logsrvd/logsrvd.c:1175:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1177:23: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1185:14: call_function: calling ‘fmt_server_message’ from ‘schedule_commit_point’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
sudo-1.9.17p2/logsrvd/logsrvd.c:1540:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
sudo-1.9.17p2/logsrvd/logsrvd.c:1517:17: acquire_resource: stream socket created here
sudo-1.9.17p2/logsrvd/logsrvd.c:1517:8: branch_false: following ‘false’ branch (when ‘sock != -1’)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1521:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1534:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1539:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1539:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1540:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1540:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd.c:1540:9: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
sudo-1.9.17p2/logsrvd/logsrvd.c:1543:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
sudo-1.9.17p2/logsrvd/logsrvd.c:1517:17: acquire_resource: stream socket created here
sudo-1.9.17p2/logsrvd/logsrvd.c:1517:8: branch_false: following ‘false’ branch (when ‘sock != -1’)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1521:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1534:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1539:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1539:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1543:13: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1543:13: throw: if ‘fcntl’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd.c:1543:13: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
sudo-1.9.17p2/logsrvd/logsrvd.c:1554:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
sudo-1.9.17p2/logsrvd/logsrvd.c:1517:17: acquire_resource: stream socket created here
sudo-1.9.17p2/logsrvd/logsrvd.c:1517:8: branch_false: following ‘false’ branch (when ‘sock != -1’)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1521:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1534:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1539:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1539:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1540:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1553:8: branch_true: following ‘true’ branch (when ‘sock != -1’)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1554:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1554:9: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd.c:1554:9: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-416): [#def116]
sudo-1.9.17p2/logsrvd/logsrvd.c:1634:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘l’
sudo-1.9.17p2/logsrvd/logsrvd.c:1632:12: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1636:9: release_memory: freed here
sudo-1.9.17p2/logsrvd/logsrvd.c:1632:12: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1634:9: danger: use after ‘free’ of ‘l’; freed at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def117]
sudo-1.9.17p2/logsrvd/logsrvd.c:1635:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*l.sock’
sudo-1.9.17p2/logsrvd/logsrvd.c:1632:12: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1635:9: release_resource: first ‘close’ here
sudo-1.9.17p2/logsrvd/logsrvd.c:1632:12: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd.c:1633:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd.c:1635:9: danger: second ‘close’ here; first ‘close’ was at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:10: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:510:17: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:510:8: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:10: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:10: throw: if ‘iolog_parse_host_port’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:10: danger: ‘copy’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:559:24: warning[-Wanalyzer-malloc-leak]: leak of ‘addr’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:500:1: enter_function: entry to ‘append_address’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:510:8: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:10: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:519:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:533:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:537:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:537:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:543:5: call_function: inlined call to ‘memset’ from ‘append_address’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:548:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:552:10: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:552:22: branch_true: following ‘true’ branch (when ‘res’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:555:21: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:555:21: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:555:12: branch_false: following ‘false’ branch (when ‘addr’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:559:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:559:24: throw: if ‘sudo_rcstr_addref’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:559:24: danger: ‘addr’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:560:25: warning[-Wanalyzer-malloc-leak]: leak of ‘addr’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:500:1: enter_function: entry to ‘append_address’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:510:8: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:10: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:516:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:519:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:533:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:537:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:537:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:543:5: call_function: inlined call to ‘memset’ from ‘append_address’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:548:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:552:10: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:552:22: branch_true: following ‘true’ branch (when ‘res’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:555:21: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:555:21: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:555:12: branch_false: following ‘false’ branch (when ‘addr’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:559:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:560:25: throw: if ‘sudo_rcstr_addref’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:560:25: danger: ‘addr’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:826:5: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1594:1: enter_function: entry to ‘logsrvd_conf_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1599:19: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1599:8: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1605:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1611:10: call_function: calling ‘cb_relay_dir’ from ‘logsrvd_conf_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:829:9: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1594:1: enter_function: entry to ‘logsrvd_conf_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1599:19: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1599:8: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1605:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1611:10: call_function: calling ‘cb_relay_dir’ from ‘logsrvd_conf_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:830:9: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1594:1: enter_function: entry to ‘logsrvd_conf_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1599:19: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1599:8: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1605:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1611:10: call_function: calling ‘cb_relay_dir’ from ‘logsrvd_conf_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1291:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1285:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1285:27: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1285:27: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1285:9: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1291:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1291:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1291:5: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
sudo-1.9.17p2/logsrvd/logsrvd_local.c:419:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*evlog.signal_name’
sudo-1.9.17p2/logsrvd/logsrvd_local.c:413:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_local.c:418:30: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_local.c:419:12: danger: ‘*evlog.signal_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:121:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:91:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:95:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:95:5: branch_true: following ‘true’ branch (when ‘oj’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:95:5: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:108:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:113:14: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:113:14: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:114:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:121:19: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:121:19: throw: if ‘connection_closure_alloc’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:121:19: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:237:20: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:218:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:221:14: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:223:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:228:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:231:12: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:232:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:232:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:237:20: throw: if ‘readdir’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:237:20: danger: ‘opendir(&path)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:78:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:116:1: enter_function: entry to ‘relay_closure_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:133:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:137:5: call_function: calling ‘relay_closure_free’ from ‘relay_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:91:9: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:116:1: enter_function: entry to ‘relay_closure_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:133:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:137:5: call_function: calling ‘relay_closure_free’ from ‘relay_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:92:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:116:1: enter_function: entry to ‘relay_closure_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:133:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:137:5: call_function: calling ‘relay_closure_free’ from ‘relay_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:93:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:116:1: enter_function: entry to ‘relay_closure_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:133:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:137:5: call_function: calling ‘relay_closure_free’ from ‘relay_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:94:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:116:1: enter_function: entry to ‘relay_closure_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:133:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:137:5: call_function: calling ‘relay_closure_free’ from ‘relay_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:95:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:116:1: enter_function: entry to ‘relay_closure_alloc’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:133:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:137:5: call_function: calling ‘relay_closure_free’ from ‘relay_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:126:29: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:126:29: throw: if ‘logsrvd_conf_relay_address’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:126:29: danger: ‘relay_closure’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:127:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:127:5: throw: if ‘address_list_addref’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:127:5: danger: ‘relay_closure’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:131:36: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: warning[-Wanalyzer-malloc-leak]: leak of ‘relay_closure’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:26: acquire_memory: allocated here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:121:8: branch_false: following ‘false’ branch (when ‘relay_closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:125:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:132:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:135:5: danger: ‘relay_closure’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:329:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:318:8: branch_false: following ‘false’ branch (when ‘relay’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:322:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:324:12: acquire_resource: stream socket created here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:325:8: branch_false: following ‘false’ branch (when ‘sock != -1’)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:329:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:329:9: throw: if ‘logsrvd_conf_relay_tcp_keepalive’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:329:9: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:336:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:318:8: branch_false: following ‘false’ branch (when ‘relay’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:322:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:324:12: acquire_resource: stream socket created here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:325:8: branch_false: following ‘false’ branch (when ‘sock != -1’)...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:329:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:329:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:336:11: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:336:11: throw: if ‘fcntl’ throws an exception...
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:336:11: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
sudo-1.9.17p2/logsrvd/sendlog.c:193:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
sudo-1.9.17p2/logsrvd/sendlog.c:1720:1: enter_function: entry to ‘main’
sudo-1.9.17p2/logsrvd/sendlog.c:1751:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1753:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1756:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1756:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1831:8: branch_true: following ‘true’ branch (when ‘port’ is NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1834:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1834:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1838:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1844:8: branch_false: following ‘false’ branch (when ‘argc == 1’)...
sudo-1.9.17p2/logsrvd/sendlog.c:1846:17: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1847:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1853:18: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1853:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1856:19: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1856:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1859:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1862:21: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1863:16: branch_true: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1863:16: call_function: calling ‘connect_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
sudo-1.9.17p2/logsrvd/sendlog.c:263:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
sudo-1.9.17p2/logsrvd/sendlog.c:1622:1: enter_function: entry to ‘client_closure_alloc’
sudo-1.9.17p2/logsrvd/sendlog.c:1630:8: branch_false: following ‘false’ branch (when ‘closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1633:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1654:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1657:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1659:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1662:11: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1662:11: call_function: calling ‘get_free_buf’ from ‘client_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
sudo-1.9.17p2/logsrvd/sendlog.c:264:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*buf.data’
sudo-1.9.17p2/logsrvd/sendlog.c:1622:1: enter_function: entry to ‘client_closure_alloc’
sudo-1.9.17p2/logsrvd/sendlog.c:1630:8: branch_false: following ‘false’ branch (when ‘closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1633:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1654:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1657:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1659:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1662:11: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1662:11: call_function: calling ‘get_free_buf’ from ‘client_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
sudo-1.9.17p2/logsrvd/sendlog.c:265:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
sudo-1.9.17p2/logsrvd/sendlog.c:1622:1: enter_function: entry to ‘client_closure_alloc’
sudo-1.9.17p2/logsrvd/sendlog.c:1630:8: branch_false: following ‘false’ branch (when ‘closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1633:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1654:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1657:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1659:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1662:11: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1662:11: call_function: calling ‘get_free_buf’ from ‘client_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
sudo-1.9.17p2/logsrvd/sendlog.c:271:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
sudo-1.9.17p2/logsrvd/sendlog.c:1435:1: enter_function: entry to ‘client_msg_cb’
sudo-1.9.17p2/logsrvd/sendlog.c:1442:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1448:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1448:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1459:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1459:8: branch_false: following ‘false’ branch (when ‘what != 1’)...
sudo-1.9.17p2/logsrvd/sendlog.c:1464:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1472:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1513:31: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1513:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1517:14: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1519:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1521:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1527:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1529:18: branch_true: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1529:18: call_function: calling ‘client_message_completion’ from ‘client_msg_cb’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def145]
sudo-1.9.17p2/logsrvd/sendlog.c:1607:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*buf.data’
sudo-1.9.17p2/logsrvd/sendlog.c:1622:1: enter_function: entry to ‘client_closure_alloc’
sudo-1.9.17p2/logsrvd/sendlog.c:1630:8: branch_false: following ‘false’ branch (when ‘closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1633:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1654:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1657:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1659:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1660:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1688:5: call_function: calling ‘client_closure_free’ from ‘client_closure_alloc’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def146]
sudo-1.9.17p2/logsrvd/sendlog.c:1607:18: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘buf’
sudo-1.9.17p2/logsrvd/sendlog.c:1622:1: enter_function: entry to ‘client_closure_alloc’
sudo-1.9.17p2/logsrvd/sendlog.c:1630:8: branch_false: following ‘false’ branch (when ‘closure’ is non-NULL)...
sudo-1.9.17p2/logsrvd/sendlog.c:1633:5: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1654:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1657:24: branch_false: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1659:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/logsrvd/sendlog.c:1660:9: branch_true: ...to here
sudo-1.9.17p2/logsrvd/sendlog.c:1688:5: call_function: calling ‘client_closure_free’ from ‘client_closure_alloc’
Error: CPPCHECK_WARNING (CWE-457): [#def147]
sudo-1.9.17p2/plugins/audit_json/audit_json.c:89: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
sudo-1.9.17p2/plugins/python/pyhelpers.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:128:1: enter_function: entry to 'py_log_last_error'
sudo-1.9.17p2/plugins/python/pyhelpers.c:131:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:136:15: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:139:21: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:141:5: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:147:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:148:27: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:148:27: call_function: calling 'py_create_traceback_string' from 'py_log_last_error'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
sudo-1.9.17p2/plugins/python/pyhelpers.c:124:5: warning[-Wanalyzer-malloc-leak]: leak of 'sudo_debug_ret'
sudo-1.9.17p2/plugins/python/pyhelpers.c:128:1: enter_function: entry to 'py_log_last_error'
sudo-1.9.17p2/plugins/python/pyhelpers.c:131:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:136:15: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:139:21: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:141:5: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:147:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:148:27: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:148:27: call_function: calling 'py_create_traceback_string' from 'py_log_last_error'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:199:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:205:29: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:208:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:213:21: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: throw: if 'PyTuple_GetItem' throws an exception...
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
sudo-1.9.17p2/plugins/python/pyhelpers.c:230:5: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:199:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:205:29: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:208:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:213:21: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:230:5: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:230:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/python/pyhelpers.c:230:5: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
sudo-1.9.17p2/plugins/python/pyhelpers.c:281:5: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:195:1: enter_function: entry to 'py_str_array_from_tuple'
sudo-1.9.17p2/plugins/python/pyhelpers.c:199:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:205:29: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:208:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:213:21: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:215:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:221:23: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:221:23: call_function: calling 'py_create_string_rep' from 'py_str_array_from_tuple'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
sudo-1.9.17p2/plugins/python/pyhelpers.c:287:27: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:195:1: enter_function: entry to 'py_str_array_from_tuple'
sudo-1.9.17p2/plugins/python/pyhelpers.c:199:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:205:29: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:208:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:213:21: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:215:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:221:23: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:221:23: call_function: calling 'py_create_string_rep' from 'py_str_array_from_tuple'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
sudo-1.9.17p2/plugins/python/pyhelpers.c:289:29: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:195:1: enter_function: entry to 'py_str_array_from_tuple'
sudo-1.9.17p2/plugins/python/pyhelpers.c:199:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:205:29: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:208:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:213:21: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:215:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:221:23: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:221:23: call_function: calling 'py_create_string_rep' from 'py_str_array_from_tuple'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
sudo-1.9.17p2/plugins/python/pyhelpers.c:319:5: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:279:1: enter_function: entry to 'py_create_string_rep'
sudo-1.9.17p2/plugins/python/pyhelpers.c:284:8: branch_false: following 'false' branch (when 'py_object' is non-NULL)...
sudo-1.9.17p2/plugins/python/pyhelpers.c:287:27: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:288:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:289:29: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:290:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:296:17: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:312:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:313:26: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:313:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:318:5: call_function: calling 'Py_XDECREF' from 'py_create_string_rep'
sudo-1.9.17p2/plugins/python/pyhelpers.c:318:5: return_function: returning to 'py_create_string_rep' from 'Py_XDECREF'
sudo-1.9.17p2/plugins/python/pyhelpers.c:319:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/python/pyhelpers.c:319:5: danger: 'result' leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
sudo-1.9.17p2/plugins/python/pyhelpers.c:414:5: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/python/pyhelpers.c:195:1: enter_function: entry to 'py_str_array_from_tuple'
sudo-1.9.17p2/plugins/python/pyhelpers.c:199:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:205:29: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:208:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:209:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:213:21: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:214:30: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:215:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/pyhelpers.c:216:13: branch_true: ...to here
sudo-1.9.17p2/plugins/python/pyhelpers.c:216:13: call_function: calling 'str_array_free' from 'py_str_array_from_tuple'
Error: CPPCHECK_WARNING (CWE-457): [#def157]
sudo-1.9.17p2/plugins/python/python_plugin_common.c:336: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
sudo-1.9.17p2/plugins/python/sudo_python_module.c:360:17: warning[-Wanalyzer-malloc-leak]: leak of 'replies'
sudo-1.9.17p2/plugins/python/sudo_python_module.c:333:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:337:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:337:8: branch_false: following 'false' branch (when 'py_kwargs' is NULL)...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:342:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:342:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:347:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:347:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:353:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:353:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:357:15: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:357:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:358:8: branch_false: following 'false' branch (when 'replies' is non-NULL)...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:360:17: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:360:17: throw: if 'PyTuple_New' throws an exception...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:360:17: danger: 'replies' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
sudo-1.9.17p2/plugins/python/sudo_python_module.c:365:9: warning[-Wanalyzer-malloc-leak]: leak of 'replies'
sudo-1.9.17p2/plugins/python/sudo_python_module.c:333:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:337:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:337:8: branch_false: following 'false' branch (when 'py_kwargs' is NULL)...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:342:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:342:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:347:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:347:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:353:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:353:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:357:15: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:357:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:358:8: branch_false: following 'false' branch (when 'replies' is non-NULL)...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:360:17: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:361:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:364:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:364:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:365:9: branch_true: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:365:9: throw: if 'PyErr_Format' throws an exception...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:365:9: danger: 'replies' leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
sudo-1.9.17p2/plugins/python/sudo_python_module.c:370:14: warning[-Wanalyzer-malloc-leak]: leak of 'replies'
sudo-1.9.17p2/plugins/python/sudo_python_module.c:333:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:337:8: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:337:8: branch_false: following 'false' branch (when 'py_kwargs' is NULL)...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:342:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:342:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:347:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:347:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:353:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:353:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:357:15: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:357:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:358:8: branch_false: following 'false' branch (when 'replies' is non-NULL)...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:360:17: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:361:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:364:9: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:364:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:370:14: branch_false: ...to here
sudo-1.9.17p2/plugins/python/sudo_python_module.c:370:14: throw: if 'py_sudo_conv' throws an exception...
sudo-1.9.17p2/plugins/python/sudo_python_module.c:370:14: danger: 'replies' leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:154:34: warning[-Wanalyzer-malloc-leak]: leak of 'find_in_path(editor, plugin_state.envp)'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:314:1: enter_function: entry to 'policy_check'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: call_function: calling 'find_in_path' from 'policy_check'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: return_function: returning to 'policy_check' from 'find_in_path'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:335:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:338:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:340:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:341:19: call_function: calling 'find_editor' from 'policy_check'
Error: CPPCHECK_WARNING (CWE-476): [#def162]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path
Error: CPPCHECK_WARNING (CWE-476): [#def163]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:211:28: warning[-Wanalyzer-malloc-leak]: leak of 'command'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:314:1: enter_function: entry to 'policy_check'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: call_function: calling 'find_in_path' from 'policy_check'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: return_function: returning to 'policy_check' from 'find_in_path'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:335:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:338:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:349:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:356:25: call_function: calling 'build_command_info' from 'policy_check'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:211:28: warning[-Wanalyzer-malloc-leak]: leak of 'command_info'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:314:1: enter_function: entry to 'policy_check'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: call_function: calling 'find_in_path' from 'policy_check'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: return_function: returning to 'policy_check' from 'find_in_path'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:329:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:335:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:356:25: call_function: calling 'build_command_info' from 'policy_check'
Error: CPPCHECK_WARNING (CWE-457): [#def166]
sudo-1.9.17p2/plugins/sample_approval/sample_approval.c:56: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-404): [#def167]
sudo-1.9.17p2/plugins/sudoers/audit.c:112:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/audit.c:134:1: enter_function: entry to 'audit_failure'
sudo-1.9.17p2/plugins/sudoers/audit.c:141:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/audit.c:142:11: call_function: calling 'vaudit_failure' from 'audit_failure'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def168]
sudo-1.9.17p2/plugins/sudoers/audit.c:115:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/audit.c:134:1: enter_function: entry to 'audit_failure'
sudo-1.9.17p2/plugins/sudoers/audit.c:141:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/audit.c:142:11: call_function: calling 'vaudit_failure' from 'audit_failure'
Error: CPPCHECK_WARNING (CWE-457): [#def169]
sudo-1.9.17p2/plugins/sudoers/audit.c:155: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:632:5: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:687:1: enter_function: entry to 'converse'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:22: call_function: calling 'use_pam_prompt' from 'converse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:636:9: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:687:1: enter_function: entry to 'converse'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:22: call_function: calling 'use_pam_prompt' from 'converse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:640:9: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:687:1: enter_function: entry to 'converse'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:22: call_function: calling 'use_pam_prompt' from 'converse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:644:9: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:687:1: enter_function: entry to 'converse'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:22: call_function: calling 'use_pam_prompt' from 'converse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:657:17: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:687:1: enter_function: entry to 'converse'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:22: call_function: calling 'use_pam_prompt' from 'converse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:662:5: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:687:1: enter_function: entry to 'converse'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:22: call_function: calling 'use_pam_prompt' from 'converse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:738:20: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:738:20: throw: if 'auth_getpass' throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:738:20: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:745:17: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:739:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:744:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:744:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:745:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:745:17: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:745:17: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:747:17: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:725:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:729:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:735:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:739:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:744:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:744:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:745:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:747:17: throw: if 'sudo_freezero' throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:747:17: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:755:17: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:754:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:754:37: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:754:17: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:755:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:755:17: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:755:17: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:760:17: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: following 'false' branch (when 'appdata_ptr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:759:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:760:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:760:17: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:760:17: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:764:13: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:764:13: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:764:13: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:779:13: warning[-Wanalyzer-malloc-leak]: leak of 'reply'
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:698:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:703:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:706:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:707:8: branch_false: following 'false' branch (when 'reply' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:712:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:715:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:716:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:775:17: branch_true: following 'true' branch (when 'n < num_msg')...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:776:41: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:778:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:779:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:779:13: throw: if 'sudo_freezero' throws an exception...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:779:13: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
sudo-1.9.17p2/plugins/sudoers/boottime.c:67:23: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/proc/stat", "r")'
sudo-1.9.17p2/plugins/sudoers/boottime.c:65:10: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/boottime.c:66:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/boottime.c:66:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/boottime.c:67:23: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/plugins/sudoers/boottime.c:67:23: danger: 'fopen("/proc/stat", "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
sudo-1.9.17p2/plugins/sudoers/boottime.c:67:23: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/proc/stat", "r")'
sudo-1.9.17p2/plugins/sudoers/boottime.c:65:10: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/boottime.c:66:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/boottime.c:66:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/boottime.c:67:23: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/plugins/sudoers/boottime.c:67:23: danger: 'fopen("/proc/stat", "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def185]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:108: error[legacyUninitvar]: Uninitialized variable: parse_trees
Error: GCC_ANALYZER_WARNING (CWE-404): [#def186]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:482:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:477:5: acquire_resource: ‘va_start’ called here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:478:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:482:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:482:9: throw: if ‘sudo_vwarnx_nodebug_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:482:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:587:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:579:8: branch_true: following ‘true’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:580:14: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:580:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:581:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:581:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:587:12: throw: if ‘sudo_parseln_v2’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:587:12: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:722:13: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:706:43: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:714:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:714:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:714:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:721:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:721:12: branch_true: following ‘true’ branch (when ‘cp’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:722:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:722:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:722:13: danger: ‘s’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:738:13: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:706:43: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:714:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:714:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:714:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:721:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:721:12: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:726:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:729:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:731:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:731:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:733:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:733:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:735:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:735:19: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:738:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:738:13: danger: ‘s’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:756:8: branch_true: following ‘true’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:757:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:757:19: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:757:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: throw: if ‘sudoers_parse_ldif’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: danger: ‘fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:756:8: branch_true: following ‘true’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:757:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:757:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:757:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: throw: if ‘sudoers_parse_ldif’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:761:15: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:898:17: warning[-Wanalyzer-malloc-leak]: leak of ‘shosts’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:882:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:889:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:890:8: branch_false: following ‘false’ branch (when ‘shosts’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:893:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:893:5: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:894:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:895:12: branch_true: following ‘true’ branch (when ‘shost’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:896:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:897:16: branch_true: following ‘true’ branch (when ‘shost’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:898:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:898:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:898:17: danger: ‘shosts’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:925:17: warning[-Wanalyzer-malloc-leak]: leak of ‘shosts’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:882:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:889:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:890:8: branch_false: following ‘false’ branch (when ‘shosts’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:893:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:907:5: branch_true: following ‘true’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:907:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:910:9: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:911:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:925:17: throw: if ‘host_matches’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:925:17: danger: ‘shosts’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def194]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1279: error[legacyUninitvar]: Uninitialized variable: user_aliases
Error: CPPCHECK_WARNING (CWE-457): [#def195]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1280: error[legacyUninitvar]: Uninitialized variable: runas_aliases
Error: CPPCHECK_WARNING (CWE-457): [#def196]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1281: error[legacyUninitvar]: Uninitialized variable: host_aliases
Error: CPPCHECK_WARNING (CWE-457): [#def197]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1282: error[legacyUninitvar]: Uninitialized variable: cmnd_aliases
Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:426:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:713:1: enter_function: entry to ‘convert_sudoers_csv’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:35: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: call_function: calling ‘print_aliases_csv’ from ‘convert_sudoers_csv’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:426:5: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:713:1: enter_function: entry to ‘convert_sudoers_csv’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:35: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: call_function: calling ‘print_aliases_csv’ from ‘convert_sudoers_csv’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:429:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:713:1: enter_function: entry to ‘convert_sudoers_csv’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:35: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: call_function: calling ‘print_aliases_csv’ from ‘convert_sudoers_csv’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:429:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:713:1: enter_function: entry to ‘convert_sudoers_csv’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:35: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:736:14: call_function: calling ‘print_aliases_csv’ from ‘convert_sudoers_csv’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def202]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:749:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:749:11: throw: if ‘fflush’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:749:11: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:749:11: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:749:11: throw: if ‘fflush’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:749:11: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:750:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:750:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:751:9: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def206]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:754:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:754:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def208]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:758:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:754:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:758:1: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:758:1: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:720:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:721:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:728:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:735:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:742:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:748:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:754:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:757:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:758:1: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def210]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1032:8: branch_true: following ‘true’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: throw: if ‘sudo_json_init_v2’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1032:8: branch_true: following ‘true’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: throw: if ‘sudo_json_init_v2’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def212]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1032:8: branch_true: following ‘true’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1032:8: branch_true: following ‘true’ branch (when the strings are non-equal)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1033:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1040:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_json.c:1041:9: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:115:13: warning[-Wanalyzer-malloc-leak]: leak of ‘encoded’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:350:1: enter_function: entry to ‘print_cmndspec_ldif’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:362:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:363:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:363:9: branch_true: following ‘true’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:364:70: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:364:18: call_function: calling ‘print_member_ldif’ from ‘print_cmndspec_ldif’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:581:12: warning[-Wanalyzer-malloc-leak]: leak of ‘cn’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:581:12: throw: if ‘rbfind’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:581:12: danger: ‘cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:586:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cn’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_true: following ‘true’ branch (when ‘su’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:586:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:586:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:586:13: danger: ‘cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cn’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_false: following ‘false’ branch (when ‘su’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:589:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: danger: ‘cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: warning[-Wanalyzer-malloc-leak]: leak of ‘su’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_false: following ‘false’ branch (when ‘su’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:589:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:591:13: danger: ‘su’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_false: following ‘false’ branch (when ‘su’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:589:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: throw: if ‘rbinsert’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cn’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_false: following ‘false’ branch (when ‘su’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:589:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: throw: if ‘rbinsert’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: danger: ‘cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: warning[-Wanalyzer-malloc-leak]: leak of ‘su’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_false: following ‘false’ branch (when ‘su’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:589:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: throw: if ‘rbinsert’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: danger: ‘su’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:595:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cn’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:572:8: branch_false: following ‘false’ branch (when ‘cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:582:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:585:12: branch_false: following ‘false’ branch (when ‘su’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:589:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:590:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:594:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:595:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:595:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:595:13: danger: ‘cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def223]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: throw: if ‘rbcreate’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: throw: if ‘rbcreate’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def225]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:760:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:760:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:761:9: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def227]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:762:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:788:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:762:9: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:762:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:788:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:762:9: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def229]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:766:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:772:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:772:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:779:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:780:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: throw: if ‘rbdestroy’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:766:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:772:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:772:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:779:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:780:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: throw: if ‘rbdestroy’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:781:9: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def231]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: throw: if ‘fflush’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: throw: if ‘fflush’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def233]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:784:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:784:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:785:9: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:788:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: warning[-Wanalyzer-malloc-leak]: leak of ‘output_fp’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:746:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:751:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:752:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:759:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:788:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:791:5: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:55:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:46:8: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:48:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:48:8: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:49:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:49:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:50:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:53:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:55:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:55:5: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:55:5: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:45:9: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:46:8: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:48:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:48:8: branch_false: following ‘false’ branch (when ‘name’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:53:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:55:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:55:5: danger: ‘m’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:57:5: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:45:9: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:46:8: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:48:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:48:8: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:49:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:50:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:51:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:57:5: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:57:5: danger: ‘m’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def240]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c: scope_hint: In function ‘alias_make_unique’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:345:8: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def241]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:345:8: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:414:1: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:397:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:401:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:401:5: branch_true: following ‘true’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:402:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:402:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:403:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:404:16: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:408:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:401:5: branch_false: following ‘false’ branch (when ‘m’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:413:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:414:1: danger: ‘copy’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:484:1: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:487:1: enter_function: entry to ‘alias_rename_member_list’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:493:5: branch_true: following ‘true’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:494:14: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:494:14: call_function: calling ‘alias_rename_member’ from ‘alias_rename_member_list’
Error: CPPCHECK_WARNING (CWE-457): [#def244]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1258: error[legacyUninitvar]: Uninitialized variable: bound_hosts
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:330:29: warning[-Wanalyzer-malloc-leak]: leak of ‘gids’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:307:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:313:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:319:8: branch_true: following ‘true’ branch (when ‘ngids != 0’)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:320:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:320:16: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:321:12: branch_false: following ‘false’ branch (when ‘gids’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:327:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:327:9: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:328:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:328:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:330:29: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:330:29: throw: if ‘sudo_strtoid_v2’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:330:29: danger: ‘gids’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:451:13: warning[-Wanalyzer-malloc-leak]: leak of ‘grlitem’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:404:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:411:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:421:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:421:8: branch_false: following ‘false’ branch (when ‘grlitem’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:432:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:448:5: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:449:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:449:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:451:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:451:13: throw: if ‘sudo_strtoid_v2’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:451:13: danger: ‘grlitem’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:469:5: warning[-Wanalyzer-malloc-leak]: leak of ‘grlitem’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:404:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:411:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:421:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:421:8: branch_false: following ‘false’ branch (when ‘grlitem’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:432:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:469:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:469:5: danger: ‘grlitem’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def248]
sudo-1.9.17p2/plugins/sudoers/defaults.c:186:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/defaults.c:1183:1: enter_function: entry to 'valid_path'
sudo-1.9.17p2/plugins/sudoers/defaults.c:1189:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1191:50: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1190:9: call_function: calling 'defaults_warnx' from 'valid_path'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
sudo-1.9.17p2/plugins/sudoers/defaults.c:1250:13: warning[-Wanalyzer-malloc-leak]: leak of 'cur'
sudo-1.9.17p2/plugins/sudoers/defaults.c:1219:8: branch_false: following 'false' branch (when 'op != 2')...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1228:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1247:8: branch_true: following 'true' branch (when 'op == 0')...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1248:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1248:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1249:12: branch_false: following 'false' branch (when 'cur' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1249:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1249:13: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1250:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1250:13: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1250:13: danger: 'cur' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
sudo-1.9.17p2/plugins/sudoers/defaults.c:1279:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/defaults.c:1266:8: branch_false: following 'false' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1269:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1271:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1271:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1274:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1274:8: branch_false: following 'false' branch (when 'val' is NULL)...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1278:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1279:5: throw: if 'sudo_rcstr_addref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1279:5: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
sudo-1.9.17p2/plugins/sudoers/defaults.c:1279:5: warning[-Wanalyzer-malloc-leak]: leak of 'def'
sudo-1.9.17p2/plugins/sudoers/defaults.c:1266:16: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1266:8: branch_false: following 'false' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1269:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1271:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1274:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1274:8: branch_false: following 'false' branch (when 'val' is NULL)...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1278:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/defaults.c:1279:5: throw: if 'sudo_rcstr_addref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/defaults.c:1279:5: danger: 'def' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
sudo-1.9.17p2/plugins/sudoers/editor.c:104:9: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
sudo-1.9.17p2/plugins/sudoers/editor.c:223:1: enter_function: entry to 'find_editor'
sudo-1.9.17p2/plugins/sudoers/editor.c:238:17: branch_true: following 'true' branch (when 'i != 3')...
sudo-1.9.17p2/plugins/sudoers/editor.c:239:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/editor.c:241:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/editor.c:243:27: call_function: calling 'resolve_editor' from 'find_editor'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
sudo-1.9.17p2/plugins/sudoers/env.c:375:9: warning[-Wanalyzer-malloc-leak]: leak of 'nenvp'
sudo-1.9.17p2/plugins/sudoers/env.c:1149:1: enter_function: entry to 'insert_env_vars'
sudo-1.9.17p2/plugins/sudoers/env.c:1156:8: branch_true: following 'true' branch (when 'envp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/env.c:1156:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1157:25: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/env.c:1159:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1159:17: call_function: calling 'sudo_putenv' from 'insert_env_vars'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def254]
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: warning[-Wanalyzer-file-leak]: leak of FILE
sudo-1.9.17p2/plugins/sudoers/env.c:1232:8: branch_true: following 'true' branch (when 'efl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/env.c:1233:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1233:24: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/env.c:1233:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: danger: leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/env.c:1232:8: branch_true: following 'true' branch (when 'efl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/env.c:1233:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1233:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/env.c:1233:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: warning[-Wanalyzer-malloc-leak]: leak of 'efl'
sudo-1.9.17p2/plugins/sudoers/env.c:1231:11: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/env.c:1232:8: branch_true: following 'true' branch (when 'efl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/env.c:1233:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1233:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/env.c:1240:5: danger: 'efl' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
sudo-1.9.17p2/plugins/sudoers/file.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/file.c:64:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/file.c:67:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:73:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/file.c:74:8: branch_true: following 'true' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/file.c:75:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:75:9: throw: if 'init_parser' throws an exception...
sudo-1.9.17p2/plugins/sudoers/file.c:75:9: danger: 'handle' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
sudo-1.9.17p2/plugins/sudoers/file.c:76:22: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/file.c:64:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/file.c:67:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:73:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/file.c:74:8: branch_true: following 'true' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/file.c:75:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:76:22: throw: if 'open_sudoers' throws an exception...
sudo-1.9.17p2/plugins/sudoers/file.c:76:22: danger: 'handle' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
sudo-1.9.17p2/plugins/sudoers/file.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/file.c:64:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/file.c:67:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:73:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/file.c:74:8: branch_true: following 'true' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/file.c:75:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:78:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/file.c:79:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/file.c:79:13: throw: if 'init_parse_tree' throws an exception...
sudo-1.9.17p2/plugins/sudoers/file.c:79:13: danger: 'handle' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:66:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_true: following 'true' branch (when 'file_digest' is NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:66:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:66:9: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:66:9: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: warning[-Wanalyzer-malloc-leak]: leak of 'file_digest'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: throw: if 'sudo_digest_alloc_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: throw: if 'sudo_digest_alloc_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: warning[-Wanalyzer-malloc-leak]: leak of 'file_digest'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:74:9: warning[-Wanalyzer-malloc-leak]: leak of 'file_digest'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:73:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:74:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:74:9: throw: if 'sudo_digest_update_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:74:9: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:77:9: warning[-Wanalyzer-malloc-leak]: leak of 'file_digest'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:76:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:77:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:77:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:77:9: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:80:5: warning[-Wanalyzer-malloc-leak]: leak of 'file_digest'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:76:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:80:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:80:5: throw: if 'sudo_digest_final_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:80:5: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:86:5: warning[-Wanalyzer-malloc-leak]: leak of 'file_digest'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:69:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:70:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:86:5: throw: if 'sudo_digest_free_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:86:5: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
sudo-1.9.17p2/plugins/sudoers/filedigest.c:86:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/filedigest.c:49:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:54:8: branch_false: following 'false' branch (when 'fd2 != -1')...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:59:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:65:8: branch_true: following 'true' branch (when 'file_digest' is NULL)...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:66:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/filedigest.c:86:5: throw: if 'sudo_digest_free_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/filedigest.c:86:5: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def270]
sudo-1.9.17p2/plugins/sudoers/getdate.c:1151:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
sudo-1.9.17p2/plugins/sudoers/getdate.c:1109:6: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1115:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1138:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1140:7: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1149:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1151:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1151:9: danger: use of uninitialized value ‘yyss’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def271]
sudo-1.9.17p2/plugins/sudoers/getdate.c:1278:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
sudo-1.9.17p2/plugins/sudoers/getdate.c:1109:6: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1173:6: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1173:6: branch_false: following ‘false’ branch (when ‘yystate != 2’)...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1176:3: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1188:6: branch_true: following ‘true’ branch (when ‘yyn == -12’)...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1189:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1258:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
sudo-1.9.17p2/plugins/sudoers/getdate.c:1260:3: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/getdate.c:1278:3: danger: use of uninitialized value ‘*<unknown>’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
sudo-1.9.17p2/plugins/sudoers/gram.c:1515:9: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
sudo-1.9.17p2/plugins/sudoers/gram.c:1473:6: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1537:6: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1537:6: branch_false: following 'false' branch (when 'yystate != 90')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1540:3: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1552:6: branch_false: following 'false' branch (when 'yyn != -116')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1558:7: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1558:6: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1561:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1570:11: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1582:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1589:6: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1592:6: branch_false: following 'false' branch (when 'yyn > 0')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1602:6: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1602:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1609:3: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1473:6: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1479:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1502:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1504:7: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1511:11: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.c:1513:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.c:1515:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1518:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1518:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1531:10: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1537:6: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1537:6: branch_false: following 'false' branch (when 'yystate != 90')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1540:3: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1552:6: branch_false: following 'false' branch (when 'yyn != -116')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1558:7: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1558:6: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1561:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1561:16: throw: if 'sudoerslex' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.c:1515:9: danger: 'yyptr' leaks here; was allocated at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def273]
sudo-1.9.17p2/plugins/sudoers/gram.c:1515:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
sudo-1.9.17p2/plugins/sudoers/gram.c:1473:6: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.c:1479:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1502:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
sudo-1.9.17p2/plugins/sudoers/gram.c:1504:7: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1513:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.c:1515:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.c:1515:9: danger: use of uninitialized value 'yyss' here
Error: GCC_ANALYZER_WARNING (CWE-404): [#def274]
sudo-1.9.17p2/plugins/sudoers/gram.y:1173:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/gram.y:1171:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1172:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1172:9: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/gram.y:1173:9: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1173:9: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def275]
sudo-1.9.17p2/plugins/sudoers/gram.y:1200:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/gram.y:1231:1: enter_function: entry to 'sudoerserror'
sudo-1.9.17p2/plugins/sudoers/gram.y:1242:8: branch_false: following 'false' branch (when 's' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1245:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1245:9: call_function: calling 'sudoerserrorf' from 'sudoerserror'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
sudo-1.9.17p2/plugins/sudoers/gram.y:1293:15: warning[-Wanalyzer-malloc-leak]: leak of 'd'
sudo-1.9.17p2/plugins/sudoers/gram.y:1280:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1280:8: branch_false: following 'false' branch (when 'd' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1286:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1293:15: throw: if 'sudo_rcstr_addref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1293:15: danger: 'd' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
sudo-1.9.17p2/plugins/sudoers/gram.y:1296:5: warning[-Wanalyzer-malloc-leak]: leak of 'd'
sudo-1.9.17p2/plugins/sudoers/gram.y:1280:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1280:8: branch_false: following 'false' branch (when 'd' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1286:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1296:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1296:5: danger: 'd' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
sudo-1.9.17p2/plugins/sudoers/gram.y:1315:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/gram.y:1305:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1305:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1311:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1315:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1315:5: danger: 'm' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
sudo-1.9.17p2/plugins/sudoers/gram.y:1335:5: warning[-Wanalyzer-malloc-leak]: leak of 'c'
sudo-1.9.17p2/plugins/sudoers/gram.y:1324:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1324:8: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1331:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1335:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1335:5: danger: 'c' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
sudo-1.9.17p2/plugins/sudoers/gram.y:1354:9: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
sudo-1.9.17p2/plugins/sudoers/gram.y:1344:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1344:8: branch_false: following 'false' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1350:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1353:8: branch_true: following 'true' branch (when 'digest_str' is NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1354:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1354:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1354:9: danger: 'digest' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
sudo-1.9.17p2/plugins/sudoers/gram.y:1360:5: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
sudo-1.9.17p2/plugins/sudoers/gram.y:1344:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1344:8: branch_false: following 'false' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1350:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1353:8: branch_false: following 'false' branch (when 'digest_str' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1360:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1360:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1360:5: danger: 'digest' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
sudo-1.9.17p2/plugins/sudoers/gram.y:1445:15: warning[-Wanalyzer-malloc-leak]: leak of 'u'
sudo-1.9.17p2/plugins/sudoers/gram.y:1437:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/gram.y:1437:8: branch_false: following 'false' branch (when 'u' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1443:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1445:15: throw: if 'sudo_rcstr_addref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/gram.y:1445:15: danger: 'u' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def283]
sudo-1.9.17p2/plugins/sudoers/gram.y:1464:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'm'
sudo-1.9.17p2/plugins/sudoers/gram.y:1672:1: enter_function: entry to 'free_userspecs'
sudo-1.9.17p2/plugins/sudoers/gram.y:1677:12: branch_true: following 'true' branch (when 'us' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1679:9: call_function: calling 'free_userspec' from 'free_userspecs'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def284]
sudo-1.9.17p2/plugins/sudoers/gram.y:1467:14: warning[-Wanalyzer-use-after-free]: use after 'free' of 'c'
sudo-1.9.17p2/plugins/sudoers/gram.y:1672:1: enter_function: entry to 'free_userspecs'
sudo-1.9.17p2/plugins/sudoers/gram.y:1677:12: branch_true: following 'true' branch (when 'us' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1679:9: call_function: calling 'free_userspec' from 'free_userspecs'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def285]
sudo-1.9.17p2/plugins/sudoers/gram.y:1471:18: warning[-Wanalyzer-use-after-free]: use after 'free' of 'digest'
sudo-1.9.17p2/plugins/sudoers/gram.y:1469:16: branch_true: following 'true' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1470:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1470:13: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1470:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1472:13: release_memory: freed here
sudo-1.9.17p2/plugins/sudoers/gram.y:1469:16: branch_true: following 'true' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1470:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1470:13: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1470:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1471:18: danger: use after 'free' of 'digest'; freed at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def286]
sudo-1.9.17p2/plugins/sudoers/gram.y:1475:5: warning[-Wanalyzer-double-free]: double-'free' of '*m.name'
sudo-1.9.17p2/plugins/sudoers/gram.y:1672:1: enter_function: entry to 'free_userspecs'
sudo-1.9.17p2/plugins/sudoers/gram.y:1677:12: branch_true: following 'true' branch (when 'us' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1678:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1679:9: call_function: calling 'free_userspec' from 'free_userspecs'
Error: COMPILER_WARNING (CWE-704): [#def287]
sudo-1.9.17p2/plugins/sudoers/group_plugin.c: scope_hint: In function 'group_plugin_load'
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:145:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def288]
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:145:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:225:10: warning[-Wanalyzer-malloc-leak]: leak of 'argv'
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:145:8: branch_true: following 'true' branch (when 'args' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:148:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:154:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:154:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:180:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:185:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:185:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:195:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:195:8: branch_true: following 'true' branch (when 'args' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:195:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:203:23: branch_true: following 'true' branch (when 'wasblank != 0')...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:205:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:208:12: branch_true: following 'true' branch (when 'ac != 0')...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:209:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:209:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:210:16: branch_false: following 'false' branch (when 'argv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:216:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:225:10: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/group_plugin.c:225:10: danger: 'argv' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
sudo-1.9.17p2/plugins/sudoers/iolog.c:190:5: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
sudo-1.9.17p2/plugins/sudoers/iolog.c:184:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/iolog.c:184:8: branch_true: following 'true' branch (when 'copy' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:184:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:190:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/iolog.c:190:5: danger: 'copy' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/iolog.c:230:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:233:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:233:50: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:235:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:237:12: branch_false: following 'false' branch (when 'str' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:239:45: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:239:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/iolog.c:239:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: throw: if 'unescape_string' throws an exception...
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: warning[-Wanalyzer-malloc-leak]: leak of 'str'
sudo-1.9.17p2/plugins/sudoers/iolog.c:230:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:233:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:233:50: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:235:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:237:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/iolog.c:237:12: branch_false: following 'false' branch (when 'str' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:239:45: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:239:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: throw: if 'unescape_string' throws an exception...
sudo-1.9.17p2/plugins/sudoers/iolog.c:243:9: danger: 'str' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
sudo-1.9.17p2/plugins/sudoers/iolog.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of 'str'
sudo-1.9.17p2/plugins/sudoers/iolog.c:268:11: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/iolog.c:269:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:270:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:270:9: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/iolog.c:270:9: danger: 'str' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def294]
sudo-1.9.17p2/plugins/sudoers/iolog.c:780: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-124): [#def295]
sudo-1.9.17p2/plugins/sudoers/ldap.c:169:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:8: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:9: branch_false: following 'false' branch (when 'buf' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:165:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:165:9: branch_false: following 'false' branch (when 'uri' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:169:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:169:9: danger: out-of-bounds write at byte -1 but region starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
sudo-1.9.17p2/plugins/sudoers/ldap.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:8: branch_false: following 'false' branch (when 'len != 0')...
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:28: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap.c:160:9: branch_false: following 'false' branch (when 'buf' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:165:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:165:9: branch_false: following 'false' branch (when 'uri' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:169:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:171:5: branch_true: following 'true' branch (when 'buf' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:171:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:171:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap.c:171:5: danger: 'buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: warning[-Wanalyzer-malloc-leak]: leak of 'sudo_debug_ret'
sudo-1.9.17p2/plugins/sudoers/ldap.c:531:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: branch_true: following 'true' branch (when 'sudo_debug_ret' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap.c:532:9: danger: 'sudo_debug_ret' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
sudo-1.9.17p2/plugins/sudoers/ldap.c:899:5: warning[-Wanalyzer-malloc-leak]: leak of 'notbuf'
sudo-1.9.17p2/plugins/sudoers/ldap.c:864:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:880:11: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:881:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap.c:882:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:884:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:898:5: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:899:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:899:5: throw: if 'sudo_ldap_value_cat' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap.c:899:5: danger: 'notbuf' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
sudo-1.9.17p2/plugins/sudoers/ldap.c:1003:5: warning[-Wanalyzer-malloc-leak]: leak of 'notbuf'
sudo-1.9.17p2/plugins/sudoers/ldap.c:864:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:880:11: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:881:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap.c:882:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:884:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1003:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1003:5: danger: 'notbuf' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
sudo-1.9.17p2/plugins/sudoers/ldap.c:1187:16: warning[-Wanalyzer-malloc-leak]: leak of 'us'
sudo-1.9.17p2/plugins/sudoers/ldap.c:1185:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1185:8: branch_false: following 'false' branch (when 'us' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1187:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1187:16: throw: if 'sudo_rcstr_dup' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1187:16: danger: 'us' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
sudo-1.9.17p2/plugins/sudoers/ldap.c:1385:5: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/sudoers/ldap.c:1381:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1382:8: branch_true: following 'true' branch (when 'result' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1383:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1385:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1385:5: danger: 'result' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:337:19: warning[-Wanalyzer-malloc-leak]: leak of 'result'
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:326:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:331:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:333:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:334:12: branch_false: following 'false' branch (when 'result' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:337:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:337:19: throw: if 'base64_decode' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:337:19: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def303]
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(path, "r")'
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:358:15: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:358:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: danger: 'fopen(path, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(path, "r")'
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:358:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:358:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:359:15: danger: 'fopen(path, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:12: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*ctx.settings.ldap_conf, "r")'
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:564:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:569:15: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:569:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:569:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:12: throw: if 'sudo_parseln_v2' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:12: danger: 'fopen(*ctx.settings.ldap_conf, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:12: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*ctx.settings.ldap_conf, "r")'
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:564:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:569:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:569:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:569:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:12: throw: if 'sudo_parseln_v2' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:572:12: danger: 'fopen(*ctx.settings.ldap_conf, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:54:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:54:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:208:1: enter_function: entry to 'host_to_member'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: call_function: calling 'sudo_ldap_is_negated' from 'host_to_member'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:54:5: warning[-Wanalyzer-malloc-leak]: leak of 'members'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:121:1: enter_function: entry to 'array_to_member_list'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: call_function: calling 'sudo_ldap_is_negated' from 'array_to_member_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:54:5: warning[-Wanalyzer-malloc-leak]: leak of 'negated_members.tqh_first'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:121:1: enter_function: entry to 'array_to_member_list'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: call_function: calling 'sudo_ldap_is_negated' from 'array_to_member_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:54:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:208:1: enter_function: entry to 'host_to_member'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: call_function: calling 'sudo_ldap_is_negated' from 'host_to_member'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'members'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:121:1: enter_function: entry to 'array_to_member_list'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: call_function: calling 'sudo_ldap_is_negated' from 'array_to_member_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'negated_members.tqh_first'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:121:1: enter_function: entry to 'array_to_member_list'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: call_function: calling 'sudo_ldap_is_negated' from 'array_to_member_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:82:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cp'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:80:8: branch_true: following 'true' branch (when 'optstr < cp')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:81:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:82:14: danger: dereference of NULL 'cp'
Error: CPPCHECK_WARNING (CWE-457): [#def318]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:124: error[legacyUninitvar]: Uninitialized variable: negated_members
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: danger: 'm' leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: warning[-Wanalyzer-malloc-leak]: leak of 'members'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:19: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: danger: 'm' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of 'members'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:173:5: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:174:5: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_true: following 'true' branch (when 'm' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:136:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: throw: if 'free_members' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: warning[-Wanalyzer-malloc-leak]: leak of 'members'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: throw: if 'free_members' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: warning[-Wanalyzer-malloc-leak]: leak of 'negated_members.tqh_first'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:137:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:160:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:28: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:161:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:166:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:167:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:12: branch_true: following 'true' branch (when 'm' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:136:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: throw: if 'free_members' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:176:5: danger: 'negated_members.tqh_first' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:177:5: warning[-Wanalyzer-malloc-leak]: leak of 'members'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:130:8: branch_false: following 'false' branch (when 'members' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:132:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:134:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:135:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:177:5: throw: if 'free_members' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:177:5: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:188:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:188:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:208:1: enter_function: entry to 'host_to_member'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:227:13: call_function: calling 'is_address' from 'host_to_member'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:188:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:204:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:204:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:208:1: enter_function: entry to 'host_to_member'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:227:13: call_function: calling 'is_address' from 'host_to_member'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:204:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:211:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:211:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:386:22: call_function: calling 'host_to_member' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:234:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:235:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:235:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:235:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:213:8: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:215:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:234:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:239:5: danger: 'm' leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:300:25: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:263:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:276:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:284:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:285:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:292:35: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:292:24: branch_false: following 'false' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:297:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:300:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:300:25: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:300:25: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:305:28: warning[-Wanalyzer-malloc-leak]: leak of 'strndup(cp, (long unsigned int)(ep - cp))'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:263:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:276:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:284:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:285:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:292:24: branch_false: following 'false' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:297:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:298:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: throw: if 'digest_type_to_name' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:305:28: danger: 'strndup(cp, (long unsigned int)(ep - cp))' leaks here; was allocated at [(9)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:263:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:276:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:284:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:285:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:292:24: branch_false: following 'false' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:297:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:298:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: warning[-Wanalyzer-malloc-leak]: leak of 'digest'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:263:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:276:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:284:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:285:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:292:35: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:292:24: branch_false: following 'false' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:297:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:299:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: throw: if 'digest_type_to_name' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-457): [#def343]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:360: error[legacyUninitvar]: Uninitialized variable: negated_cmnds
Error: CPPCHECK_WARNING (CWE-457): [#def344]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:361: error[legacyUninitvar]: Uninitialized variable: negated_hosts
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: call_function: calling 'sudo_ldap_is_negated' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_is_negated'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:424:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_true: following 'true' branch (when 'notbefore' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: danger: '<unknown>' leaks here; was allocated at [(4)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: warning[-Wanalyzer-malloc-leak]: leak of 'c'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_true: following 'true' branch (when 'notbefore' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: danger: 'c' leaks here; was allocated at [(21)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_true: following 'true' branch (when 'notbefore' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: danger: 'cmndspec' leaks here; was allocated at [(17)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_true: following 'true' branch (when 'notbefore' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: danger: 'm' leaks here; was allocated at [(19)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: call_function: calling 'sudo_ldap_is_negated' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_is_negated'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:424:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_true: following 'true' branch (when 'notbefore' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:469:39: danger: 'priv' leaks here; was allocated at [(2)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: warning[-Wanalyzer-malloc-leak]: leak of 'c'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_true: following 'true' branch (when 'notafter' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: danger: 'c' leaks here; was allocated at [(21)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_true: following 'true' branch (when 'notafter' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: danger: 'cmndspec' leaks here; was allocated at [(17)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_true: following 'true' branch (when 'notafter' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: throw: if 'parse_gentime' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: danger: 'm' leaks here; was allocated at [(19)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: warning[-Wanalyzer-malloc-leak]: leak of 'c'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: following 'false' branch (when 'notafter' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: following 'true' branch (when 'store_options != 0')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:479:68: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: throw: if 'sudo_rcstr_alloc' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: danger: 'c' leaks here; was allocated at [(21)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: following 'false' branch (when 'notafter' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: following 'true' branch (when 'store_options != 0')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:479:68: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: throw: if 'sudo_rcstr_alloc' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: danger: 'cmndspec' leaks here; was allocated at [(17)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: following 'false' branch (when 'notafter' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: following 'true' branch (when 'store_options != 0')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:479:68: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: throw: if 'sudo_rcstr_alloc' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: danger: 'm' leaks here; was allocated at [(19)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: warning[-Wanalyzer-malloc-leak]: leak of 'c'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: following 'false' branch (when 'notafter' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_false: following 'false' branch (when 'store_options == 0')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'c' leaks here; was allocated at [(21)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: following 'false' branch (when 'notafter' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_false: following 'false' branch (when 'store_options == 0')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'cmndspec' leaks here; was allocated at [(17)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:382:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:401:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:406:12: branch_false: following 'false' branch (when 'cmndspec' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:408:12: branch_false: following 'false' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:412:12: branch_false: following 'false' branch (when 'c' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:417:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:421:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:422:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:433:12: branch_false: following 'false' branch (when 'prev_cmndspec' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:452:16: branch_false: following 'false' branch (when 'runasusers' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:460:16: branch_false: following 'false' branch (when 'runasgroups' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:468:16: branch_false: following 'false' branch (when 'notbefore' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:470:16: branch_false: following 'false' branch (when 'notafter' is NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:474:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_false: following 'false' branch (when 'store_options == 0')...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:477:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'm' leaks here; was allocated at [(19)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:610:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:610:5: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:394:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:610:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:610:5: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:612:5: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:615:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:381:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:615:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:615:5: danger: '<unknown>' leaks here; was allocated at [(4)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:615:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:376:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:615:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:615:5: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: return_function: returning to 'sudo_ldap_role_to_priv' from 'sudo_ldap_new_member_all'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:381:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:617:8: branch_true: following 'true' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:618:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:618:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:619:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:619:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: throw: if 'free_privilege' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: danger: '<unknown>' leaks here; was allocated at [(4)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:376:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:617:8: branch_true: following 'true' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:618:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:618:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:619:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:619:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: throw: if 'free_privilege' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:620:9: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:630:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:630:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:634:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:374:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:634:5: warning[-Wanalyzer-malloc-leak]: leak of 'm'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:632:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:632:8: branch_true: following 'true' branch (when 'm' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:633:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:634:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:634:5: danger: 'm' leaks here; was allocated at [(1)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:634:5: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:355:1: enter_function: entry to 'sudo_ldap_role_to_priv'
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:368:8: branch_false: following 'false' branch (when 'priv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:370:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:375:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:378:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:380:18: call_function: calling 'sudo_ldap_new_member_all' from 'sudo_ldap_role_to_priv'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def374]
sudo-1.9.17p2/plugins/sudoers/log_client.c:475:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sock'
sudo-1.9.17p2/plugins/sudoers/log_client.c:461:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:467:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:467:22: branch_true: following 'true' branch (when 'res' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:470:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:470:16: acquire_resource: socket created here
sudo-1.9.17p2/plugins/sudoers/log_client.c:471:12: branch_false: following 'false' branch (when 'sock != -1')...
sudo-1.9.17p2/plugins/sudoers/log_client.c:475:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:475:17: throw: if 'fcntl' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:475:17: danger: 'sock' leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
sudo-1.9.17p2/plugins/sudoers/log_client.c:609:14: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
sudo-1.9.17p2/plugins/sudoers/log_client.c:605:5: branch_true: following 'true' branch (when 'server' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:606:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:607:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:607:12: branch_false: following 'false' branch (when 'copy' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:609:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:609:14: throw: if 'iolog_parse_host_port' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:609:14: danger: 'copy' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
sudo-1.9.17p2/plugins/sudoers/log_client.c:654:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1981:1: enter_function: entry to 'client_closure_alloc'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_true: following 'true' branch (when 'start_time' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2003:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2011:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2016:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2026:5: call_function: calling 'client_closure_free' from 'client_closure_alloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
sudo-1.9.17p2/plugins/sudoers/log_client.c:654:5: warning[-Wanalyzer-malloc-leak]: leak of 'closure'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1981:1: enter_function: entry to 'client_closure_alloc'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_true: following 'true' branch (when 'start_time' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2003:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2016:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2026:5: call_function: calling 'client_closure_free' from 'client_closure_alloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
sudo-1.9.17p2/plugins/sudoers/log_client.c:666:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1981:1: enter_function: entry to 'client_closure_alloc'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_true: following 'true' branch (when 'start_time' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2003:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2011:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2016:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2026:5: call_function: calling 'client_closure_free' from 'client_closure_alloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
sudo-1.9.17p2/plugins/sudoers/log_client.c:666:5: warning[-Wanalyzer-malloc-leak]: leak of 'closure'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1981:1: enter_function: entry to 'client_closure_alloc'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_true: following 'true' branch (when 'start_time' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2003:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2016:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2026:5: call_function: calling 'client_closure_free' from 'client_closure_alloc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
sudo-1.9.17p2/plugins/sudoers/log_client.c:708:5: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
sudo-1.9.17p2/plugins/sudoers/log_client.c:703:8: branch_false: following 'false' branch (when 'buf' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:706:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:706:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:708:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:708:5: danger: 'buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
sudo-1.9.17p2/plugins/sudoers/log_client.c:839:9: warning[-Wanalyzer-malloc-leak]: leak of 'submitenv'
sudo-1.9.17p2/plugins/sudoers/log_client.c:836:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:837:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:837:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:837:12: branch_false: following 'false' branch (when 'submitenv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:839:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:839:9: throw: if 'info_message__string_list__init' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:839:9: danger: 'submitenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
sudo-1.9.17p2/plugins/sudoers/log_client.c:848:9: warning[-Wanalyzer-malloc-leak]: leak of 'runargv'
sudo-1.9.17p2/plugins/sudoers/log_client.c:836:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:846:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:846:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:846:12: branch_false: following 'false' branch (when 'runargv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:848:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:848:9: throw: if 'info_message__string_list__init' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:848:9: danger: 'runargv' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
sudo-1.9.17p2/plugins/sudoers/log_client.c:857:9: warning[-Wanalyzer-malloc-leak]: leak of 'runenv'
sudo-1.9.17p2/plugins/sudoers/log_client.c:836:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:854:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:854:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:855:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:855:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:855:12: branch_false: following 'false' branch (when 'runenv' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:857:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:857:9: throw: if 'info_message__string_list__init' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:857:9: danger: 'runenv' leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:836:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:854:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:854:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:865:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:866:8: branch_false: following 'false' branch (when 'info_msgs' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:866:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:868:17: branch_true: following 'true' branch (when 'n != 24')...
sudo-1.9.17p2/plugins/sudoers/log_client.c:869:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:869:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:870:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: throw: if 'info_message__init' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: warning[-Wanalyzer-malloc-leak]: leak of 'info_msgs'
sudo-1.9.17p2/plugins/sudoers/log_client.c:836:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:845:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:854:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:854:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:865:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:865:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:866:8: branch_false: following 'false' branch (when 'info_msgs' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:866:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:868:17: branch_true: following 'true' branch (when 'n != 24')...
sudo-1.9.17p2/plugins/sudoers/log_client.c:869:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:870:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: throw: if 'info_message__init' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:872:9: danger: 'info_msgs' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_false: following 'false' branch (when 'start_time' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2007:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2011:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: warning[-Wanalyzer-malloc-leak]: leak of 'closure'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_false: following 'false' branch (when 'start_time' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2007:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: danger: 'closure' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_false: following 'false' branch (when 'start_time' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2007:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2011:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: warning[-Wanalyzer-malloc-leak]: leak of 'closure'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_false: following 'false' branch (when 'start_time' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2007:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: danger: 'closure' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2023:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_false: following 'false' branch (when 'start_time' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2007:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2011:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2021:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2023:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2023:5: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2023:5: warning[-Wanalyzer-malloc-leak]: leak of 'closure'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_false: following 'false' branch (when 'start_time' is NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2007:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:30: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2018:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2021:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2023:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2023:5: danger: 'closure' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2025:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_true: following 'true' branch (when 'start_time' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2003:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2011:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:29: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2015:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2016:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2025:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2025:5: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
sudo-1.9.17p2/plugins/sudoers/log_client.c:2025:5: warning[-Wanalyzer-malloc-leak]: leak of 'closure'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1987:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/log_client.c:1993:8: branch_false: following 'false' branch (when 'closure' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:1996:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2002:8: branch_true: following 'true' branch (when 'start_time' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2003:38: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2012:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2013:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/log_client.c:2025:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2025:5: danger: 'closure' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
sudo-1.9.17p2/plugins/sudoers/logging.c:691:5: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def395]
sudo-1.9.17p2/plugins/sudoers/logging.c:691:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
sudo-1.9.17p2/plugins/sudoers/logging.c:695:9: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def397]
sudo-1.9.17p2/plugins/sudoers/logging.c:695:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def398]
sudo-1.9.17p2/plugins/sudoers/logging.c:698:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def399]
sudo-1.9.17p2/plugins/sudoers/logging.c:715:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:834:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def400]
sudo-1.9.17p2/plugins/sudoers/logging.c:720:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:718:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:719:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:719:9: acquire_resource: 'va_copy' called here
sudo-1.9.17p2/plugins/sudoers/logging.c:720:9: throw: if 'vaudit_failure' throws an exception...
sudo-1.9.17p2/plugins/sudoers/logging.c:720:9: danger: missing call to 'va_end' to match 'va_copy' at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def401]
sudo-1.9.17p2/plugins/sudoers/logging.c:728:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:725:5: acquire_resource: 'va_copy' called here
sudo-1.9.17p2/plugins/sudoers/logging.c:728:5: throw: if 'sudoers_setlocale' throws an exception...
sudo-1.9.17p2/plugins/sudoers/logging.c:728:5: danger: missing call to 'va_end' to match 'va_copy' at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def402]
sudo-1.9.17p2/plugins/sudoers/logging.c:733:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def403]
sudo-1.9.17p2/plugins/sudoers/logging.c:745:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def404]
sudo-1.9.17p2/plugins/sudoers/logging.c:748:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def405]
sudo-1.9.17p2/plugins/sudoers/logging.c:791:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def406]
sudo-1.9.17p2/plugins/sudoers/logging.c:798:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:826:1: enter_function: entry to 'log_warningx'
sudo-1.9.17p2/plugins/sudoers/logging.c:835:11: call_function: calling 'vlog_warning' from 'log_warningx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def407]
sudo-1.9.17p2/plugins/sudoers/logging.c:994:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:918:1: enter_function: entry to 'log_parse_error'
sudo-1.9.17p2/plugins/sudoers/logging.c:939:8: branch_true: following 'true' branch (when 'line > 0')...
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: call_function: calling 'log_warningx' from 'log_parse_error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def408]
sudo-1.9.17p2/plugins/sudoers/logging.c:997:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:918:1: enter_function: entry to 'log_parse_error'
sudo-1.9.17p2/plugins/sudoers/logging.c:939:8: branch_true: following 'true' branch (when 'line > 0')...
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: call_function: calling 'log_warningx' from 'log_parse_error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def409]
sudo-1.9.17p2/plugins/sudoers/logging.c:998:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:918:1: enter_function: entry to 'log_parse_error'
sudo-1.9.17p2/plugins/sudoers/logging.c:939:8: branch_true: following 'true' branch (when 'line > 0')...
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: call_function: calling 'log_warningx' from 'log_parse_error'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def410]
sudo-1.9.17p2/plugins/sudoers/logging.c:1026:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:918:1: enter_function: entry to 'log_parse_error'
sudo-1.9.17p2/plugins/sudoers/logging.c:939:8: branch_true: following 'true' branch (when 'line > 0')...
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:940:15: call_function: calling 'log_warningx' from 'log_parse_error'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
sudo-1.9.17p2/plugins/sudoers/logging.c:1109:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/logging.c:1094:16: branch_false: following 'false' branch (when 'fd != -1')...
sudo-1.9.17p2/plugins/sudoers/logging.c:1094:35: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:1094:35: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/logging.c:1094:17: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/logging.c:1109:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:1109:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/logging.c:1109:5: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-457): [#def412]
sudo-1.9.17p2/plugins/sudoers/match.c:310: error[legacyUninitvar]: Uninitialized variable: _user_list
Error: CPPCHECK_WARNING (CWE-457): [#def413]
sudo-1.9.17p2/plugins/sudoers/match.c:320: error[uninitvar]: Uninitialized variable: &m_user.entries
Error: GCC_ANALYZER_WARNING (CWE-457): [#def414]
sudo-1.9.17p2/plugins/sudoers/match_command.c:927:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'saved_user_stat.st_dev'
sudo-1.9.17p2/plugins/sudoers/match_command.c:836:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_command.c:844:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:844:15: branch_false: following 'false' branch (when 'runchroot' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_command.c:853:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:855:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_command.c:857:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:858:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_command.c:862:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:862:12: branch_false: following 'false' branch (when 'info' is NULL)...
sudo-1.9.17p2/plugins/sudoers/match_command.c:866:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:866:8: branch_false: following 'false' branch (when 'sudoers_cmnd' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_command.c:873:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:873:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_command.c:880:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:880:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/match_command.c:887:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:916:8: branch_true: following 'true' branch (when 'saved_user_cmnd' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_command.c:917:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:917:12: branch_false: following 'false' branch (when 'info' is NULL)...
sudo-1.9.17p2/plugins/sudoers/match_command.c:923:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:926:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/match_command.c:927:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_command.c:927:13: danger: use of uninitialized value 'saved_user_stat.st_dev' here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
sudo-1.9.17p2/plugins/sudoers/match_digest.c:108:31: warning[-Wanalyzer-malloc-leak]: leak of 'sudoers_digest'
sudo-1.9.17p2/plugins/sudoers/match_digest.c:56:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:61:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:82:5: branch_true: following 'true' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:85:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:94:12: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:12: branch_false: following 'false' branch (when 'sudoers_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:104:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:108:31: throw: if 'sudo_hexchar_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:108:31: danger: 'sudoers_digest' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
sudo-1.9.17p2/plugins/sudoers/match_digest.c:115:26: warning[-Wanalyzer-malloc-leak]: leak of 'sudoers_digest'
sudo-1.9.17p2/plugins/sudoers/match_digest.c:56:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:61:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:82:5: branch_true: following 'true' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:85:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:94:12: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:12: branch_false: following 'false' branch (when 'sudoers_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:104:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:115:26: throw: if 'base64_decode' throws an exception...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:115:26: danger: 'sudoers_digest' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
sudo-1.9.17p2/plugins/sudoers/match_digest.c:130:9: warning[-Wanalyzer-malloc-leak]: leak of 'sudoers_digest'
sudo-1.9.17p2/plugins/sudoers/match_digest.c:56:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:61:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:82:5: branch_true: following 'true' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:85:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:94:12: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:12: branch_false: following 'false' branch (when 'sudoers_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:104:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:107:25: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:125:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:125:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:130:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:130:9: throw: if 'digest_type_to_name' throws an exception...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:130:9: danger: 'sudoers_digest' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
sudo-1.9.17p2/plugins/sudoers/match_digest.c:139:5: warning[-Wanalyzer-malloc-leak]: leak of 'sudoers_digest'
sudo-1.9.17p2/plugins/sudoers/match_digest.c:56:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:61:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:82:5: branch_true: following 'true' branch (when 'digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:84:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:85:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:94:12: branch_false: following 'false' branch (when 'file_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:31: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:100:12: branch_false: following 'false' branch (when 'sudoers_digest' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:104:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/match_digest.c:139:5: throw: if 'digest_type_to_name' throws an exception...
sudo-1.9.17p2/plugins/sudoers/match_digest.c:139:5: danger: 'sudoers_digest' leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:58:5: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:64:9: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:66:9: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:67:9: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:69:9: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:77:1: enter_function: entry to ‘sudo_role_alloc’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: call_function: calling ‘sudo_role_free’ from ‘sudo_role_alloc’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: throw: if ‘str_list_alloc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:85:23: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:85:23: throw: if ‘str_list_alloc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:85:23: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:86:23: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:86:23: throw: if ‘str_list_alloc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:86:23: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:87:28: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:87:28: throw: if ‘str_list_alloc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:87:28: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:88:29: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:88:29: throw: if ‘str_list_alloc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:88:29: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:89:25: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:89:25: throw: if ‘str_list_alloc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:89:25: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:98:5: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:82:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:83:8: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:84:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:90:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:90:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:92:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:90:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:90:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:90:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:98:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:98:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:98:5: danger: ‘role’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:155:15: warning[-Wanalyzer-malloc-leak]: leak of ‘copy’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:115:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:117:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:121:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:123:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:145:8: branch_true: following ‘true’ branch (when ‘encoded != 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:150:22: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:150:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:151:12: branch_false: following ‘false’ branch (when ‘copy’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:155:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:155:15: throw: if ‘base64_decode’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:155:15: danger: ‘copy’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:5: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:255:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:17: throw: if ‘sudo_ldap_parse_option’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:17: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:17: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:5: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:255:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:17: throw: if ‘sudo_ldap_parse_option’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:258:17: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:5: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:255:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:259:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:5: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:255:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:259:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:260:13: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:5: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:255:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:259:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:263:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:263:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:264:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:264:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:249:5: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:251:27: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:250:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:255:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:259:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:263:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:263:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:264:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:264:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:265:17: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_true: following ‘true’ branch (when ‘m’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_true: following ‘true’ branch (when ‘m’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:352:17: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: throw: if ‘sudo_ldap_is_negated’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: throw: if ‘sudo_ldap_is_negated’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: throw: if ‘sudo_ldap_is_negated’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:379:21: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:16: branch_true: following ‘true’ branch (when ‘comment’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:16: branch_true: following ‘true’ branch (when ‘comment’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:16: branch_true: following ‘true’ branch (when ‘comment’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:408:17: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:16: branch_false: following ‘false’ branch (when ‘comment’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:411:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:411:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/94/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:16: branch_false: following ‘false’ branch (when ‘comment’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:411:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:411:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:390:12: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:407:16: branch_false: following ‘false’ branch (when ‘comment’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:411:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:411:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:412:17: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/92/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:423:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: throw: if ‘sudo_ldap_role_to_priv’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/111/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:423:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: throw: if ‘sudo_ldap_role_to_priv’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/112/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:423:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: throw: if ‘sudo_ldap_role_to_priv’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:420:12: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/110/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:423:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:425:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/115/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_true: following ‘true’ branch (when ‘ls’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:349:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:22: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:351:16: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:355:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:377:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:378:20: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:383:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:423:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:425:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/116/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: warning[-Wanalyzer-malloc-leak]: leak of ‘us’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:335:8: branch_false: following ‘false’ branch (when ‘reuse_userspec == 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:340:12: branch_false: following ‘false’ branch (when ‘us’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:344:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:348:9: branch_false: following ‘false’ branch (when ‘ls’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:388:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:423:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:425:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:426:9: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/113/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:492:5: warning[-Wanalyzer-malloc-leak]: leak of ‘role_array’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:482:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:483:8: branch_false: following ‘false’ branch (when ‘role_array’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:483:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:492:5: throw: if ‘qsort’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:492:5: danger: ‘role_array’ leaks here; was allocated at [(1)](sarif:/runs/0/results/131/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:561:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:551:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:551:8: branch_false: following ‘false’ branch (when ‘new_cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:551:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:554:24: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:559:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:561:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:561:5: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/132/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:561:5: warning[-Wanalyzer-malloc-leak]: leak of ‘new_cn’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:551:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:551:8: branch_false: following ‘false’ branch (when ‘new_cn’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:551:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:554:24: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:555:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:561:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:561:5: danger: ‘new_cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/133/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def463]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:573: error[legacyUninitvar]: Uninitialized variable: roles
Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:667:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:594:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:607:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:643:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:643:12: branch_false: following ‘false’ branch (when ‘savedline’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:659:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:659:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:661:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:607:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:643:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:648:16: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:652:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:659:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:667:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:667:9: throw: if ‘ungetc’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:667:9: danger: ‘line’ leaks here; was allocated at [(11)](sarif:/runs/0/results/134/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def465]
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:37:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:70:1: enter_function: entry to 'parser_warnx'
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:77:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:78:11: call_function: calling 'parser_vwarnx' from 'parser_warnx'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def466]
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:43:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:39:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:42:9: acquire_resource: 'va_copy' called here
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:43:15: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:43:15: 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): [#def467]
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:51:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:70:1: enter_function: entry to 'parser_warnx'
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:77:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/parser_warnx.c:78:11: call_function: calling 'parser_vwarnx' from 'parser_warnx'
Error: CPPCHECK_WARNING (CWE-457): [#def468]
sudo-1.9.17p2/plugins/sudoers/policy.c:1106: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
sudo-1.9.17p2/plugins/sudoers/pwutil.c:738:17: warning[-Wanalyzer-malloc-leak]: leak of 'gritem'
sudo-1.9.17p2/plugins/sudoers/pwutil.c:678:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/pwutil.c:693:17: branch_true: following 'true' branch (when 'i != 2')...
sudo-1.9.17p2/plugins/sudoers/pwutil.c:702:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil.c:702:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/pwutil.c:703:12: branch_false: following 'false' branch (when 'gritem' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/pwutil.c:707:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil.c:714:24: branch_false: following 'false' branch (when 'mem' is NULL)...
sudo-1.9.17p2/plugins/sudoers/pwutil.c:720:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil.c:728:12: branch_true: following 'true' branch (when 'i == 0')...
sudo-1.9.17p2/plugins/sudoers/pwutil.c:730:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil.c:738:17: throw: if 'rbinsert' throws an exception...
sudo-1.9.17p2/plugins/sudoers/pwutil.c:738:17: danger: 'gritem' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: warning[-Wanalyzer-malloc-leak]: leak of 'gids'
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:286:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:287:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:287:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:288:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: throw: if 'sudo_getgrouplist2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: danger: 'gids' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: warning[-Wanalyzer-malloc-leak]: leak of ‘gids’
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:286:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:287:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:287:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:288:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:52: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: throw: if ‘testsudoers_getgrouplist2’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:294:17: danger: ‘gids’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:348:5: warning[-Wanalyzer-malloc-leak]: leak of 'glitem'
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:298:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:305:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:305:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:312:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:316:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:316:8: branch_false: following 'false' branch (when 'glitem' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:328:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:348:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:348:5: danger: 'glitem' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:348:5: warning[-Wanalyzer-malloc-leak]: leak of ‘glitem’
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:298:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:305:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:305:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:312:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:316:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:316:8: branch_false: following ‘false’ branch (when ‘glitem’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:328:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:348:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/pwutil_impl.c:348:5: danger: ‘glitem’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
sudo-1.9.17p2/plugins/sudoers/redblack.c:116:5: warning[-Wanalyzer-malloc-leak]: leak of 'tree'
sudo-1.9.17p2/plugins/sudoers/redblack.c:92:17: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/redblack.c:92:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/redblack.c:98:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/redblack.c:116:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/redblack.c:116:5: danger: 'tree' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
sudo-1.9.17p2/plugins/sudoers/redblack.c:204:35: warning[-Wanalyzer-malloc-leak]: leak of 'node'
sudo-1.9.17p2/plugins/sudoers/redblack.c:187:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/redblack.c:192:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/redblack.c:195:12: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/redblack.c:196:8: branch_false: following 'false' branch (when 'node' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/redblack.c:201:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/redblack.c:204:8: branch_false: following 'false' branch (when 'parent != parent')...
sudo-1.9.17p2/plugins/sudoers/redblack.c:204:35: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/redblack.c:204:35: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/redblack.c:204:35: danger: 'node' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
sudo-1.9.17p2/plugins/sudoers/sssd.c:102:5: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:555:1: enter_function: entry to 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: call_function: calling 'get_ipa_hostname' from 'sudo_sss_open'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def477]
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/etc/sssd/sssd.conf", "r")'
sudo-1.9.17p2/plugins/sudoers/sssd.c:104:10: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: danger: 'fopen("/etc/sssd/sssd.conf", "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/etc/sssd/sssd.conf", "r")'
sudo-1.9.17p2/plugins/sudoers/sssd.c:104:10: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: throw: if 'getdelim' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: danger: 'fopen("/etc/sssd/sssd.conf", "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:23: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:555:1: enter_function: entry to 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: call_function: calling 'get_ipa_hostname' from 'sudo_sss_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:555:1: enter_function: entry to 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: call_function: calling 'get_ipa_hostname' from 'sudo_sss_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: warning[-Wanalyzer-malloc-leak]: leak of 'lhost'
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:107:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:131:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:20: branch_true: following 'true' branch (when 'lhost' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:21: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:133:52: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:137:20: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: danger: 'lhost' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: warning[-Wanalyzer-malloc-leak]: leak of 'shost'
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:107:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:131:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:20: branch_true: following 'true' branch (when 'lhost' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:21: branch_false: following 'false' branch (when 'cp' is NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:137:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:137:20: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:138:21: danger: 'shost' leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
sudo-1.9.17p2/plugins/sudoers/sssd.c:144:21: warning[-Wanalyzer-malloc-leak]: leak of 'lhost'
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:105:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:106:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:107:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:131:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:20: branch_true: following 'true' branch (when 'lhost' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:44: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:132:21: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:133:52: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:137:20: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:144:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:144:21: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:144:21: danger: 'lhost' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
sudo-1.9.17p2/plugins/sudoers/sssd.c:156:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/sssd.c:555:1: enter_function: entry to 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: call_function: calling 'get_ipa_hostname' from 'sudo_sss_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
sudo-1.9.17p2/plugins/sudoers/sssd.c:156:5: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:555:1: enter_function: entry to 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: call_function: calling 'get_ipa_hostname' from 'sudo_sss_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
sudo-1.9.17p2/plugins/sudoers/sssd.c:374:16: warning[-Wanalyzer-malloc-leak]: leak of 'us'
sudo-1.9.17p2/plugins/sudoers/sssd.c:372:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:372:8: branch_false: following 'false' branch (when 'us' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:374:16: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:374:16: throw: if 'sudo_rcstr_dup' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:374:16: danger: 'us' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: throw: if 'sudo_dso_load_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
sudo-1.9.17p2/plugins/sudoers/sssd.c:577:30: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:577:30: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:577:30: throw: if 'sudo_dso_strerror_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:577:30: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
sudo-1.9.17p2/plugins/sudoers/sssd.c:578:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:577:30: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:578:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:578:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
sudo-1.9.17p2/plugins/sudoers/sssd.c:580:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:577:30: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:580:9: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:580:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: throw: if 'sudo_dso_findsym_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
sudo-1.9.17p2/plugins/sudoers/sssd.c:589:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:589:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:589:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:589:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: throw: if 'sudo_dso_findsym_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
sudo-1.9.17p2/plugins/sudoers/sssd.c:598:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:598:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:598:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:598:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: throw: if 'sudo_dso_findsym_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
sudo-1.9.17p2/plugins/sudoers/sssd.c:607:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:607:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:607:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:607:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: throw: if 'sudo_dso_findsym_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
sudo-1.9.17p2/plugins/sudoers/sssd.c:616:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:616:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:616:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:616:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: throw: if 'sudo_dso_findsym_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
sudo-1.9.17p2/plugins/sudoers/sssd.c:625:9: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:625:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:625:9: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:625:9: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/sssd.c:555:1: enter_function: entry to 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: call_function: calling 'get_ipa_hostname' from 'sudo_sss_open'
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:13: return_function: returning to 'sudo_sss_open' from 'get_ipa_hostname'
sudo-1.9.17p2/plugins/sudoers/sssd.c:636:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: throw: if 'init_parse_tree' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: warning[-Wanalyzer-malloc-leak]: leak of 'handle'
sudo-1.9.17p2/plugins/sudoers/sssd.c:568:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sssd.c:569:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sssd.c:575:22: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:576:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:587:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:588:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:596:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:597:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:605:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:606:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:614:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:615:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:623:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:624:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sssd.c:635:37: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: throw: if 'init_parse_tree' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sssd.c:643:5: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/strlist.c:41:8: branch_true: following 'true' branch (when 'cs' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/strlist.c:42:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/strlist.c:42:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/strlist.c:42:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: warning[-Wanalyzer-malloc-leak]: leak of 'cs'
sudo-1.9.17p2/plugins/sudoers/strlist.c:41:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/strlist.c:41:8: branch_true: following 'true' branch (when 'cs' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/strlist.c:42:24: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/strlist.c:42:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/strlist.c:48:5: danger: 'cs' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
sudo-1.9.17p2/plugins/sudoers/strlist.c:72:5: warning[-Wanalyzer-malloc-leak]: leak of 'strlist'
sudo-1.9.17p2/plugins/sudoers/strlist.c:66:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/strlist.c:67:8: branch_true: following 'true' branch (when 'strlist' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/strlist.c:68:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/strlist.c:72:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/strlist.c:72:5: danger: 'strlist' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:60:13: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:52:8: branch_false: following 'false' branch (when 'size != 0')...
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:52:32: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:52:32: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:52:9: branch_false: following 'false' branch (when 'result' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:57:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:59:35: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:60:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:60:13: throw: if the called function throws an exception...
sudo-1.9.17p2/plugins/sudoers/strvec_join.c:60:13: danger: 'dst' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def507]
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:77:12: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/etc/nsswitch.conf", "r")'
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:74:15: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:74:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:74:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:77:12: throw: if 'sudo_parseln_v2' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:77:12: danger: 'fopen("/etc/nsswitch.conf", "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:77:12: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/etc/nsswitch.conf", "r")'
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:74:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:74:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:74:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:77:12: throw: if 'sudo_parseln_v2' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudo_nss.c:77:12: danger: 'fopen("/etc/nsswitch.conf", "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:36: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:36: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:36: throw: if 'fgetc' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:36: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1312:17: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1312:17: throw: if 'log_warning' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1312:17: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1318:17: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1318:17: throw: if 'rewind' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1318:17: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1319:23: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1319:23: throw: if 'fcntl' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1319:23: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1321:32: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1320:20: branch_true: following 'true' branch (when 'outfile' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1321:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1321:32: throw: if 'sudo_rcstr_dup' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1321:32: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1323:25: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1320:20: branch_true: following 'true' branch (when 'outfile' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1321:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1322:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1323:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1323:25: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1323:25: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1362:5: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1292:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1306:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1311:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1359:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1362:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1362:5: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1362:5: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def516]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1520:9: warning[-Wanalyzer-double-free]: double-'free' of '*def.var'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1518:12: branch_true: following 'true' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1520:9: release_memory: first 'free' here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1518:12: branch_true: following 'true' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1520:9: danger: second 'free' here; first 'free' was at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def517]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1520:14: warning[-Wanalyzer-use-after-free]: use after 'free' of 'def'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1518:12: branch_true: following 'true' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1522:9: release_memory: freed here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1518:12: branch_true: following 'true' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1520:14: danger: use after 'free' of 'def'; freed at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def518]
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1521:9: warning[-Wanalyzer-double-free]: double-'free' of '*def.val'
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1518:12: branch_true: following 'true' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1521:9: release_memory: first 'free' here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1518:12: branch_true: following 'true' branch (when 'def' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1519:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers.c:1521:9: danger: second 'free' here; first 'free' was at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:93:5: warning[-Wanalyzer-malloc-leak]: leak of 'lhost'
sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:101:1: enter_function: entry to 'cb_fqdn'
sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:117:9: call_function: calling 'resolve_host' from 'cb_fqdn'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:93:5: warning[-Wanalyzer-malloc-leak]: leak of 'shost'
sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:101:1: enter_function: entry to 'cb_fqdn'
sudo-1.9.17p2/plugins/sudoers/sudoers_cb.c:117:9: call_function: calling 'resolve_host' from 'cb_fqdn'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:71:6: warning[-Wanalyzer-malloc-leak]: leak of 'ep'
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:50:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:67:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:67:8: branch_false: following 'false' branch (when 'ep' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:67:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:69:20: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:71:6: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:72:8: branch_false: following 'false' branch (when 'val' is NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:76:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:78:11: throw: if 'sudo_putenv_nodebug' throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:71:6: danger: 'ep' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-704): [#def522]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c: scope_hint: In function ‘main’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:323:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def523]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:323:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1199:5: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1219:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1249:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1290:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1292:22: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1297:39: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1300:21: warning[-Wanalyzer-malloc-leak]: leak of ‘sn’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1575:1: enter_function: entry to ‘list_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1583:5: call_function: calling ‘parse_expr’ from ‘list_sessions’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1478:1: enter_function: entry to ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1497:9: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1498:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1502:13: call_function: inlined call to ‘strlcpy’ from ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:9: danger: ‘opendir(dir)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:18: warning[-Wanalyzer-malloc-leak]: leak of ‘sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1478:1: enter_function: entry to ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1498:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1502:13: call_function: inlined call to ‘strlcpy’ from ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1507:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1513:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1517:12: branch_true: following ‘true’ branch (when ‘checked_type != 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1518:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1528:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: following ‘true’ branch (when ‘sessions_size == 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1531:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1532:16: branch_false: following ‘false’ branch (when ‘sessions’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1534:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:18: throw: if ‘readdir’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:18: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1537:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1478:1: enter_function: entry to ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1498:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1502:13: call_function: inlined call to ‘strlcpy’ from ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1507:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1513:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1517:12: branch_true: following ‘true’ branch (when ‘checked_type != 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1518:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1528:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: following ‘true’ branch (when ‘sessions_size == 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1531:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1532:16: branch_false: following ‘false’ branch (when ‘sessions’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1534:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1537:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1537:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1537:13: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1540:5: warning[-Wanalyzer-malloc-leak]: leak of ‘sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1478:1: enter_function: entry to ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1498:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1502:13: call_function: inlined call to ‘strlcpy’ from ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1507:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1513:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1517:12: branch_true: following ‘true’ branch (when ‘checked_type != 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1518:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1528:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: following ‘true’ branch (when ‘sessions_size == 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1531:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1532:16: branch_false: following ‘false’ branch (when ‘sessions’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1534:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1540:5: throw: if ‘closedir’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1540:5: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1544:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1478:1: enter_function: entry to ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1498:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1502:13: call_function: inlined call to ‘strlcpy’ from ‘find_sessions’
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1507:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1513:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1517:12: branch_true: following ‘true’ branch (when ‘checked_type != 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1518:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1528:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: following ‘true’ branch (when ‘sessions_size == 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1529:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1531:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1532:16: branch_false: following ‘false’ branch (when ‘sessions’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1534:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1543:8: branch_true: following ‘true’ branch (when ‘sessions’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1544:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1544:9: throw: if ‘qsort’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1544:9: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-457): [#def536]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:95: error[legacyUninitvar]: Uninitialized variable: snl
Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:275:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.name’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:262:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:275:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:275:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:275:9: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cmnd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:273:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: throw: if ‘sudo_basename_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.name’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:262:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: throw: if ‘sudo_basename_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cmnd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:273:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.name’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:262:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:282:9: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cmnd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:273:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: throw: if ‘sudo_getpwnam’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cwd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:280:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: throw: if ‘sudo_getpwnam’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: danger: ‘test_ctx.user.cwd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.name’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:262:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: throw: if ‘sudo_getpwnam’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:29: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cmnd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:273:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cwd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:280:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: danger: ‘test_ctx.user.cwd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.name’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:262:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:285:9: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cmnd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:273:26: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:286:25: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: throw: if ‘sudoers_sethost’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.cwd’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:280:25: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:286:25: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: throw: if ‘sudoers_sethost’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: danger: ‘test_ctx.user.cwd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: warning[-Wanalyzer-malloc-leak]: leak of ‘test_ctx.user.name’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:121:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:127:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:129:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:134:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:231:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:262:30: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:263:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:267:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:274:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:276:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:281:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:43: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:284:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:286:25: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: throw: if ‘sudoers_sethost’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:289:10: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:580:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:549:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:550:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:550:19: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:550:12: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:580:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:580:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:580:5: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
sudo-1.9.17p2/plugins/sudoers/toke.c:5185:47: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(64)'
sudo-1.9.17p2/plugins/sudoers/toke.c:5172:21: enter_function: entry to 'sudoers_create_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.c:5176:24: call_function: inlined call to 'sudoersalloc' from 'sudoers_create_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.c:5177:5: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:5180:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:5185:47: danger: 'malloc(64)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
sudo-1.9.17p2/plugins/sudoers/toke.c:5185:47: warning[-Wanalyzer-malloc-leak]: leak of 'sudoers_create_buffer(open_sudoers(*pl.path, 0, 0, & keepopen), 16384)'
sudo-1.9.17p2/plugins/sudoers/toke.l:1428:1: enter_function: entry to 'pop_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1434:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1437:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:5: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:5: call_function: calling 'sudoers_delete_buffer' from 'pop_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:5: return_function: returning to 'pop_include' from 'sudoers_delete_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.l:1441:12: branch_true: following 'true' branch (when 'pl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:1442:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1444:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1445:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1453:13: call_function: calling 'sudoers_create_buffer' from 'pop_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1453:13: return_function: returning to 'pop_include' from 'sudoers_create_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.l:1453:13: call_function: calling 'sudoers_switch_to_buffer' from 'pop_include'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
sudo-1.9.17p2/plugins/sudoers/toke.c:5193:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
sudo-1.9.17p2/plugins/sudoers/toke.l:1428:1: enter_function: entry to 'pop_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1434:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1437:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:5: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:5: call_function: calling 'sudoers_delete_buffer' from 'pop_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1439:5: return_function: returning to 'pop_include' from 'sudoers_delete_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.l:1441:12: branch_true: following 'true' branch (when 'pl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:1442:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1444:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1445:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1453:13: call_function: calling 'sudoers_create_buffer' from 'pop_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1453:13: return_function: returning to 'pop_include' from 'sudoers_create_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.l:1453:13: call_function: calling 'sudoers_switch_to_buffer' from 'pop_include'
Error: CPPCHECK_WARNING (CWE-476): [#def555]
sudo-1.9.17p2/plugins/sudoers/toke.c:5226: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-476): [#def556]
sudo-1.9.17p2/plugins/sudoers/toke.c:5226:2: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
sudo-1.9.17p2/plugins/sudoers/toke.c:5110:10: enter_function: entry to 'sudoersrestart'
sudo-1.9.17p2/plugins/sudoers/toke.c:5114:9: call_function: calling 'sudoersensure_buffer_stack' from 'sudoersrestart'
sudo-1.9.17p2/plugins/sudoers/toke.c:5114:9: return_function: returning to 'sudoersrestart' from 'sudoersensure_buffer_stack'
sudo-1.9.17p2/plugins/sudoers/toke.c:5116:13: call_function: calling 'sudoers_create_buffer' from 'sudoersrestart'
sudo-1.9.17p2/plugins/sudoers/toke.c:5116:13: return_function: returning to 'sudoersrestart' from 'sudoers_create_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.c:5119:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:5119:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:5119:9: call_function: calling 'sudoers_init_buffer' from 'sudoersrestart'
Error: CPPCHECK_WARNING (CWE-476): [#def557]
sudo-1.9.17p2/plugins/sudoers/toke.c:5227: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
sudo-1.9.17p2/plugins/sudoers/toke.c:5440:33: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(n)'
sudo-1.9.17p2/plugins/sudoers/toke.c:5424:17: enter_function: entry to 'sudoers_scan_bytes'
sudo-1.9.17p2/plugins/sudoers/toke.c:5433:24: call_function: inlined call to 'sudoersalloc' from 'sudoers_scan_bytes'
sudo-1.9.17p2/plugins/sudoers/toke.c:5434:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:5434:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:5442:6: call_function: calling 'sudoers_scan_buffer' from 'sudoers_scan_bytes'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirpath)'
sudo-1.9.17p2/plugins/sudoers/toke.l:937:11: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: throw: if 'readdir' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: danger: 'opendir(dirpath)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: throw: if 'readdir' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
sudo-1.9.17p2/plugins/sudoers/toke.l:961:21: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:958:17: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:961:21: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:961:21: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
sudo-1.9.17p2/plugins/sudoers/toke.l:961:37: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:958:17: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:961:37: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:961:37: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
sudo-1.9.17p2/plugins/sudoers/toke.l:964:21: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:958:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:958:17: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:959:20: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:959:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:964:21: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:964:21: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
sudo-1.9.17p2/plugins/sudoers/toke.l:964:37: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:958:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:958:17: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:959:20: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:959:21: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:964:37: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:964:37: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
sudo-1.9.17p2/plugins/sudoers/toke.l:972:21: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:972:21: throw: if 'sudo_rcstr_alloc' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:972:21: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
sudo-1.9.17p2/plugins/sudoers/toke.l:975:13: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:972:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:974:36: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:974:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:975:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:975:13: throw: if 'sudo_debug_printf2_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:975:13: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
sudo-1.9.17p2/plugins/sudoers/toke.l:976:13: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:972:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:974:36: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:974:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:975:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:976:13: throw: if 'sudo_rcstr_delref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:976:13: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
sudo-1.9.17p2/plugins/sudoers/toke.l:980:13: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:972:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:974:36: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:974:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:979:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:980:13: throw: if 'sudo_rcstr_delref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:980:13: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
sudo-1.9.17p2/plugins/sudoers/toke.l:985:13: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:972:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:974:36: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:974:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:979:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:984:12: branch_true: following 'true' branch (when 'pl' is NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:985:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:985:13: throw: if 'sudo_rcstr_delref' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:985:13: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
sudo-1.9.17p2/plugins/sudoers/toke.l:1002:5: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1002:5: throw: if 'closedir' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:1002:5: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
sudo-1.9.17p2/plugins/sudoers/toke.l:1011:5: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirpath)'
sudo-1.9.17p2/plugins/sudoers/toke.l:937:11: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_true: following 'true' branch (when 'paths' is NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:946:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1011:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:1011:5: danger: 'opendir(dirpath)' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
sudo-1.9.17p2/plugins/sudoers/toke.l:1011:5: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1011:5: throw: if 'sudo_warn_gettext_v1' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:1011:5: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
sudo-1.9.17p2/plugins/sudoers/toke.l:1013:5: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1013:5: throw: if 'sudoerserror' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:1013:5: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
sudo-1.9.17p2/plugins/sudoers/toke.l:1015:9: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:938:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:944:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: following 'false' branch (when 'paths' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:945:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:948:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:956:13: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:971:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1014:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1015:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1015:9: throw: if 'closedir' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke.l:1015:9: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
sudo-1.9.17p2/plugins/sudoers/toke_util.c:84:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke_util.c:78:11: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke_util.c:79:8: branch_false: following 'false' branch (when 'dst' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:84:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke_util.c:84:5: throw: if 'parser_leak_add' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:84:5: danger: 'dst' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
sudo-1.9.17p2/plugins/sudoers/toke_util.c:113:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke_util.c:105:8: branch_false: following 'false' branch (when 'dst' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:113:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke_util.c:113:5: throw: if 'parser_leak_add' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:113:5: danger: 'dst' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
sudo-1.9.17p2/plugins/sudoers/toke_util.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of 'p'
sudo-1.9.17p2/plugins/sudoers/toke_util.c:184:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:198:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke_util.c:198:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:200:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke_util.c:204:12: branch_false: following 'false' branch (when 'p' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:208:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke_util.c:208:9: throw: if 'parser_leak_add' throws an exception...
sudo-1.9.17p2/plugins/sudoers/toke_util.c:208:9: danger: 'p' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:219:17: warning[-Wanalyzer-malloc-leak]: leak of ‘groups’
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:349:1: enter_function: entry to ‘testsudoers_getgrouplist2’
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:358:8: branch_true: following ‘true’ branch (when ‘groups’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:360:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:363:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:364:12: branch_false: following ‘false’ branch (when ‘groups’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:366:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:376:5: call_function: inlined call to ‘testsudoers_setgrent’ from ‘testsudoers_getgrouplist2’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:227:9: warning[-Wanalyzer-malloc-leak]: leak of ‘groups’
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:349:1: enter_function: entry to ‘testsudoers_getgrouplist2’
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:358:8: branch_true: following ‘true’ branch (when ‘groups’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:360:19: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:363:18: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:364:12: branch_false: following ‘false’ branch (when ‘groups’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:366:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/tsgetgrpw.c:376:5: call_function: inlined call to ‘testsudoers_setgrent’ from ‘testsudoers_getgrouplist2’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def580]
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:66:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(shellfile, "r")’
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:102:1: enter_function: entry to ‘testsudoers_setusershell’
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:106:21: call_function: calling ‘read_shells’ from ‘testsudoers_setusershell’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:66:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(shellfile, "r")’
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:102:1: enter_function: entry to ‘testsudoers_setusershell’
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:106:21: call_function: calling ‘read_shells’ from ‘testsudoers_setusershell’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: warning[-Wanalyzer-malloc-leak]: leak of ‘allowlist’
sudo-1.9.17p2/plugins/sudoers/visudo.c:372:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:374:38: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:381:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:382:12: branch_false: following ‘false’ branch (when ‘allowlist’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: throw: if ‘sudo_strsplit_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
sudo-1.9.17p2/plugins/sudoers/visudo.c:386:30: warning[-Wanalyzer-malloc-leak]: leak of ‘allowlist’
sudo-1.9.17p2/plugins/sudoers/visudo.c:372:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:374:38: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:381:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:382:12: branch_false: following ‘false’ branch (when ‘allowlist’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:386:13: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:387:60: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:388:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:390:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:386:30: throw: if ‘sudo_strsplit_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:386:30: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
sudo-1.9.17p2/plugins/sudoers/visudo.c:389:17: warning[-Wanalyzer-malloc-leak]: leak of ‘allowlist’
sudo-1.9.17p2/plugins/sudoers/visudo.c:372:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:374:38: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:381:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:382:12: branch_false: following ‘false’ branch (when ‘allowlist’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:386:13: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:387:60: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:388:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:389:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:389:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:389:17: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
sudo-1.9.17p2/plugins/sudoers/visudo.c:395:19: warning[-Wanalyzer-malloc-leak]: leak of ‘allowlist’
sudo-1.9.17p2/plugins/sudoers/visudo.c:372:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:374:38: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:381:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:382:12: branch_false: following ‘false’ branch (when ‘allowlist’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:386:13: branch_false: following ‘false’ branch (when ‘cp’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:392:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:395:19: throw: if ‘find_editor’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:395:19: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
sudo-1.9.17p2/plugins/sudoers/visudo.c:401:17: warning[-Wanalyzer-malloc-leak]: leak of ‘allowlist’
sudo-1.9.17p2/plugins/sudoers/visudo.c:372:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:374:38: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:381:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:382:12: branch_false: following ‘false’ branch (when ‘allowlist’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:397:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:398:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:398:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:400:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:401:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:401:17: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:401:17: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
sudo-1.9.17p2/plugins/sudoers/visudo.c:406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘allowlist’
sudo-1.9.17p2/plugins/sudoers/visudo.c:372:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:374:38: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:381:21: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:382:12: branch_false: following ‘false’ branch (when ‘allowlist’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:385:19: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:397:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:398:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:406:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:406:9: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-562): [#def588]
sudo-1.9.17p2/plugins/sudoers/visudo.c:542: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def589]
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*sp.tpath, "r+")’
sudo-1.9.17p2/plugins/sudoers/visudo.c:657:12: branch_true: following ‘true’ branch (when ‘sp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:658:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:659:14: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/visudo.c:660:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:12: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*sp.tpath, "r+")’
sudo-1.9.17p2/plugins/sudoers/visudo.c:657:12: branch_true: following ‘true’ branch (when ‘sp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:658:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:659:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:660:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:12: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def591]
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*sp.tpath, "r+")’
sudo-1.9.17p2/plugins/sudoers/visudo.c:657:12: branch_true: following ‘true’ branch (when ‘sp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:658:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:659:14: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/visudo.c:660:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: throw: if ‘init_defaults’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*sp.tpath, "r+")’
sudo-1.9.17p2/plugins/sudoers/visudo.c:657:12: branch_true: following ‘true’ branch (when ‘sp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:658:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:659:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:660:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: throw: if ‘init_defaults’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def593]
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*sp.tpath, "r+")’
sudo-1.9.17p2/plugins/sudoers/visudo.c:657:12: branch_true: following ‘true’ branch (when ‘sp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:658:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:659:14: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/visudo.c:660:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:9: throw: if ‘init_parser’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:26: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*sp.tpath, "r+")’
sudo-1.9.17p2/plugins/sudoers/visudo.c:657:12: branch_true: following ‘true’ branch (when ‘sp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:658:16: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:659:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:660:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:665:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:9: throw: if ‘init_parser’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:26: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1039:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1039:5: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1041:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1041:10: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1043:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1043:13: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1046:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1046:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:24: call_function: calling ‘lock_sudoers’ from ‘new_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1073:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1073:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1073:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1073:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1077:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1077:15: throw: if ‘sudo_strsplit_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1077:15: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1077:15: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1077:15: throw: if ‘sudo_strsplit_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1077:15: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1091:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1101:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1101:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1141:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: throw: if ‘sudo_strsplit_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1091:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1101:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1101:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1141:1: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: throw: if ‘sudo_strsplit_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1094:17: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1091:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1101:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1091:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1101:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: throw: if ‘sudoers_file_mode’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def614]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: throw: if ‘sudoers_file_mode’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1113:13: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def618]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*entry.opath’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: danger: ‘*entry.opath’ leaks here; was allocated at [(3)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1123:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1084:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1084:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1126:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1130:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1132:5: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1060:1: enter_function: entry to ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:42: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1076:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:9: branch_true: following ‘true’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1081:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1082:12: branch_false: following ‘false’ branch (when ‘len <= 4095’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1086:9: call_function: inlined call to ‘memcpy’ from ‘new_sudoers’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1084:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1134:8: branch_true: following ‘true’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1071:13: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1072:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1106:8: branch_true: following ‘true’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1107:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1109:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1112:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1116:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1118:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1119:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1134:8: branch_true: following ‘true’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1135:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1181:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1179:23: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1179:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1179:16: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1181:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1181:13: throw: if ‘rewind’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1181:13: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def627]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1184:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1186:8: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:35: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:20: throw: if ‘sudo_rcstr_dup’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:20: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1184:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1186:8: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:35: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:20: throw: if ‘sudo_rcstr_dup’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:20: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def629]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1184:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1186:8: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:35: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1188:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1184:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1186:8: branch_true: following ‘true’ branch (when ‘outfile’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1187:35: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1188:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1189:13: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def631]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1191:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: acquire_resource: opened here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1184:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1191:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1191:5: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/96/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
sudo-1.9.17p2/plugins/sudoers/visudo.c:1191:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
sudo-1.9.17p2/plugins/sudoers/visudo.c:1157:5: branch_true: following ‘true’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1158:27: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1161:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1175:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:23: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1176:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1184:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1191:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1191:5: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/97/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def633]
sudo-1.9.17p2/src/conversation.c:187:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘ttyfp’
sudo-1.9.17p2/src/conversation.c:175:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/conversation.c:176:14: branch_true: ...to here
sudo-1.9.17p2/src/conversation.c:175:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/conversation.c:178:17: branch_true: ...to here
sudo-1.9.17p2/src/conversation.c:178:17: acquire_resource: opened here
sudo-1.9.17p2/src/conversation.c:187:13: branch_true: following ‘true’ branch (when ‘ttyfp’ is non-NULL)...
sudo-1.9.17p2/src/conversation.c:187:13: branch_true: ...to here
sudo-1.9.17p2/src/conversation.c:187:13: throw: if ‘sudo_term_is_raw_v1’ throws an exception...
sudo-1.9.17p2/src/conversation.c:187:13: danger: ‘ttyfp’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
sudo-1.9.17p2/src/conversation.c:187:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ttyfp’
sudo-1.9.17p2/src/conversation.c:175:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/conversation.c:176:14: branch_true: ...to here
sudo-1.9.17p2/src/conversation.c:175:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/conversation.c:178:17: branch_true: ...to here
sudo-1.9.17p2/src/conversation.c:178:17: acquire_memory: allocated here
sudo-1.9.17p2/src/conversation.c:187:13: branch_true: following ‘true’ branch (when ‘ttyfp’ is non-NULL)...
sudo-1.9.17p2/src/conversation.c:187:13: branch_true: ...to here
sudo-1.9.17p2/src/conversation.c:187:13: throw: if ‘sudo_term_is_raw_v1’ throws an exception...
sudo-1.9.17p2/src/conversation.c:187:13: danger: ‘ttyfp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def635]
sudo-1.9.17p2/src/env_hooks.c:191:6: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
sudo-1.9.17p2/src/env_hooks.c:212:1: enter_function: entry to ‘setenv_unhooked’
sudo-1.9.17p2/src/env_hooks.c:217:8: branch_false: following ‘false’ branch (when ‘fn’ is NULL)...
sudo-1.9.17p2/src/env_hooks.c:219:12: branch_false: ...to here
sudo-1.9.17p2/src/env_hooks.c:219:12: call_function: calling ‘rpl_setenv’ from ‘setenv_unhooked’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def636]
sudo-1.9.17p2/src/exec_iolog.c:124:19: warning[-Wanalyzer-malloc-leak]: leak of ‘iob’
sudo-1.9.17p2/src/exec_iolog.c:121:16: acquire_memory: allocated here
sudo-1.9.17p2/src/exec_iolog.c:121:8: branch_false: following ‘false’ branch (when ‘iob’ is non-NULL)...
sudo-1.9.17p2/src/exec_iolog.c:123:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_iolog.c:124:19: throw: if ‘sudo_ev_alloc_v2’ throws an exception...
sudo-1.9.17p2/src/exec_iolog.c:124:19: danger: ‘iob’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def637]
sudo-1.9.17p2/src/exec_monitor.c:363:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup3(io_fds[0], 0, 0)’
sudo-1.9.17p2/src/exec_monitor.c:363:9: acquire_resource: opened here
sudo-1.9.17p2/src/exec_monitor.c:363:8: danger: ‘dup3(io_fds[0], 0, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def638]
sudo-1.9.17p2/src/exec_monitor.c:367:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup3(io_fds[1], 1, 0)’
sudo-1.9.17p2/src/exec_monitor.c:363:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_monitor.c:365:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_monitor.c:367:9: acquire_resource: opened here
sudo-1.9.17p2/src/exec_monitor.c:367:8: danger: ‘dup3(io_fds[1], 1, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def639]
sudo-1.9.17p2/src/exec_monitor.c:371:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup3(io_fds[2], 2, 0)’
sudo-1.9.17p2/src/exec_monitor.c:363:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_monitor.c:365:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_monitor.c:367:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_monitor.c:369:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_monitor.c:371:9: acquire_resource: opened here
sudo-1.9.17p2/src/exec_monitor.c:371:8: danger: ‘dup3(io_fds[2], 2, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def640]
sudo-1.9.17p2/src/exec_nopty.c:487:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[0]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def641]
sudo-1.9.17p2/src/exec_nopty.c:487:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[1]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def642]
sudo-1.9.17p2/src/exec_nopty.c:511:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[0]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def643]
sudo-1.9.17p2/src/exec_nopty.c:511:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[1]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def644]
sudo-1.9.17p2/src/exec_nopty.c:512:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[0]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def645]
sudo-1.9.17p2/src/exec_nopty.c:512:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[1]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def646]
sudo-1.9.17p2/src/exec_nopty.c:515:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[0]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def647]
sudo-1.9.17p2/src/exec_nopty.c:515:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[1]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def648]
sudo-1.9.17p2/src/exec_nopty.c:516:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[0]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def649]
sudo-1.9.17p2/src/exec_nopty.c:516:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[1]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def650]
sudo-1.9.17p2/src/exec_nopty.c:516:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘io_pipe[0][0]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def651]
sudo-1.9.17p2/src/exec_nopty.c:516:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘io_pipe[0][1]’
sudo-1.9.17p2/src/exec_nopty.c:550:1: enter_function: entry to ‘exec_nopty’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:588:5: call_function: calling ‘interpose_pipes’ from ‘exec_nopty’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def652]
sudo-1.9.17p2/src/exec_nopty.c:583:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[0]’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:576:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_nopty.c:577:14: branch_true: ...to here
sudo-1.9.17p2/src/exec_nopty.c:577:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_nopty.c:582:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_nopty.c:582:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_nopty.c:583:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_nopty.c:583:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/exec_nopty.c:583:17: danger: ‘errpipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def653]
sudo-1.9.17p2/src/exec_nopty.c:583:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errpipe[1]’
sudo-1.9.17p2/src/exec_nopty.c:564:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:568:5: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:573:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_nopty.c:576:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_nopty.c:576:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_nopty.c:577:14: branch_true: ...to here
sudo-1.9.17p2/src/exec_nopty.c:577:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_nopty.c:582:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_nopty.c:582:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_nopty.c:583:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_nopty.c:583:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/exec_nopty.c:583:17: danger: ‘errpipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
sudo-1.9.17p2/src/exec_preload.c:59:5: warning[-Wanalyzer-malloc-leak]: leak of ‘intercept_ptr’
sudo-1.9.17p2/src/exec_preload.c:413:1: enter_function: entry to ‘sudo_preload_dso’
sudo-1.9.17p2/src/exec_preload.c:416:12: call_function: calling ‘sudo_preload_dso_path’ from ‘sudo_preload_dso’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
sudo-1.9.17p2/src/exec_preload.c:59:5: warning[-Wanalyzer-malloc-leak]: leak of ‘nep’
sudo-1.9.17p2/src/exec_preload.c:413:1: enter_function: entry to ‘sudo_preload_dso’
sudo-1.9.17p2/src/exec_preload.c:416:12: call_function: calling ‘sudo_preload_dso_path’ from ‘sudo_preload_dso’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
sudo-1.9.17p2/src/exec_preload.c:59:5: warning[-Wanalyzer-malloc-leak]: leak of ‘preload_ptr’
sudo-1.9.17p2/src/exec_preload.c:413:1: enter_function: entry to ‘sudo_preload_dso’
sudo-1.9.17p2/src/exec_preload.c:416:12: call_function: calling ‘sudo_preload_dso_path’ from ‘sudo_preload_dso’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def657]
sudo-1.9.17p2/src/exec_preload.c:274:23: warning[-Wanalyzer-malloc-leak]: leak of ‘nep’
sudo-1.9.17p2/src/exec_preload.c:413:1: enter_function: entry to ‘sudo_preload_dso’
sudo-1.9.17p2/src/exec_preload.c:416:12: call_function: calling ‘sudo_preload_dso_path’ from ‘sudo_preload_dso’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def658]
sudo-1.9.17p2/src/exec_preload.c:274:23: warning[-Wanalyzer-malloc-leak]: leak of ‘preload_ptr’
sudo-1.9.17p2/src/exec_preload.c:413:1: enter_function: entry to ‘sudo_preload_dso’
sudo-1.9.17p2/src/exec_preload.c:416:12: call_function: calling ‘sudo_preload_dso_path’ from ‘sudo_preload_dso’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def659]
sudo-1.9.17p2/src/exec_pty.c:659:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘msg’
sudo-1.9.17p2/src/exec_pty.c:657:12: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
sudo-1.9.17p2/src/exec_pty.c:658:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:658:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:658:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:659:9: release_memory: first ‘free’ here
sudo-1.9.17p2/src/exec_pty.c:657:12: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
sudo-1.9.17p2/src/exec_pty.c:658:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:658:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:658:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:659:9: danger: second ‘free’ here; first ‘free’ was at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def660]
sudo-1.9.17p2/src/exec_pty.c:952:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘msg’
sudo-1.9.17p2/src/exec_pty.c:922:12: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
sudo-1.9.17p2/src/exec_pty.c:923:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:923:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:939:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:947:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:961:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:961:9: release_memory: first ‘free’ here
sudo-1.9.17p2/src/exec_pty.c:922:12: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
sudo-1.9.17p2/src/exec_pty.c:923:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:923:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:939:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:947:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:948:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:948:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:949:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:952:17: danger: second ‘free’ here; first ‘free’ was at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def661]
sudo-1.9.17p2/src/exec_pty.c:961:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘msg’
sudo-1.9.17p2/src/exec_pty.c:922:12: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
sudo-1.9.17p2/src/exec_pty.c:923:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:923:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:939:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:947:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:961:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:961:9: release_memory: first ‘free’ here
sudo-1.9.17p2/src/exec_pty.c:922:12: branch_true: following ‘true’ branch (when ‘msg’ is non-NULL)...
sudo-1.9.17p2/src/exec_pty.c:923:17: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:923:9: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:939:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/exec_pty.c:945:9: branch_true: ...to here
sudo-1.9.17p2/src/exec_pty.c:947:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/exec_pty.c:961:9: branch_false: ...to here
sudo-1.9.17p2/src/exec_pty.c:961:9: danger: second ‘free’ here; first ‘free’ was at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def662]
sudo-1.9.17p2/src/get_pty.c:71:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
sudo-1.9.17p2/src/get_pty.c:66:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/get_pty.c:67:13: branch_true: ...to here
sudo-1.9.17p2/src/get_pty.c:67:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/get_pty.c:68:19: branch_true: ...to here
sudo-1.9.17p2/src/get_pty.c:68:19: acquire_memory: allocated here
sudo-1.9.17p2/src/get_pty.c:71:5: branch_true: following ‘true’ branch (when ‘ret’ is non-NULL)...
sudo-1.9.17p2/src/get_pty.c:71:5: branch_true: ...to here
sudo-1.9.17p2/src/get_pty.c:71:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/get_pty.c:71:5: danger: ‘ret’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
sudo-1.9.17p2/src/load_plugins.c:41:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:397:25: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
sudo-1.9.17p2/src/load_plugins.c:41:30: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:392:12: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
sudo-1.9.17p2/src/load_plugins.c:43:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:397:25: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def666]
sudo-1.9.17p2/src/load_plugins.c:43:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:392:12: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
sudo-1.9.17p2/src/load_plugins.c:73:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:397:25: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
sudo-1.9.17p2/src/load_plugins.c:73:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:392:12: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
sudo-1.9.17p2/src/load_plugins.c:75:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:397:25: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def670]
sudo-1.9.17p2/src/load_plugins.c:75:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:392:12: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
sudo-1.9.17p2/src/load_plugins.c:97:5: warning[-Wanalyzer-malloc-leak]: leak of ‘container’
sudo-1.9.17p2/src/load_plugins.c:118:1: enter_function: entry to ‘new_container’
sudo-1.9.17p2/src/load_plugins.c:124:22: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:124:8: branch_false: following ‘false’ branch (when ‘container’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:128:10: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:128:10: call_function: calling ‘fill_container’ from ‘new_container’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
sudo-1.9.17p2/src/load_plugins.c:100:9: warning[-Wanalyzer-malloc-leak]: leak of ‘container’
sudo-1.9.17p2/src/load_plugins.c:118:1: enter_function: entry to ‘new_container’
sudo-1.9.17p2/src/load_plugins.c:124:22: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:124:8: branch_false: following ‘false’ branch (when ‘container’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:128:10: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:128:10: call_function: calling ‘fill_container’ from ‘new_container’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
sudo-1.9.17p2/src/load_plugins.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘container’
sudo-1.9.17p2/src/load_plugins.c:118:1: enter_function: entry to ‘new_container’
sudo-1.9.17p2/src/load_plugins.c:124:22: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:124:8: branch_false: following ‘false’ branch (when ‘container’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:128:10: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:128:10: call_function: calling ‘fill_container’ from ‘new_container’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
sudo-1.9.17p2/src/load_plugins.c:211:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:397:25: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
sudo-1.9.17p2/src/load_plugins.c:211:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/load_plugins.c:385:1: enter_function: entry to ‘sudo_load_sudoers_plugin’
sudo-1.9.17p2/src/load_plugins.c:392:12: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/load_plugins.c:405:11: call_function: calling ‘sudo_load_plugin’ from ‘sudo_load_sudoers_plugin’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
sudo-1.9.17p2/src/load_plugins.c:400:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:398:18: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/load_plugins.c:400:9: branch_true: ...to here
sudo-1.9.17p2/src/load_plugins.c:400:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/load_plugins.c:400:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
sudo-1.9.17p2/src/load_plugins.c:400:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/load_plugins.c:392:12: acquire_memory: allocated here
sudo-1.9.17p2/src/load_plugins.c:393:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/load_plugins.c:397:25: branch_false: ...to here
sudo-1.9.17p2/src/load_plugins.c:399:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/load_plugins.c:400:9: branch_true: ...to here
sudo-1.9.17p2/src/load_plugins.c:400:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/load_plugins.c:400:9: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
sudo-1.9.17p2/src/preserve_fds.c:49:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pfd_new’
sudo-1.9.17p2/src/preserve_fds.c:44:15: acquire_memory: allocated here
sudo-1.9.17p2/src/preserve_fds.c:45:8: branch_false: following ‘false’ branch (when ‘pfd_new’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:47:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:49:22: throw: if ‘fcntl’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:49:22: danger: ‘pfd_new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def679]
sudo-1.9.17p2/src/preserve_fds.c:58:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pfd_new’
sudo-1.9.17p2/src/preserve_fds.c:44:15: acquire_memory: allocated here
sudo-1.9.17p2/src/preserve_fds.c:45:8: branch_false: following ‘false’ branch (when ‘pfd_new’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:47:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:50:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/preserve_fds.c:55:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:55:5: branch_true: following ‘true’ branch (when ‘pfd’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:56:19: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:58:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:58:13: danger: ‘pfd_new’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def680]
sudo-1.9.17p2/src/preserve_fds.c:107:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
sudo-1.9.17p2/src/preserve_fds.c:94:5: branch_true: following ‘true’ branch (when ‘pfd’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:94:5: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:97:14: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:107:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:107:13: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def681]
sudo-1.9.17p2/src/preserve_fds.c:109:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
sudo-1.9.17p2/src/preserve_fds.c:94:5: branch_true: following ‘true’ branch (when ‘pfd’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:94:5: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:97:14: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:109:13: throw: if ‘sudo_debug_update_fd_v1’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:109:13: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def682]
sudo-1.9.17p2/src/preserve_fds.c:114:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
sudo-1.9.17p2/src/preserve_fds.c:94:5: branch_true: following ‘true’ branch (when ‘pfd’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:94:5: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:97:14: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:113:12: branch_true: following ‘true’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:114:20: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:114:20: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:114:20: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
sudo-1.9.17p2/src/preserve_fds.c:141:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fdbits’
sudo-1.9.17p2/src/preserve_fds.c:120:8: branch_false: following ‘false’ branch (when ‘lastfd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:129:29: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:129:14: acquire_memory: allocated here
sudo-1.9.17p2/src/preserve_fds.c:130:8: branch_false: following ‘false’ branch (when ‘fdbits’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: following ‘false’ branch (when ‘pfd’ is NULL)...
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:139:24: branch_true: following ‘true’ branch (when ‘fd <= lastfd’)...
sudo-1.9.17p2/src/preserve_fds.c:140:14: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:140:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/preserve_fds.c:141:13: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:141:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:141:13: danger: ‘fdbits’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
sudo-1.9.17p2/src/preserve_fds.c:147:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fdbits’
sudo-1.9.17p2/src/preserve_fds.c:120:8: branch_false: following ‘false’ branch (when ‘lastfd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:129:29: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:129:14: acquire_memory: allocated here
sudo-1.9.17p2/src/preserve_fds.c:130:8: branch_false: following ‘false’ branch (when ‘fdbits’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: following ‘false’ branch (when ‘pfd’ is NULL)...
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:139:24: branch_true: following ‘true’ branch (when ‘fd <= lastfd’)...
sudo-1.9.17p2/src/preserve_fds.c:140:14: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:140:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/preserve_fds.c:141:13: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:147:20: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/src/preserve_fds.c:147:20: danger: ‘fdbits’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def685]
sudo-1.9.17p2/src/preserve_fds.c:163:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*pfd.lowfd, *pfd.highfd)’
sudo-1.9.17p2/src/preserve_fds.c:120:8: branch_false: following ‘false’ branch (when ‘lastfd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:129:29: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:130:8: branch_false: following ‘false’ branch (when ‘fdbits’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:132:5: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:161:5: branch_true: following ‘true’ branch (when ‘pfd’ is non-NULL)...
sudo-1.9.17p2/src/preserve_fds.c:162:13: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:162:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/preserve_fds.c:163:17: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:163:17: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:163:16: danger: ‘dup2(*pfd.lowfd, *pfd.highfd)’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def686]
sudo-1.9.17p2/src/selinux.c:256:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup3(se_state.ttyfd, ptyfd, flags)’
sudo-1.9.17p2/src/selinux.c:168:1: enter_function: entry to ‘selinux_relabel_tty’
sudo-1.9.17p2/src/selinux.c:179:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:184:5: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:202:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:207:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:207:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:220:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:220:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:229:8: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:229:8: branch_true: following ‘true’ branch (when ‘ptyfd != -1’)...
sudo-1.9.17p2/src/selinux.c:233:26: call_function: inlined call to ‘open’ from ‘selinux_relabel_tty’
sudo-1.9.17p2/src/selinux.c:234:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:238:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:244:23: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:244:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:248:13: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:250:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:254:13: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:256:13: acquire_resource: opened here
sudo-1.9.17p2/src/selinux.c:256:12: danger: ‘dup3(se_state.ttyfd, ptyfd, flags)’ leaks here; was opened at [(21)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def687]
sudo-1.9.17p2/src/selinux.c:276:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(se_state.ttyfd, fd)’
sudo-1.9.17p2/src/selinux.c:179:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:184:5: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:189:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:193:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:199:13: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:202:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:207:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:207:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:220:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:220:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:229:8: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:229:8: branch_false: following ‘false’ branch (when ‘ptyfd == -1’)...
sudo-1.9.17p2/src/selinux.c:262:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:264:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:268:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:274:13: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:275:33: branch_true: following ‘true’ branch (when ‘fd != 3’)...
sudo-1.9.17p2/src/selinux.c:276:17: branch_true: ...to here
sudo-1.9.17p2/src/selinux.c:276:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/selinux.c:276:41: branch_true: ...to here
sudo-1.9.17p2/src/selinux.c:276:41: acquire_resource: opened here
sudo-1.9.17p2/src/selinux.c:276:17: danger: ‘dup2(se_state.ttyfd, fd)’ leaks here; was opened at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
sudo-1.9.17p2/src/selinux.c:365:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_context’
sudo-1.9.17p2/src/selinux.c:322:8: branch_false: following ‘false’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/src/selinux.c:327:8: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:327:8: branch_false: following ‘false’ branch (when ‘type’ is non-NULL)...
sudo-1.9.17p2/src/selinux.c:340:32: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:340:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:349:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:349:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:353:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:353:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:361:24: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:361:24: acquire_memory: allocated here
sudo-1.9.17p2/src/selinux.c:361:8: branch_false: following ‘false’ branch (when ‘new_context’ is non-NULL)...
sudo-1.9.17p2/src/selinux.c:365:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:365:9: throw: if ‘security_check_context’ throws an exception...
sudo-1.9.17p2/src/selinux.c:365:9: danger: ‘new_context’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def689]
sudo-1.9.17p2/src/selinux.c:366:9: warning[-Wanalyzer-malloc-leak]: leak of ‘new_context’
sudo-1.9.17p2/src/selinux.c:322:8: branch_false: following ‘false’ branch (when ‘role’ is non-NULL)...
sudo-1.9.17p2/src/selinux.c:327:8: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:327:8: branch_false: following ‘false’ branch (when ‘type’ is non-NULL)...
sudo-1.9.17p2/src/selinux.c:340:32: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:340:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:349:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:349:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:353:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:353:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/selinux.c:361:24: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:361:24: acquire_memory: allocated here
sudo-1.9.17p2/src/selinux.c:361:8: branch_false: following ‘false’ branch (when ‘new_context’ is non-NULL)...
sudo-1.9.17p2/src/selinux.c:365:9: branch_false: ...to here
sudo-1.9.17p2/src/selinux.c:365:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/selinux.c:366:9: branch_true: ...to here
sudo-1.9.17p2/src/selinux.c:366:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/selinux.c:366:9: danger: ‘new_context’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def690]
sudo-1.9.17p2/src/sudo.c:376:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(__open_alias("/dev/null", 2, 420), 0)’
sudo-1.9.17p2/src/sudo.c:374:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:376:12: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:376:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:376:35: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:376:35: acquire_resource: opened here
sudo-1.9.17p2/src/sudo.c:376:13: danger: ‘dup2(__open_alias("/dev/null", 2, 420), 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def691]
sudo-1.9.17p2/src/sudo.c:378:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(__open_alias("/dev/null", 2, 420), 1)’
sudo-1.9.17p2/src/sudo.c:374:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:376:12: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:378:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:378:36: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:378:36: acquire_resource: opened here
sudo-1.9.17p2/src/sudo.c:378:13: danger: ‘dup2(__open_alias("/dev/null", 2, 420), 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def692]
sudo-1.9.17p2/src/sudo.c:380:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(__open_alias("/dev/null", 2, 420), 2)’
sudo-1.9.17p2/src/sudo.c:374:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:376:12: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:376:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:378:12: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:380:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:380:36: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:380:36: acquire_resource: opened here
sudo-1.9.17p2/src/sudo.c:380:13: danger: ‘dup2(__open_alias("/dev/null", 2, 420), 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
sudo-1.9.17p2/src/sudo.c:438:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:507:1: enter_function: entry to ‘get_user_info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:566:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:569:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:570:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:572:20: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:578:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:582:5: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:584:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:586:46: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:586:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:588:46: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:588:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:590:48: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:590:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:592:45: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:592:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:594:54: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:594:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:596:55: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:596:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:598:54: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:598:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:600:55: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:600:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:603:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:603:15: call_function: calling ‘get_user_groups’ from ‘get_user_info’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def694]
sudo-1.9.17p2/src/sudo.c:441:20: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:507:1: enter_function: entry to ‘get_user_info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:566:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:569:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:570:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:572:20: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:578:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:582:5: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:584:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:586:46: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:586:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:588:46: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:588:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:590:48: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:590:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:592:45: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:592:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:594:54: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:594:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:596:55: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:596:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:598:54: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:598:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:600:55: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:600:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:603:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:603:15: call_function: calling ‘get_user_groups’ from ‘get_user_info’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
sudo-1.9.17p2/src/sudo.c:458:21: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:507:1: enter_function: entry to ‘get_user_info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:566:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:569:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:570:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:572:20: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:578:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:582:5: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:584:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:586:46: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:586:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:588:46: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:588:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:590:48: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:590:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:592:45: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:592:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:594:54: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:594:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:596:55: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:596:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:598:54: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:598:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:600:55: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:600:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:603:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:603:15: call_function: calling ‘get_user_groups’ from ‘get_user_info’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
sudo-1.9.17p2/src/sudo.c:542:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:542:5: throw: if ‘sudo_get_ttysize_v2’ throws an exception...
sudo-1.9.17p2/src/sudo.c:542:5: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
sudo-1.9.17p2/src/sudo.c:546:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:543:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:544:27: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:546:9: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/src/sudo.c:546:9: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
sudo-1.9.17p2/src/sudo.c:557:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:557:5: throw: if ‘sudo_askpass_cred’ throws an exception...
sudo-1.9.17p2/src/sudo.c:557:5: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
sudo-1.9.17p2/src/sudo.c:562:10: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:562:10: throw: if ‘getpwuid’ throws an exception...
sudo-1.9.17p2/src/sudo.c:562:10: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
sudo-1.9.17p2/src/sudo.c:567:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:566:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:567:9: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:567:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:567:9: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
sudo-1.9.17p2/src/sudo.c:569:15: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:566:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:569:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:569:15: throw: if ‘sudo_new_key_val_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:569:15: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
sudo-1.9.17p2/src/sudo.c:663:5: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
sudo-1.9.17p2/src/sudo.c:534:12: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:535:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:538:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:566:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:569:15: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:663:5: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:663:5: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
sudo-1.9.17p2/src/sudo.c:1128:26: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_settings’
sudo-1.9.17p2/src/sudo.c:1125:23: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:1126:8: branch_false: following ‘false’ branch (when ‘plugin_settings’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:1128:26: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1128:26: throw: if ‘sudo_new_key_val_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:1128:26: danger: ‘plugin_settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
sudo-1.9.17p2/src/sudo.c:1133:13: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_settings’
sudo-1.9.17p2/src/sudo.c:1125:23: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:1126:8: branch_false: following ‘false’ branch (when ‘plugin_settings’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:1128:26: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1129:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:1131:10: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1131:35: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:1132:13: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:1132:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:1133:13: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:1133:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:1133:13: danger: ‘plugin_settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
sudo-1.9.17p2/src/sudo.c:1136:17: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_settings’
sudo-1.9.17p2/src/sudo.c:1125:23: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:1126:8: branch_false: following ‘false’ branch (when ‘plugin_settings’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:1128:26: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1129:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:1131:10: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1131:35: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:1132:13: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:1132:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo.c:1133:13: branch_true: ...to here
sudo-1.9.17p2/src/sudo.c:1136:17: throw: if ‘sudo_new_key_val_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:1136:17: danger: ‘plugin_settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
sudo-1.9.17p2/src/sudo.c:1155:5: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin_settings’
sudo-1.9.17p2/src/sudo.c:1125:23: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo.c:1126:8: branch_false: following ‘false’ branch (when ‘plugin_settings’ is non-NULL)...
sudo-1.9.17p2/src/sudo.c:1128:26: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1129:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo.c:1131:10: branch_false: ...to here
sudo-1.9.17p2/src/sudo.c:1155:5: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/sudo.c:1155:5: danger: ‘plugin_settings’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
sudo-1.9.17p2/src/sudo_edit.c:434:6: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
sudo-1.9.17p2/src/sudo_edit.c:414:1: enter_function: entry to ‘selinux_edit_create_tfiles’
sudo-1.9.17p2/src/sudo_edit.c:424:8: branch_false: following ‘false’ branch (when ‘nfiles > 0’)...
sudo-1.9.17p2/src/sudo_edit.c:427:18: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:428:27: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo_edit.c:429:8: branch_false: following ‘false’ branch (when ‘sesh_ap’ is non-NULL)...
sudo-1.9.17p2/src/sudo_edit.c:433:5: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:437:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:438:25: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:438:25: call_function: calling ‘selinux_fmt_sudo_user’ from ‘selinux_edit_create_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
sudo-1.9.17p2/src/sudo_edit.c:544:6: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
sudo-1.9.17p2/src/sudo_edit.c:521:1: enter_function: entry to ‘selinux_edit_copy_tfiles’
sudo-1.9.17p2/src/sudo_edit.c:534:8: branch_false: following ‘false’ branch (when ‘nfiles > 0’)...
sudo-1.9.17p2/src/sudo_edit.c:537:18: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:538:27: acquire_memory: allocated here
sudo-1.9.17p2/src/sudo_edit.c:539:8: branch_false: following ‘false’ branch (when ‘sesh_ap’ is non-NULL)...
sudo-1.9.17p2/src/sudo_edit.c:543:5: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:545:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:546:25: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:546:25: call_function: calling ‘selinux_fmt_sudo_user’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def709]
sudo-1.9.17p2/src/tgetpass.c:313:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:313:13: throw: if ‘sudo_debug_fork_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:313:13: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def710]
sudo-1.9.17p2/src/tgetpass.c:313:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:313:13: throw: if ‘sudo_debug_fork_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:313:13: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def711]
sudo-1.9.17p2/src/tgetpass.c:315:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:315:9: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:315:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:315:9: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def712]
sudo-1.9.17p2/src/tgetpass.c:315:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:315:9: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:315:9: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:315:9: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def713]
sudo-1.9.17p2/src/tgetpass.c:319:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup3(pfd[1], 1, 0)’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:13: acquire_resource: opened here
sudo-1.9.17p2/src/tgetpass.c:319:12: danger: ‘dup3(pfd[1], 1, 0)’ leaks here; was opened at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def714]
sudo-1.9.17p2/src/tgetpass.c:320:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:320:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:320:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:320:13: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def715]
sudo-1.9.17p2/src/tgetpass.c:320:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:320:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:320:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:320:13: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def716]
sudo-1.9.17p2/src/tgetpass.c:324:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:323:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:324:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:324:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:324:13: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def717]
sudo-1.9.17p2/src/tgetpass.c:324:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:323:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:324:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:324:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:324:13: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def718]
sudo-1.9.17p2/src/tgetpass.c:326:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:326:9: throw: if ‘sudo_closefrom’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:326:9: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def719]
sudo-1.9.17p2/src/tgetpass.c:326:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:326:9: throw: if ‘sudo_closefrom’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:326:9: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def720]
sudo-1.9.17p2/src/tgetpass.c:328:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:328:9: throw: if ‘restore_limits’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:328:9: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def721]
sudo-1.9.17p2/src/tgetpass.c:328:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:328:9: throw: if ‘restore_limits’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:328:9: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def722]
sudo-1.9.17p2/src/tgetpass.c:330:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:330:9: throw: if ‘unlimit_nproc’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:330:9: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def723]
sudo-1.9.17p2/src/tgetpass.c:330:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:330:9: throw: if ‘unlimit_nproc’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:330:9: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def724]
sudo-1.9.17p2/src/tgetpass.c:332:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:332:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:332:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:332:13: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def725]
sudo-1.9.17p2/src/tgetpass.c:332:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:332:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:332:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:332:13: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def726]
sudo-1.9.17p2/src/tgetpass.c:336:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:335:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:336:17: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:336:17: throw: if ‘sudo_setgroups_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:336:17: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def727]
sudo-1.9.17p2/src/tgetpass.c:336:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:335:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:336:17: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:336:17: throw: if ‘sudo_setgroups_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:336:17: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def728]
sudo-1.9.17p2/src/tgetpass.c:337:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:335:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:336:17: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:336:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:337:17: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:337:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:337:17: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def729]
sudo-1.9.17p2/src/tgetpass.c:337:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:335:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:336:17: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:336:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:337:17: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:337:17: throw: if ‘sudo_warn_gettext_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:337:17: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def730]
sudo-1.9.17p2/src/tgetpass.c:342:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:341:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:342:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:342:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:342:13: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def731]
sudo-1.9.17p2/src/tgetpass.c:342:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:341:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:342:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:342:13: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:342:13: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def732]
sudo-1.9.17p2/src/tgetpass.c:345:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:341:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:345:9: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:345:9: throw: if ‘restore_nproc’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:345:9: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def733]
sudo-1.9.17p2/src/tgetpass.c:345:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:341:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:345:9: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:345:9: throw: if ‘restore_nproc’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:345:9: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def734]
sudo-1.9.17p2/src/tgetpass.c:347:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:341:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:345:9: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:347:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:347:9: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def735]
sudo-1.9.17p2/src/tgetpass.c:347:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/tgetpass.c:319:13: branch_true: ...to here
sudo-1.9.17p2/src/tgetpass.c:319:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:323:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:331:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:335:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:341:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:345:9: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:347:9: throw: if ‘sudo_debug_printf2_v1’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:347:9: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def736]
sudo-1.9.17p2/src/tgetpass.c:352:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:352:12: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:352:12: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:352:12: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def737]
sudo-1.9.17p2/src/tgetpass.c:352:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:352:12: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:352:12: throw: if ‘close’ throws an exception...
sudo-1.9.17p2/src/tgetpass.c:352:12: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def738]
sudo-1.9.17p2/src/tgetpass.c:386:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:295:1: enter_function: entry to ‘sudo_askpass’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:352:12: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:353:12: call_function: calling ‘getln’ from ‘sudo_askpass’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def739]
sudo-1.9.17p2/src/tgetpass.c:443:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
sudo-1.9.17p2/src/tgetpass.c:295:1: enter_function: entry to ‘sudo_askpass’
sudo-1.9.17p2/src/tgetpass.c:310:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:313:13: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:314:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:317:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/tgetpass.c:352:12: branch_false: ...to here
sudo-1.9.17p2/src/tgetpass.c:353:12: call_function: calling ‘getln’ from ‘sudo_askpass’
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-174.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 | sudo-1.9.17-6.p2.fc44 |
| store-results-to | /tmp/tmp2g6yslxh/sudo-1.9.17-6.p2.fc44.tar.xz |
| time-created | 2026-01-08 21:55:38 |
| time-finished | 2026-01-08 21:58:54 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp2g6yslxh/sudo-1.9.17-6.p2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp2g6yslxh/sudo-1.9.17-6.p2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |