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: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: danger: 'item' 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: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)...
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: danger: 'dst' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
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)...
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: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: danger: 'ret' 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: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)...
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: danger: 'dst' 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 '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)...
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:583:5: danger: 'ret' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def6]
sudo-1.9.17p2/lib/eventlog/parse_json.c:594:17: warning[-Wanalyzer-use-after-free]: use after 'free' of 'item'
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:1064:5: call_function: calling 'eventlog_json_free' from 'eventlog_json_read'
Error: GCC_ANALYZER_WARNING (CWE-415): [#def7]
sudo-1.9.17p2/lib/eventlog/parse_json.c:613:9: warning[-Wanalyzer-double-free]: double-'free' of '*item.name'
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:1064:5: call_function: calling 'eventlog_json_free' from 'eventlog_json_read'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
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: 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/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: danger: 'frame' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
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: 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): [#def11]
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: 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): [#def12]
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: danger: 'filt' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
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: 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): [#def14]
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: 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): [#def15]
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: danger: 'evlog' 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: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: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/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 '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: danger: 'evlog' 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: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: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
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: 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): [#def20]
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: 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): [#def21]
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: 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): [#def22]
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: 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): [#def23]
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: 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): [#def24]
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: 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): [#def25]
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: danger: 'fp' leaks here; was allocated at [(15)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
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...
branch_true: ...to here
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): [#def27]
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: 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): [#def28]
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:167:1: enter_function: entry to 'sudo_gai_warn_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:171:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:172:5: call_function: calling 'warning' from 'sudo_gai_warn_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def29]
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:167:1: enter_function: entry to 'sudo_gai_warn_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:171:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:172:5: call_function: calling 'warning' from 'sudo_gai_warn_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def30]
sudo-1.9.17p2/lib/util/fatal.c:228:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/fatal.c:116:1: enter_function: entry to 'sudo_warn_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:120:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:121:5: call_function: calling 'warning' from 'sudo_warn_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:167:1: enter_function: entry to 'sudo_gai_warn_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:171:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:172:5: call_function: calling 'warning' from 'sudo_gai_warn_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def32]
sudo-1.9.17p2/lib/util/fatal.c:243:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/lib/util/fatal.c:116:1: enter_function: entry to 'sudo_warn_nodebug_v1'
sudo-1.9.17p2/lib/util/fatal.c:120:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/lib/util/fatal.c:121:5: call_function: calling 'warning' from 'sudo_warn_nodebug_v1'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
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: 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): [#def34]
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: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): [#def35]
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: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: 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): [#def36]
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: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: 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): [#def37]
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: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: 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): [#def38]
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: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: 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): [#def39]
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: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: 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): [#def40]
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: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: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: 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): [#def41]
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: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: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: 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): [#def42]
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: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: 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): [#def43]
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: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: 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): [#def44]
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: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: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): [#def45]
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: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: 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): [#def46]
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: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: 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): [#def47]
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: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: 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): [#def48]
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: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: 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): [#def49]
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: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: 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): [#def50]
sudo-1.9.17p2/lib/util/getentropy.c:543: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: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:543:41: branch_true: following 'true' branch...
sudo-1.9.17p2/lib/util/getentropy.c:543:41: branch_true: ...to here
sudo-1.9.17p2/lib/util/getentropy.c:543:41: danger: 'results' leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
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: 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): [#def52]
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: 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): [#def53]
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: 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): [#def54]
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): [#def55]
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): [#def56]
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): [#def57]
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): [#def58]
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): [#def59]
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): [#def60]
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): [#def61]
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): [#def62]
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: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: 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): [#def63]
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: 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): [#def64]
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: 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): [#def65]
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: 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): [#def66]
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: 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): [#def67]
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: 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): [#def68]
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: 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): [#def69]
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: 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): [#def70]
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: 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): [#def71]
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: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:16: danger: 'options' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
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): [#def73]
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): [#def74]
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): [#def75]
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): [#def76]
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: 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: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: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
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: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
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: 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: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: 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: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: 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: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: 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: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: 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: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: 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: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: 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: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: 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: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: 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: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: 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: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: 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: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: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
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: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
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: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
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: 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: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: danger: 'fp' leaks here; was allocated at [(11)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
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: 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: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: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
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: danger: 'prev_locale' leaks here; was allocated at [(4)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
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: danger: 'prev_locale' leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
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): [#def100]
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): [#def101]
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): [#def102]
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): [#def103]
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)...
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: 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): [#def104]
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)...
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: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
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: danger: ‘evlog’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
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: danger: ‘evlog’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
sudo-1.9.17p2/logsrvd/iolog_writer.c:622:5: 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:622:5: danger: ‘*evlog.iolog_path’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def108]
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): [#def109]
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): [#def110]
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): [#def111]
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): [#def112]
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): [#def113]
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): [#def114]
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): [#def115]
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: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
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: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
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: danger: ‘sock’ leaks here
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: 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: 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: 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: 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_conf.c:1465:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1398:1: enter_function: entry to ‘logsrvd_conv_syslog’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1407:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1412:9: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1421:17: branch_true: following ‘true’ branch (when ‘i < num_msgs’)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1422:31: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1446:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1449:20: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1449:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1460:9: call_function: inlined call to ‘memcpy’ from ‘logsrvd_conv_syslog’
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1421:17: branch_true: following ‘true’ branch (when ‘i < num_msgs’)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1422:31: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1452:16: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1458:13: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1421:17: branch_false: following ‘false’ branch (when ‘i >= num_msgs’)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1464:8: branch_false: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1464:8: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1465:44: branch_true: ...to here
sudo-1.9.17p2/logsrvd/logsrvd_conf.c:1465:9: danger: ‘buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
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): [#def127]
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:100:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/logsrvd/logsrvd_queue.c:108:14: branch_false: ...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: danger: ‘fp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
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...
branch_false: ...to here
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): [#def129]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
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:476:1: enter_function: entry to ‘connect_relay’
sudo-1.9.17p2/logsrvd/logsrvd_relay.c:482:46: call_function: calling ‘relay_closure_alloc’ from ‘connect_relay’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
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: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
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: danger: ‘sock’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
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...
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): [#def142]
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): [#def143]
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): [#def144]
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): [#def145]
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): [#def146]
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): [#def147]
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): [#def148]
sudo-1.9.17p2/plugins/audit_json/audit_json.c:89: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
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...
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: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
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...
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: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
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...
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): [#def152]
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...
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: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...
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:319: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...
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: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...
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): [#def156]
sudo-1.9.17p2/plugins/python/python_plugin_common.c:336: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
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: 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): [#def158]
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: 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): [#def159]
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: danger: 'replies' leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def160]
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: GCC_ANALYZER_WARNING (CWE-688): [#def161]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:162:19: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'path' where non-null expected
sudo-1.9.17p2/plugins/sample/sample_plugin.c:160:20: acquire_memory: this call could return NULL
sudo-1.9.17p2/plugins/sample/sample_plugin.c:162:19: danger: argument 1 ('path') from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def162]
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): [#def163]
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:320:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:325:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:328:15: branch_false: ...to here
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): [#def164]
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:208:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:209:8: branch_false: following 'false' branch (when 'command_info' is non-NULL)...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:211:28: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:211:28: danger: 'command_info' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
sudo-1.9.17p2/plugins/sample/sample_plugin.c:292:9: warning[-Wanalyzer-malloc-leak]: leak of 'find_in_path(editor, plugin_state.envp)'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:247:1: enter_function: entry to 'find_editor'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:261:8: branch_false: following 'false' branch (when 'editor' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:282:8: branch_false: following 'false' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:283:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:283:24: call_function: calling 'find_in_path' from 'find_editor'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:283:24: return_function: returning to 'find_editor' from 'find_in_path'
sudo-1.9.17p2/plugins/sample/sample_plugin.c:282:9: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:287:8: branch_false: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:287:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:288:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:291:8: branch_true: following 'true' branch (when 'nargv' is NULL)...
sudo-1.9.17p2/plugins/sample/sample_plugin.c:292:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sample/sample_plugin.c:292:9: danger: 'find_in_path(editor, plugin_state.envp)' leaks here; was allocated at [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
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_true: following 'true' branch (when 'appdata_ptr' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:713:9: branch_true: ...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_true: following 'true' branch (when 'appdata_ptr' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:713:9: branch_true: ...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_true: following 'true' branch (when 'appdata_ptr' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:713:9: branch_true: ...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_true: following 'true' branch (when 'appdata_ptr' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/auth/pam.c:713:9: branch_true: ...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: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: 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: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: 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: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: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:764:13: 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: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: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: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: danger: 'reply' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def180]
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...
branch_true: ...to here
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): [#def181]
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...
branch_true: ...to here
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): [#def182]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:108: error[legacyUninitvar]: Uninitialized variable: parse_trees
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
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:1410:1: enter_function: entry to ‘alias_prune_helper’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1421:9: call_function: calling ‘hostlist_matches_filter’ from ‘alias_prune_helper’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
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:1410:1: enter_function: entry to ‘alias_prune_helper’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1421:9: call_function: calling ‘hostlist_matches_filter’ from ‘alias_prune_helper’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:935:13: warning[-Wanalyzer-malloc-leak]: leak of ‘shosts’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1410:1: enter_function: entry to ‘alias_prune_helper’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1421:9: call_function: calling ‘hostlist_matches_filter’ from ‘alias_prune_helper’
Error: CPPCHECK_WARNING (CWE-457): [#def186]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1279: error[legacyUninitvar]: Uninitialized variable: user_aliases
Error: CPPCHECK_WARNING (CWE-457): [#def187]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1280: error[legacyUninitvar]: Uninitialized variable: runas_aliases
Error: CPPCHECK_WARNING (CWE-457): [#def188]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1281: error[legacyUninitvar]: Uninitialized variable: host_aliases
Error: CPPCHECK_WARNING (CWE-457): [#def189]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers.c:1282: error[legacyUninitvar]: Uninitialized variable: cmnd_aliases
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
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): [#def191]
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): [#def192]
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): [#def193]
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): [#def194]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:435:10: 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): [#def195]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_csv.c:435:10: 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): [#def196]
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: 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): [#def197]
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: 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): [#def198]
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: danger: ‘output_fp’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
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: danger: ‘output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def200]
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: 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): [#def201]
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: 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): [#def202]
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: 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): [#def203]
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: 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): [#def204]
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: 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): [#def205]
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: 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): [#def206]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:266:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
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): [#def207]
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: 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): [#def208]
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: 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): [#def209]
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: 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): [#def210]
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: 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): [#def211]
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: 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): [#def212]
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: 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): [#def213]
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: 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): [#def214]
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: danger: ‘cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:634:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
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:601:32: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:622:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:625:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:632:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:634:5: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def216]
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: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
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: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def218]
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: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
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: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def220]
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...
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: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
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...
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: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def222]
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: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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
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: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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_ldif.c:783:11: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def224]
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: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...
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: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
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: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...
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: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def226]
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: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...
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: danger: ‘output_fp’ leaks here; was opened at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
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: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...
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: danger: ‘output_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
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:886:1: enter_function: entry to ‘merge_defaults’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:894:5: branch_true: following ‘true’ branch (when ‘parse_tree’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:899:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:899:9: branch_true: following ‘true’ branch (when ‘def’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:900:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:900:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:901:21: call_function: calling ‘new_member’ from ‘merge_defaults’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
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:886:1: enter_function: entry to ‘merge_defaults’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:894:5: branch_true: following ‘true’ branch (when ‘parse_tree’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:899:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:899:9: branch_true: following ‘true’ branch (when ‘def’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:900:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:900:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:901:21: call_function: calling ‘new_member’ from ‘merge_defaults’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
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:886:1: enter_function: entry to ‘merge_defaults’
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:894:5: branch_true: following ‘true’ branch (when ‘parse_tree’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:899:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:899:9: branch_true: following ‘true’ branch (when ‘def’ is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:900:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:900:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:901:21: call_function: calling ‘new_member’ from ‘merge_defaults’
Error: CPPCHECK_WARNING (CWE-457): [#def231]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_merge.c:1258: error[legacyUninitvar]: Uninitialized variable: bound_hosts
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
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: 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): [#def233]
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:350:9: 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:338:8: branch_false: following ‘false’ branch (when ‘ngids != 0’)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:345:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:349:8: branch_true: following ‘true’ branch (when ‘glitem’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:350:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:350:9: danger: ‘gids’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
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:458:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/cvtsudoers_pwutil.c:459:22: branch_true: ...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:451:13: danger: ‘grlitem’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
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: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: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: danger: ‘grlitem’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def236]
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): [#def237]
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: 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): [#def238]
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: 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): [#def239]
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: 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): [#def240]
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): [#def241]
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)...
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): [#def242]
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: danger: leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
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: 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): [#def244]
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: 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): [#def245]
sudo-1.9.17p2/plugins/sudoers/env.c:1415:13: warning[-Wanalyzer-malloc-leak]: leak of 'cur'
sudo-1.9.17p2/plugins/sudoers/env.c:1412:36: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/env.c:1413:15: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1413:15: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/env.c:1414:12: branch_false: following 'false' branch (when 'cur' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/env.c:1414:42: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1414:13: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/env.c:1415:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/env.c:1415:13: danger: 'cur' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
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: 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): [#def247]
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: 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): [#def248]
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: 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): [#def249]
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: 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): [#def250]
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: 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): [#def251]
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: 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): [#def252]
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: danger: 'file_digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
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: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
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...
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: 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): [#def255]
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...
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: 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): [#def256]
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...
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: 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): [#def257]
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: 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): [#def258]
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: 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): [#def259]
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): [#def260]
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-404): [#def261]
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:1231:1: enter_function: entry to 'sudoerserror'
sudo-1.9.17p2/plugins/sudoers/gram.y:1243:9: call_function: calling 'sudoerserrorf' from 'sudoerserror'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def262]
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:1251:1: enter_function: entry to 'alias_error'
sudo-1.9.17p2/plugins/sudoers/gram.y:1255:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/gram.y:1256:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/gram.y:1256:13: call_function: calling 'sudoerserrorf' from 'alias_error'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
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...
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)...
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: danger: 'argv' leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
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:774:1: enter_function: entry to 'sudoers_io_open'
sudo-1.9.17p2/plugins/sudoers/iolog.c:807:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:811:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:811:8: branch_false: following 'false' branch (when 'argc != 0')...
sudo-1.9.17p2/plugins/sudoers/iolog.c:817:11: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:817:11: call_function: calling 'iolog_deserialize_info' from 'sudoers_io_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
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:294:1: enter_function: entry to 'iolog_deserialize_info'
sudo-1.9.17p2/plugins/sudoers/iolog.c:309:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:311:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:376:30: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:377:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:486:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:496:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:496:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:498:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:498:21: call_function: calling 'deserialize_stringlist' from 'iolog_deserialize_info'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
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:294:1: enter_function: entry to 'iolog_deserialize_info'
sudo-1.9.17p2/plugins/sudoers/iolog.c:309:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:311:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:376:30: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:377:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:486:16: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:496:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:496:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:498:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:498:21: call_function: calling 'deserialize_stringlist' from 'iolog_deserialize_info'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
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:294:1: enter_function: entry to 'iolog_deserialize_info'
sudo-1.9.17p2/plugins/sudoers/iolog.c:309:8: branch_false: following 'false' branch (when 'evlog' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/iolog.c:311:5: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:376:30: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:377:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:562:16: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/iolog.c:563:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/iolog.c:565:21: call_function: calling 'set_passprompt_regex' from 'iolog_deserialize_info'
Error: CPPCHECK_WARNING (CWE-457): [#def268]
sudo-1.9.17p2/plugins/sudoers/iolog.c:780: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-124): [#def269]
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:1559:1: enter_function: entry to 'sudo_ldap_open'
sudo-1.9.17p2/plugins/sudoers/ldap.c:1573:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1577:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1583:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1588:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1588:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1589:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1589:21: call_function: calling 'sudo_ldap_join_uri' from 'sudo_ldap_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
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:1559:1: enter_function: entry to 'sudo_ldap_open'
sudo-1.9.17p2/plugins/sudoers/ldap.c:1573:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1577:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1583:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1588:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1588:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1589:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1589:21: call_function: calling 'sudo_ldap_join_uri' from 'sudo_ldap_open'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
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:1662:1: enter_function: entry to 'sudo_ldap_getdefs'
sudo-1.9.17p2/plugins/sudoers/ldap.c:1673:8: branch_false: following 'false' branch (when 'handle' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1680:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1680:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap.c:1683:12: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap.c:1683:12: call_function: calling 'sudo_ldap_build_default_filter' from 'sudo_ldap_getdefs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
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...
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: 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): [#def273]
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...
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: 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): [#def274]
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: 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): [#def275]
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: 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): [#def276]
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: 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): [#def277]
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: 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): [#def278]
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: 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-401): [#def279]
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:442:25: warning[-Wanalyzer-malloc-leak]: leak of 'cp'
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:395:23: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:396:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:396:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:397:21: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:440:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:440:41: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:440:41: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:440:25: branch_false: following 'false' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:444:31: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_conf.c:442:25: danger: 'cp' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def280]
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...
branch_false: ...to here
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/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
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...
branch_false: ...to here
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/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
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...
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): [#def283]
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): [#def284]
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): [#def285]
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_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): [#def286]
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...
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): [#def287]
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...
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): [#def288]
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): [#def289]
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): [#def290]
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...
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): [#def291]
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): [#def292]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:124: error[legacyUninitvar]: Uninitialized variable: negated_members
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
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_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_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:169:13: branch_false: ...to here
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): [#def294]
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: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
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_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: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: danger: 'm' leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
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: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
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: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_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_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:169:13: 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_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: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
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: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
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_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:176:5: danger: 'negated_members.tqh_first' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:177: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: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_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_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:169:13: 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_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:177:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
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: danger: 'members' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
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...
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): [#def303]
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): [#def304]
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...
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): [#def305]
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...
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): [#def306]
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): [#def307]
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...
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: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...
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): [#def309]
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...
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): [#def310]
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: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
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: danger: 'm' leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
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: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: danger: 'digest' leaks here; was allocated at [(7)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: 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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:308:21: danger: 'strndup(cp, (long unsigned int)(ep - cp))' leaks here; was allocated at [(9)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-457): [#def316]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:360: error[legacyUninitvar]: Uninitialized variable: negated_cmnds
Error: CPPCHECK_WARNING (CWE-457): [#def317]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:361: error[legacyUninitvar]: Uninitialized variable: negated_hosts
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:385:24: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
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...
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
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...
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:400:20: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
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: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...
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...
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: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: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
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: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...
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...
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_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: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
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: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...
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...
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_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: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
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: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...
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...
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_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: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
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: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...
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...
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: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: 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): [#def327]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: 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...
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...
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: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: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: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
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: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...
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...
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_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: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: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
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: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...
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...
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_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: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: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
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: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...
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...
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_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: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: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:471:38: 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...
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...
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: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: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: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: 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...
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...
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: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: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: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
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: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...
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...
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: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: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
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: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...
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...
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: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: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
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: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...
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...
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: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: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:480:35: 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...
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...
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: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: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: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: warning[-Wanalyzer-malloc-leak]: leak of 'c'
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...
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...
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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
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...
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...
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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: warning[-Wanalyzer-malloc-leak]: leak of 'm'
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...
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...
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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: 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...
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...
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: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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: 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): [#def341]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: warning[-Wanalyzer-malloc-leak]: leak of 'c'
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...
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...
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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
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...
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...
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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: warning[-Wanalyzer-malloc-leak]: leak of 'm'
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...
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...
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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: 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...
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...
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: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: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:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:33: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:482:24: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:483:25: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:484:25: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: 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...
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...
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: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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
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: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...
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...
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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
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: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...
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...
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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
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: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...
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...
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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: 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...
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...
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: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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:31: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: 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...
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...
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: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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: warning[-Wanalyzer-malloc-leak]: leak of 'c'
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...
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...
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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: danger: 'c' leaks here; was allocated at [(17)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: warning[-Wanalyzer-malloc-leak]: leak of 'cmndspec'
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...
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...
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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: danger: 'cmndspec' leaks here; was allocated at [(13)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: warning[-Wanalyzer-malloc-leak]: leak of 'm'
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...
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...
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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: danger: 'm' leaks here; was allocated at [(15)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: 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...
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...
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: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: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')...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:489:24: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/ldap_util.c:578:17: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
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...
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...
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: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/91/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
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...
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...
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: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
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: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...
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...
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:615:5: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/92/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
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: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/93/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
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: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...
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...
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: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: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/105/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
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: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/104/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
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): [#def362]
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): [#def363]
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): [#def364]
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: danger: 'm' leaks here; was allocated at [(1)](sarif:/runs/0/results/108/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
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-401): [#def366]
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): [#def367]
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): [#def368]
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): [#def369]
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): [#def370]
sudo-1.9.17p2/plugins/sudoers/log_client.c:685:9: 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_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_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2019: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): [#def371]
sudo-1.9.17p2/plugins/sudoers/log_client.c:685:9: 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_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_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/log_client.c:2019: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): [#def372]
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:1350:1: enter_function: entry to 'fmt_suspend'
sudo-1.9.17p2/plugins/sudoers/log_client.c:1370:10: call_function: calling 'fmt_client_message' from 'fmt_suspend'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
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: 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): [#def374]
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: 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): [#def375]
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: 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): [#def376]
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_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: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:866:8: branch_false: following 'false' branch (when 'info_msgs' is non-NULL)...
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: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
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_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: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: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)...
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: danger: 'info_msgs' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
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: 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): [#def379]
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: 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): [#def380]
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: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
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: danger: 'closure' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
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: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
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: danger: 'closure' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
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: 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): [#def385]
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: 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): [#def386]
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:705:1: enter_function: entry to 'vlog_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:732:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:738:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:752:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:768:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:772:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:772:12: branch_false: following 'false' branch (when 'errstr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/logging.c:776:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:776:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/logging.c:778:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:780:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:780:18: call_function: calling 'journal_parse_error' from 'vlog_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def387]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
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:705:1: enter_function: entry to 'vlog_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:732:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:738:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:752:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:768:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:772:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:772:12: branch_false: following 'false' branch (when 'errstr' is NULL)...
sudo-1.9.17p2/plugins/sudoers/logging.c:776:20: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:776:20: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/logging.c:778:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/logging.c:780:18: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/logging.c:780:18: call_function: calling 'journal_parse_error' from 'vlog_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def389]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def390]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def391]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:850:5: acquire_resource: 'va_start' called here
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def392]
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: 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): [#def393]
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: 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): [#def394]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def395]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def396]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def397]
sudo-1.9.17p2/plugins/sudoers/logging.c:762:14: 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): [#def398]
sudo-1.9.17p2/plugins/sudoers/logging.c:773:33: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def399]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def400]
sudo-1.9.17p2/plugins/sudoers/logging.c:794:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def401]
sudo-1.9.17p2/plugins/sudoers/logging.c:796:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
sudo-1.9.17p2/plugins/sudoers/logging.c:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def402]
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:842:1: enter_function: entry to 'gai_log_warning'
sudo-1.9.17p2/plugins/sudoers/logging.c:851:11: call_function: calling 'vlog_warning' from 'gai_log_warning'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def403]
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): [#def404]
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): [#def405]
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): [#def406]
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): [#def407]
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: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-457): [#def408]
sudo-1.9.17p2/plugins/sudoers/match.c:310: error[legacyUninitvar]: Uninitialized variable: _user_list
Error: CPPCHECK_WARNING (CWE-457): [#def409]
sudo-1.9.17p2/plugins/sudoers/match.c:320: error[uninitvar]: Uninitialized variable: &m_user.entries
Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
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: 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): [#def411]
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: 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): [#def412]
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: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: 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): [#def413]
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: 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): [#def414]
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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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): [#def415]
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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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): [#def416]
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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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): [#def417]
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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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): [#def418]
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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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): [#def419]
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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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: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:90:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:93:13: 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: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: 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): [#def422]
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: 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): [#def423]
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: 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): [#def424]
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: 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): [#def425]
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: 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): [#def426]
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: 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): [#def427]
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: 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): [#def428]
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: 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): [#def429]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:252: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_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:252:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:252:13: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
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: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
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: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
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: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
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: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
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: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
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: danger: ‘d’ leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
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: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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
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: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
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: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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
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: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
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: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
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: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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
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: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
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: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
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: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_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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
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:474:1: enter_function: entry to ‘ldif_to_sudoers’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:483:8: branch_false: following ‘false’ branch (when ‘role_array’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:497:30: branch_true: following ‘true’ branch (when ‘n < numroles’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:503:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:506:12: branch_false: following ‘false’ branch (when ‘role’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:526:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:526:9: call_function: calling ‘role_to_sudoers’ from ‘ldif_to_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
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:474:1: enter_function: entry to ‘ldif_to_sudoers’
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:483:8: branch_false: following ‘false’ branch (when ‘role_array’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:497:30: branch_true: following ‘true’ branch (when ‘n < numroles’)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:503:26: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:506:12: branch_false: following ‘false’ branch (when ‘role’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:526:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:526:9: call_function: calling ‘role_to_sudoers’ from ‘ldif_to_sudoers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
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: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_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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
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_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: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
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: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/98/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
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: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_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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/118/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
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_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: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/117/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
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: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/116/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
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: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_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_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: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/123/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
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_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: danger: ‘m’ leaks here; was allocated at [(7)](sarif:/runs/0/results/121/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
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: danger: ‘us’ leaks here; was allocated at [(3)](sarif:/runs/0/results/119/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
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)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:492:5: danger: ‘role_array’ leaks here; was allocated at [(1)](sarif:/runs/0/results/137/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
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)...
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: danger: ‘dst’ leaks here; was allocated at [(1)](sarif:/runs/0/results/138/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
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)...
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: danger: ‘new_cn’ leaks here; was allocated at [(1)](sarif:/runs/0/results/139/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-457): [#def459]
sudo-1.9.17p2/plugins/sudoers/parse_ldif.c:573: error[legacyUninitvar]: Uninitialized variable: roles
Error: GCC_ANALYZER_WARNING (CWE-404): [#def460]
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): [#def461]
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: 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): [#def462]
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): [#def463]
sudo-1.9.17p2/plugins/sudoers/policy.c:1106: error[legacyUninitvar]: Uninitialized variable: debug_files
Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
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: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: 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): [#def465]
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: 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): [#def466]
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: 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): [#def467]
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...
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: 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): [#def468]
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...
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: 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): [#def469]
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: danger: 'node' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
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): [#def471]
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...
branch_true: ...to here
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): [#def472]
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...
branch_true: ...to here
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/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
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): [#def474]
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): [#def475]
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...
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: danger: 'lhost' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
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...
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: danger: 'shost' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
sudo-1.9.17p2/plugins/sudoers/sssd.c:144: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): [#def478]
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...
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: danger: 'lhost' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
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: danger: 'us' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
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: 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): [#def482]
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: 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): [#def483]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
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: 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): [#def486]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
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: 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): [#def488]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
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: 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): [#def490]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
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: 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): [#def492]
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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
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: 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): [#def494]
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:635:8: 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: danger: 'handle' leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
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: 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): [#def496]
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: 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): [#def497]
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: 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): [#def498]
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: 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): [#def499]
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...
branch_false: ...to here
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): [#def500]
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...
branch_false: ...to here
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): [#def501]
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: 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): [#def502]
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: 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): [#def503]
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: 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): [#def504]
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: 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): [#def505]
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: 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): [#def506]
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: 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): [#def507]
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: 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): [#def508]
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): [#def509]
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): [#def510]
sudo-1.9.17p2/plugins/sudoers/sudoers_hooks.c:78:11: 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)...
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:78:11: danger: 'ep' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
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): [#def512]
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): [#def513]
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): [#def514]
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): [#def515]
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): [#def516]
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): [#def517]
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): [#def518]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1503:8: 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:8: danger: ‘opendir(dir)’ leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:18: 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: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:18: 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): [#def520]
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’)...
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1511:18: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1533:17: 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’)...
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...
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:1528:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:46: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1536:12: branch_false: following ‘false’ branch...
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: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_false: following ‘false’ branch (when ‘sessions_size != 0’)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1531:24: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1532:16: branch_true: following ‘true’ branch (when ‘sessions’ is NULL)...
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1533:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1533:17: 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): [#def522]
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’)...
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: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
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’)...
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...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/sudoreplay.c:1540:5: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
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’)...
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...
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: danger: ‘sessions’ leaks here; was allocated at [(15)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-457): [#def525]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:95: error[legacyUninitvar]: Uninitialized variable: snl
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
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: 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): [#def527]
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: 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): [#def528]
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: 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): [#def529]
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: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
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: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
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: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
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: danger: ‘test_ctx.user.cwd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
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: 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): [#def534]
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: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
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: danger: ‘test_ctx.user.cwd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
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: danger: ‘test_ctx.user.name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
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: danger: ‘test_ctx.user.cmnd’ leaks here; was allocated at [(11)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
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: danger: ‘test_ctx.user.cwd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
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: 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-124): [#def540]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:310:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
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: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:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:293:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:293:8: branch_true: following ‘true’ branch (when ‘argc != 0’)...
branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:301:12: branch_false: following ‘false’ branch...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:303:51: branch_false: following ‘false’ branch (when ‘argc <= i’)...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:310:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:310:9: danger: out-of-bounds write at byte -1 but region starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
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: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:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:293:8: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:293:8: branch_true: following ‘true’ branch (when ‘argc != 0’)...
branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:301:40: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:301:12: branch_false: following ‘false’ branch...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:303:51: branch_false: following ‘false’ branch (when ‘argc <= i’)...
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:310:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/testsudoers.c:314:10: danger: ‘cp’ leaks here; was allocated at [(21)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
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: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
sudo-1.9.17p2/plugins/sudoers/toke.c:4898:5: warning[-Wanalyzer-malloc-leak]: leak of '*b.yy_ch_buf'
sudo-1.9.17p2/plugins/sudoers/toke.c:4831:12: enter_function: entry to 'yy_get_next_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.c:4838:5: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:4842:14: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4842:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:4864:47: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4869:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:4878:18: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4880:11: branch_true: following 'true' branch (when 'num_to_read <= 0')...
sudo-1.9.17p2/plugins/sudoers/toke.c:4884:41: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4900:41: call_function: inlined call to 'sudoersrealloc' from 'yy_get_next_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.c:4907:56: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:4911:47: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4880:11: branch_true: following 'true' branch (when 'num_to_read <= 0')...
sudo-1.9.17p2/plugins/sudoers/toke.c:4884:41: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4889:28: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.c:4891:20: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.c:4900:41: call_function: inlined call to 'sudoersrealloc' from 'yy_get_next_buffer'
sudo-1.9.17p2/plugins/sudoers/toke.c:4898:5: danger: '*b.yy_ch_buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
sudo-1.9.17p2/plugins/sudoers/toke.c:5136:12: 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: GCC_ANALYZER_WARNING (CWE-401): [#def545]
sudo-1.9.17p2/plugins/sudoers/toke.c:5186:12: 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:5186:12: danger: 'malloc(64)' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def546]
sudo-1.9.17p2/plugins/sudoers/toke.c:5226: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-476): [#def547]
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): [#def548]
sudo-1.9.17p2/plugins/sudoers/toke.c:5227: warning[nullPointer]: Possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
sudo-1.9.17p2/plugins/sudoers/toke.c:5266:12: 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): [#def550]
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...
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): [#def551]
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)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:947:20: danger: 'opendir(dirpath)' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
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)...
branch_false: ...to here
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): [#def553]
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)...
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:12: branch_false: following 'false' branch (when 'namelen != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:956:34: branch_false: ...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: 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): [#def554]
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)...
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:12: branch_false: following 'false' branch (when 'namelen != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:956:34: branch_false: ...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: 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): [#def555]
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)...
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:12: branch_false: following 'false' branch (when 'namelen != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:956:34: branch_false: ...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: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
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)...
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:12: branch_false: following 'false' branch (when 'namelen != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:956:34: branch_false: ...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: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
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)...
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:12: branch_false: following 'false' branch...
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: 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): [#def558]
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)...
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:12: branch_false: following 'false' branch...
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: 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): [#def559]
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)...
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:12: branch_false: following 'false' branch...
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: 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): [#def560]
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)...
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: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
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)...
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: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
sudo-1.9.17p2/plugins/sudoers/toke.l:994:17: warning[-Wanalyzer-malloc-leak]: leak of 'pl'
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)...
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_false: following 'false' branch (when 'pl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:988:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:989:12: branch_false: following 'false' branch (when 'count < max_paths')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1000:15: 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:983:14: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:984:12: branch_false: following 'false' branch (when 'pl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:988:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:989:12: branch_true: following 'true' branch (when 'count >= max_paths')...
sudo-1.9.17p2/plugins/sudoers/toke.l:991:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:993:16: branch_true: following 'true' branch (when 'tmp' is NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:994:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:994:17: danger: 'pl' leaks here; was allocated at [(27)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
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)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1002: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): [#def564]
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: danger: 'opendir(dirpath)' leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
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)...
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: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
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)...
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:1013:5: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
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)...
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: danger: 'paths' leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
sudo-1.9.17p2/plugins/sudoers/toke.l:1017:9: warning[-Wanalyzer-malloc-leak]: leak of 'paths'
sudo-1.9.17p2/plugins/sudoers/toke.l:1029:1: enter_function: entry to 'switch_dir'
sudo-1.9.17p2/plugins/sudoers/toke.l:1035:13: call_function: calling 'read_dir_files' from 'switch_dir'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def569]
sudo-1.9.17p2/plugins/sudoers/toke.l:1017:27: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' 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)...
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_false: following 'false' branch (when 'pl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:988:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:989:12: branch_false: following 'false' branch (when 'count < max_paths')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1000:15: 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_false: following 'false' branch (when 'pl' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:988:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:989:12: branch_true: following 'true' branch (when 'count >= max_paths')...
sudo-1.9.17p2/plugins/sudoers/toke.l:991:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:992:19: release_memory: deallocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:993:16: branch_true: following 'true' branch (when 'tmp' is NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:994:17: branch_true: ...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:1016:17: branch_true: following 'true' branch (when 'i < count')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1017:32: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1017:27: danger: use after 'reallocarray' of 'paths + i * 8'; deallocated at [(33)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/32)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
sudo-1.9.17p2/plugins/sudoers/toke.l:1106:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1139:1: enter_function: entry to 'expand_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1190:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1192:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1196:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1196:13: call_function: calling 'strlcpy_expand_host' from 'expand_include'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
sudo-1.9.17p2/plugins/sudoers/toke.l:1130:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1139:1: enter_function: entry to 'expand_include'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1190:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1192:12: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1196:13: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1196:13: call_function: calling 'strlcpy_expand_host' from 'expand_include'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
sudo-1.9.17p2/plugins/sudoers/toke.l:1191:16: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1190:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1191:16: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
sudo-1.9.17p2/plugins/sudoers/toke.l:1193:13: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1190:39: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1192:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1193:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1193:13: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
sudo-1.9.17p2/plugins/sudoers/toke.l:1208:18: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:56: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:1209:49: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1208:18: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
sudo-1.9.17p2/plugins/sudoers/toke.l:1219:18: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1219:18: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
sudo-1.9.17p2/plugins/sudoers/toke.l:1221:9: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1220:8: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1221:9: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1221:9: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
sudo-1.9.17p2/plugins/sudoers/toke.l:1224:15: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1188:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1207:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1220:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1224:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1224:15: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
sudo-1.9.17p2/plugins/sudoers/toke.l:1258:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1220:8: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1224:15: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1224:56: branch_true: following 'true' branch (when 'cp' is non-NULL)...
sudo-1.9.17p2/plugins/sudoers/toke.l:1229:12: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1230:16: branch_true: following 'true' branch (when 'dst_size <= 1')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1231:17: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1258:5: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
sudo-1.9.17p2/plugins/sudoers/toke.l:1260:5: warning[-Wanalyzer-malloc-leak]: leak of 'dst'
sudo-1.9.17p2/plugins/sudoers/toke.l:1155:8: branch_false: following 'false' branch (when 'src_len != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1160:10: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:8: branch_true: following 'true' branch (when 'nhost != 0')...
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:23: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1171:9: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:31: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1172:24: acquire_memory: allocated here
sudo-1.9.17p2/plugins/sudoers/toke.l:1173:12: branch_false: following 'false' branch (when 'dynamic_host' is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1177:34: branch_false: following 'false' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1184:9: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1192:12: branch_true: following 'true' branch...
sudo-1.9.17p2/plugins/sudoers/toke.l:1193:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/toke.l:1260:5: danger: 'dst' leaks here; was allocated at [(8)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
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: 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): [#def582]
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: 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): [#def583]
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: 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): [#def584]
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): [#def585]
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): [#def586]
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:71:12: 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): [#def587]
sudo-1.9.17p2/plugins/sudoers/tsgetusershell.c:71:12: 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): [#def588]
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: 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): [#def589]
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: 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): [#def590]
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: 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): [#def591]
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: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
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: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
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: danger: ‘allowlist’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-562): [#def594]
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): [#def595]
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/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
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/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def597]
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: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
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: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def599]
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:9: 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: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
sudo-1.9.17p2/plugins/sudoers/visudo.c:667:9: 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: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def601]
sudo-1.9.17p2/plugins/sudoers/visudo.c:672:9: 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:672:9: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
sudo-1.9.17p2/plugins/sudoers/visudo.c:672:9: 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:672:9: danger: ‘fopen(*sp.tpath, "r+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
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): [#def604]
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): [#def605]
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): [#def606]
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): [#def607]
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): [#def608]
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): [#def609]
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): [#def610]
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): [#def611]
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): [#def612]
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: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
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: 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): [#def614]
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: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
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:1078:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
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:1078:26: branch_false: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1078:26: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
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:1091:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:33: branch_true: ...to here
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: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def618]
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:1091:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1093:33: branch_true: ...to here
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: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
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:1101:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
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:1101:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: branch_true: ...to here
sudo-1.9.17p2/plugins/sudoers/visudo.c:1102:13: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
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: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
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: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
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: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
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: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
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: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
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: 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): [#def627]
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: danger: ‘*entry.opath’ leaks here; was allocated at [(3)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
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: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
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: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
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: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def631]
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: danger: ‘entry’ leaks here; was allocated at [(2)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
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: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
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: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
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: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def635]
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: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def636]
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: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def637]
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: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/89/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def638]
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: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def639]
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: danger: ‘fp’ leaks here; was opened at [(7)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def640]
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: danger: ‘fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/102/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def641]
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: 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): [#def642]
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: 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): [#def643]
sudo-1.9.17p2/src/env_hooks.c:67:13: warning[-Wanalyzer-malloc-leak]: leak of ‘dst’
sudo-1.9.17p2/src/env_hooks.c:164:1: enter_function: entry to ‘rpl_setenv’
sudo-1.9.17p2/src/env_hooks.c:170:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/env_hooks.c:187:19: acquire_memory: allocated here
sudo-1.9.17p2/src/env_hooks.c:187:8: branch_false: following ‘false’ branch (when ‘envstr’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/env_hooks.c:189:35: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/env_hooks.c:191:6: branch_false: ...to here
sudo-1.9.17p2/src/env_hooks.c:198:8: branch_true: following ‘true’ branch (when ‘overwrite == 0’)...
sudo-1.9.17p2/src/env_hooks.c:198:23: branch_true: ...to here
sudo-1.9.17p2/src/env_hooks.c:198:23: call_function: calling ‘getenv’ from ‘rpl_setenv’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def644]
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: 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): [#def645]
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): [#def646]
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): [#def647]
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): [#def648]
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): [#def649]
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): [#def650]
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): [#def651]
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): [#def652]
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): [#def653]
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): [#def654]
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): [#def655]
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): [#def656]
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): [#def657]
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): [#def658]
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): [#def659]
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): [#def660]
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: danger: ‘errpipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def661]
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: danger: ‘errpipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def662]
sudo-1.9.17p2/src/exec_nopty.c:598:9: 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:598:9: danger: ‘errpipe[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def663]
sudo-1.9.17p2/src/exec_nopty.c:598:9: 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:598:9: danger: ‘errpipe[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def664]
sudo-1.9.17p2/src/exec_nopty.c:598:9: 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’
sudo-1.9.17p2/src/exec_nopty.c:588:5: return_function: returning to ‘exec_nopty’ from ‘interpose_pipes’
sudo-1.9.17p2/src/exec_nopty.c:598:9: danger: ‘io_pipe[0][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def665]
sudo-1.9.17p2/src/exec_nopty.c:598:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘io_pipe[1][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’
sudo-1.9.17p2/src/exec_nopty.c:588:5: return_function: returning to ‘exec_nopty’ from ‘interpose_pipes’
sudo-1.9.17p2/src/exec_nopty.c:598:9: danger: ‘io_pipe[1][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def666]
sudo-1.9.17p2/src/exec_nopty.c:598:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘io_pipe[2][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’
sudo-1.9.17p2/src/exec_nopty.c:588:5: return_function: returning to ‘exec_nopty’ from ‘interpose_pipes’
sudo-1.9.17p2/src/exec_nopty.c:598:9: danger: ‘io_pipe[2][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
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): [#def668]
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-686): [#def669]
sudo-1.9.17p2/src/exec_preload.c:74:17: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘char *’ but received ‘int’ for variadic argument 1 of ‘ap’
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): [#def670]
sudo-1.9.17p2/src/exec_preload.c:101:9: 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): [#def671]
sudo-1.9.17p2/src/exec_preload.c:168: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): [#def672]
sudo-1.9.17p2/src/exec_preload.c:169: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): [#def673]
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): [#def674]
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-401): [#def675]
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: 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): [#def676]
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): [#def677]
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): [#def678]
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): [#def679]
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): [#def680]
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): [#def681]
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): [#def682]
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): [#def683]
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): [#def684]
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): [#def685]
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): [#def686]
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): [#def687]
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): [#def688]
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): [#def689]
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: 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): [#def690]
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: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
sudo-1.9.17p2/src/net_ifs.c:161:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
sudo-1.9.17p2/src/net_ifs.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:122:9: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:126:10: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:141:8: branch_false: following ‘false’ branch (when ‘num_interfaces != 0’)...
sudo-1.9.17p2/src/net_ifs.c:143:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:144:15: acquire_memory: allocated here
sudo-1.9.17p2/src/net_ifs.c:144:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:151:25: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:153:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:157:17: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:160:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:161:17: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:161:17: danger: ‘cp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
sudo-1.9.17p2/src/net_ifs.c:166:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
sudo-1.9.17p2/src/net_ifs.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:122:9: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:126:10: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:141:8: branch_false: following ‘false’ branch (when ‘num_interfaces != 0’)...
sudo-1.9.17p2/src/net_ifs.c:143:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:144:15: acquire_memory: allocated here
sudo-1.9.17p2/src/net_ifs.c:144:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:151:25: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:153:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:157:17: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:160:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:165:36: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:165:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:166:17: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:166:17: danger: ‘cp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
sudo-1.9.17p2/src/net_ifs.c:172:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
sudo-1.9.17p2/src/net_ifs.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:122:9: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:126:10: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:141:8: branch_false: following ‘false’ branch (when ‘num_interfaces != 0’)...
sudo-1.9.17p2/src/net_ifs.c:143:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:144:15: acquire_memory: allocated here
sudo-1.9.17p2/src/net_ifs.c:144:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:151:25: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:153:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:157:17: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:160:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:165:36: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:165:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:170:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:171:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:172:17: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:172:17: danger: ‘cp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def694]
sudo-1.9.17p2/src/net_ifs.c:181:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
sudo-1.9.17p2/src/net_ifs.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:122:9: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:126:10: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:141:8: branch_false: following ‘false’ branch (when ‘num_interfaces != 0’)...
sudo-1.9.17p2/src/net_ifs.c:143:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:144:15: acquire_memory: allocated here
sudo-1.9.17p2/src/net_ifs.c:144:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:151:25: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:153:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:157:17: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:180:17: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:181:17: danger: ‘cp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
sudo-1.9.17p2/src/net_ifs.c:186:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
sudo-1.9.17p2/src/net_ifs.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:122:9: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:126:10: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:141:8: branch_false: following ‘false’ branch (when ‘num_interfaces != 0’)...
sudo-1.9.17p2/src/net_ifs.c:143:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:144:15: acquire_memory: allocated here
sudo-1.9.17p2/src/net_ifs.c:144:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:151:25: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:153:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:157:17: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:185:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:186:17: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:186:17: danger: ‘cp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
sudo-1.9.17p2/src/net_ifs.c:192:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cp’
sudo-1.9.17p2/src/net_ifs.c:119:8: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:122:9: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:122:8: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:126:10: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:141:8: branch_false: following ‘false’ branch (when ‘num_interfaces != 0’)...
sudo-1.9.17p2/src/net_ifs.c:143:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:144:15: acquire_memory: allocated here
sudo-1.9.17p2/src/net_ifs.c:144:8: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:151:25: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:153:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:153:13: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:157:17: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:185:16: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/net_ifs.c:190:13: branch_false: ...to here
sudo-1.9.17p2/src/net_ifs.c:191:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/net_ifs.c:192:17: branch_true: ...to here
sudo-1.9.17p2/src/net_ifs.c:192:17: danger: ‘cp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
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: 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): [#def698]
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:56:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/preserve_fds.c:58:13: branch_true: ...to here
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): [#def699]
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:95:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/preserve_fds.c:97:14: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:97:14: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:98:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:106:25: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:106:19: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/preserve_fds.c:107:13: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:107:13: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def700]
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:95:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/preserve_fds.c:97:14: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:97:14: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:98:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:106:25: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:106:19: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/preserve_fds.c:107:13: branch_true: ...to here
sudo-1.9.17p2/src/preserve_fds.c:109:13: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def701]
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:95:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/preserve_fds.c:97:14: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:97:14: acquire_resource: opened here
sudo-1.9.17p2/src/preserve_fds.c:98:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
sudo-1.9.17p2/src/preserve_fds.c:106:25: branch_false: ...to here
sudo-1.9.17p2/src/preserve_fds.c:106:19: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/preserve_fds.c:113:12: branch_false: ...to 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: danger: ‘fd’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
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:113:12: branch_false: following ‘false’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/src/preserve_fds.c:116:13: branch_false: ...to here
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)...
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: danger: ‘fdbits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
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:113:12: branch_false: following ‘false’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/src/preserve_fds.c:116:13: branch_false: ...to here
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)...
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: danger: ‘fdbits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def704]
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:113:12: branch_false: following ‘false’ branch (when ‘fd == -1’)...
sudo-1.9.17p2/src/preserve_fds.c:116:13: branch_false: ...to here
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 [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def705]
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): [#def706]
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): [#def707]
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: 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): [#def708]
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: 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): [#def709]
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): [#def710]
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): [#def711]
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): [#def712]
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): [#def713]
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): [#def714]
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): [#def715]
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: 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): [#def716]
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: 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): [#def717]
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: 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): [#def718]
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: 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): [#def719]
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: 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): [#def720]
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: 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): [#def721]
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: 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): [#def722]
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: 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): [#def723]
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: 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): [#def724]
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: 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): [#def725]
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: 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): [#def726]
sudo-1.9.17p2/src/sudo_edit.c:138:5: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:445:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:447:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:448:36: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:460:15: call_function: calling ‘sudo_edit_mktemp’ from ‘selinux_edit_create_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
sudo-1.9.17p2/src/sudo_edit.c:140:12: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:445:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:447:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:448:36: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:460:15: call_function: calling ‘sudo_edit_mktemp’ from ‘selinux_edit_create_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
sudo-1.9.17p2/src/sudo_edit.c:149:9: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:445:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:447:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:448:36: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:460:15: call_function: calling ‘sudo_edit_mktemp’ from ‘selinux_edit_create_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
sudo-1.9.17p2/src/sudo_edit.c:350:5: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_true: following ‘true’ branch (when ‘run_helper != 0’)...
sudo-1.9.17p2/src/sudo_edit.c:592:59: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:590:13: call_function: calling ‘selinux_run_helper’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
sudo-1.9.17p2/src/sudo_edit.c:352:12: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_true: following ‘true’ branch (when ‘run_helper != 0’)...
sudo-1.9.17p2/src/sudo_edit.c:592:59: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:590:13: call_function: calling ‘selinux_run_helper’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
sudo-1.9.17p2/src/sudo_edit.c:354:9: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_true: following ‘true’ branch (when ‘run_helper != 0’)...
sudo-1.9.17p2/src/sudo_edit.c:592:59: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:590:13: call_function: calling ‘selinux_run_helper’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
sudo-1.9.17p2/src/sudo_edit.c:355:9: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_true: following ‘true’ branch (when ‘run_helper != 0’)...
sudo-1.9.17p2/src/sudo_edit.c:592:59: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:590:13: call_function: calling ‘selinux_run_helper’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
sudo-1.9.17p2/src/sudo_edit.c:358:13: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_true: following ‘true’ branch (when ‘run_helper != 0’)...
sudo-1.9.17p2/src/sudo_edit.c:592:59: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:590:13: call_function: calling ‘selinux_run_helper’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def734]
sudo-1.9.17p2/src/sudo_edit.c:361:9: 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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_true: following ‘true’ branch (when ‘run_helper != 0’)...
sudo-1.9.17p2/src/sudo_edit.c:592:59: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:590:13: call_function: calling ‘selinux_run_helper’ from ‘selinux_edit_copy_tfiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
sudo-1.9.17p2/src/sudo_edit.c:388:5: 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-401): [#def736]
sudo-1.9.17p2/src/sudo_edit.c:392:9: 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-401): [#def737]
sudo-1.9.17p2/src/sudo_edit.c:398:9: 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-401): [#def738]
sudo-1.9.17p2/src/sudo_edit.c:406:13: 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-401): [#def739]
sudo-1.9.17p2/src/sudo_edit.c:557:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:557:13: danger: ‘sesh_ap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
sudo-1.9.17p2/src/sudo_edit.c:559:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:558:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:559:13: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:559:13: danger: ‘sesh_ap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
sudo-1.9.17p2/src/sudo_edit.c:562:14: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:558:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:562:53: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:562:14: danger: ‘sesh_ap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def742]
sudo-1.9.17p2/src/sudo_edit.c:571:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:558:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:562:53: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:562:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:564:9: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:565:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:570:16: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:571:17: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:571:17: danger: ‘sesh_ap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def743]
sudo-1.9.17p2/src/sudo_edit.c:580:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:558:12: branch_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:562:53: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:562:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:564:9: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:579:12: branch_true: following ‘true’ branch...
sudo-1.9.17p2/src/sudo_edit.c:580:13: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:580:13: danger: ‘sesh_ap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def744]
sudo-1.9.17p2/src/sudo_edit.c:615:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sesh_ap’
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_false: following ‘false’ branch...
sudo-1.9.17p2/src/sudo_edit.c:553:6: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:555:17: branch_true: following ‘true’ branch (when ‘i < nfiles’)...
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:556:12: branch_false: following ‘false’ branch (when ‘tfd == -1’)...
sudo-1.9.17p2/src/sudo_edit.c:558:27: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:586:8: branch_false: following ‘false’ branch (when ‘run_helper == 0’)...
sudo-1.9.17p2/src/sudo_edit.c:587:9: branch_false: ...to here
sudo-1.9.17p2/src/sudo_edit.c:614:8: branch_true: following ‘true’ branch (when ‘tfd != -1’)...
sudo-1.9.17p2/src/sudo_edit.c:615:9: branch_true: ...to here
sudo-1.9.17p2/src/sudo_edit.c:615:9: danger: ‘sesh_ap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def745]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def746]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def747]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def748]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def749]
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): [#def750]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def751]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def752]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def753]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def754]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def755]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def756]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def757]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def758]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def759]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def760]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def761]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def762]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def763]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def764]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def765]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def766]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def767]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def768]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def769]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def770]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def771]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def772]
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: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def773]
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: danger: ‘pfd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def774]
sudo-1.9.17p2/src/tgetpass.c:354:12: 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’
sudo-1.9.17p2/src/tgetpass.c:353:12: return_function: returning to ‘sudo_askpass’ from ‘getln’
sudo-1.9.17p2/src/tgetpass.c:354:12: danger: ‘pfd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def775]
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): [#def776]
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.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| 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-243.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-gcc-latest-x86_64 |
| project-name | sudo-1.9.17-6.p2.fc44 |
| store-results-to | /tmp/tmp87d36x_t/sudo-1.9.17-6.p2.fc44.tar.xz |
| time-created | 2025-10-28 20:34:26 |
| time-finished | 2025-10-28 20:37:38 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp87d36x_t/sudo-1.9.17-6.p2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp87d36x_t/sudo-1.9.17-6.p2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |