policycoreutils-3.9-5.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-156): [#def1]
/usr/bin/fixfiles:46:7: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-569): [#def2]
/usr/bin/fixfiles:156:103: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/usr/bin/fixfiles:171:18: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-569): [#def4]
/usr/bin/fixfiles:200:66: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def5]
/usr/bin/fixfiles:223:64: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def6]
/usr/bin/fixfiles:239:18: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def7]
/usr/bin/fixfiles:245:19: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def8]
/usr/bin/fixfiles:257:83: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def9]
/usr/bin/fixfiles:261:66: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def10]
/usr/bin/fixfiles:269:61: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/bin/fixfiles:280:43: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-477): [#def12]
/usr/bin/fixfiles:313:29: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def13]
/usr/bin/fixfiles:330:24: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-477): [#def14]
/usr/bin/fixfiles:347:26: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-569): [#def15]
/usr/bin/fixfiles:351:2: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
Error: SHELLCHECK_WARNING (CWE-156): [#def16]
/usr/libexec/selinux/selinux-autorelabel:77:16: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-571): [#def17]
/usr/share/sandbox/sandboxX.sh:4:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘in’
selinux-3.9/policycoreutils/hll/pp/pp.c:83:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
selinux-3.9/policycoreutils/hll/pp/pp.c:93:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:93:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:95:22: acquire_resource: opened here
selinux-3.9/policycoreutils/hll/pp/pp.c:96:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:106:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:118:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: danger: ‘in’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’
selinux-3.9/policycoreutils/hll/pp/pp.c:83:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
selinux-3.9/policycoreutils/hll/pp/pp.c:93:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:106:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:108:23: acquire_resource: opened here
selinux-3.9/policycoreutils/hll/pp/pp.c:109:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:118:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:118:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: danger: ‘out’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: warning[-Wanalyzer-malloc-leak]: leak of ‘in’
selinux-3.9/policycoreutils/hll/pp/pp.c:83:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
selinux-3.9/policycoreutils/hll/pp/pp.c:93:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:93:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:95:22: acquire_memory: allocated here
selinux-3.9/policycoreutils/hll/pp/pp.c:96:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:106:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:118:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: danger: ‘in’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
selinux-3.9/policycoreutils/hll/pp/pp.c:83:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
selinux-3.9/policycoreutils/hll/pp/pp.c:93:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:106:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:108:23: acquire_memory: allocated here
selinux-3.9/policycoreutils/hll/pp/pp.c:109:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:118:13: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:118:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: branch_false: ...to here
selinux-3.9/policycoreutils/hll/pp/pp.c:123:14: danger: ‘out’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
selinux-3.9/policycoreutils/newrole/newrole.c:309:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/etc/selinux/newrole_pam.conf", "r")’
selinux-3.9/policycoreutils/newrole/newrole.c:305:15: acquire_resource: opened here
selinux-3.9/policycoreutils/newrole/newrole.c:306:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/newrole/newrole.c:309:13: branch_false: ...to here
selinux-3.9/policycoreutils/newrole/newrole.c:309:13: danger: ‘fopen("/etc/selinux/newrole_pam.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): [#def23]
selinux-3.9/policycoreutils/newrole/newrole.c:309:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/etc/selinux/newrole_pam.conf", "r")’
selinux-3.9/policycoreutils/newrole/newrole.c:305:15: acquire_memory: allocated here
selinux-3.9/policycoreutils/newrole/newrole.c:306:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/newrole/newrole.c:309:13: branch_false: ...to here
selinux-3.9/policycoreutils/newrole/newrole.c:309:13: danger: ‘fopen("/etc/selinux/newrole_pam.conf", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
selinux-3.9/policycoreutils/newrole/newrole.c:734:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(ttyn, 2050)’
selinux-3.9/policycoreutils/newrole/newrole.c:719:12: branch_false: following ‘false’ branch (when ‘ttyn’ is non-NULL)...
selinux-3.9/policycoreutils/newrole/newrole.c:722:12: branch_false: ...to here
selinux-3.9/policycoreutils/newrole/newrole.c:722:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/newrole/newrole.c:728:14: branch_false: ...to here
selinux-3.9/policycoreutils/newrole/newrole.c:728:14: acquire_resource: opened here
selinux-3.9/policycoreutils/newrole/newrole.c:729:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/newrole/newrole.c:734:33: branch_false: ...to here
selinux-3.9/policycoreutils/newrole/newrole.c:734:33: danger: ‘open(ttyn, 2050)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
selinux-3.9/policycoreutils/sestatus/sestatus.c:80:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
selinux-3.9/policycoreutils/sestatus/sestatus.c:70:21: acquire_memory: allocated here
selinux-3.9/policycoreutils/sestatus/sestatus.c:70:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/sestatus/sestatus.c:76:13: branch_false: ...to here
selinux-3.9/policycoreutils/sestatus/sestatus.c:80:22: danger: ‘opendir("/proc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
selinux-3.9/policycoreutils/setfiles/setfiles.c:241:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(optarg, "r")’
selinux-3.9/policycoreutils/setfiles/setfiles.c:164:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:168:27: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:169:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:173:16: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:223:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:224:17: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:231:48: acquire_resource: opened here
selinux-3.9/policycoreutils/setfiles/setfiles.c:232:36: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:238:33: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:241:37: danger: ‘fopen(optarg, "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
selinux-3.9/policycoreutils/setfiles/setfiles.c:241:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(optarg, "r")’
selinux-3.9/policycoreutils/setfiles/setfiles.c:164:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:168:27: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:169:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:173:16: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:223:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:224:17: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:231:48: acquire_memory: allocated here
selinux-3.9/policycoreutils/setfiles/setfiles.c:232:36: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:238:33: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:241:37: danger: ‘fopen(optarg, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
selinux-3.9/policycoreutils/setfiles/setfiles.c:452:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
selinux-3.9/policycoreutils/setfiles/setfiles.c:164:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:168:27: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:169:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:173:16: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:223:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:224:17: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:223:16: branch_false: following ‘false’ branch (when ‘opt <= 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:384:14: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:425:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:429:53: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:430:37: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:430:9: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:435:12: branch_true: following ‘true’ branch (when ‘use_input_file != 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:436:23: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:440:20: branch_true: following ‘true’ branch (when the strings are non-equal)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:441:29: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:441:29: acquire_resource: opened here
selinux-3.9/policycoreutils/setfiles/setfiles.c:443:20: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:449:17: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:452:31: danger: ‘f’ leaks here; was opened at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
selinux-3.9/policycoreutils/setfiles/setfiles.c:452:31: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
selinux-3.9/policycoreutils/setfiles/setfiles.c:164:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:168:27: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:169:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:173:16: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:223:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:224:17: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:223:16: branch_false: following ‘false’ branch (when ‘opt <= 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:384:14: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:425:19: branch_false: following ‘false’ branch (when ‘argc > 1’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:429:53: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:430:37: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setfiles/setfiles.c:430:9: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:435:12: branch_true: following ‘true’ branch (when ‘use_input_file != 0’)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:436:23: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:440:20: branch_true: following ‘true’ branch (when the strings are non-equal)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:441:29: branch_true: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:441:29: acquire_memory: allocated here
selinux-3.9/policycoreutils/setfiles/setfiles.c:443:20: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
selinux-3.9/policycoreutils/setfiles/setfiles.c:449:17: branch_false: ...to here
selinux-3.9/policycoreutils/setfiles/setfiles.c:452:31: danger: ‘f’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
selinux-3.9/policycoreutils/setsebool/setsebool.c:99:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_true: following ‘true’ branch (when ‘i < end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:233:28: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:235:20: branch_false: following ‘false’ branch (when ‘value_ptr’ is non-NULL)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:241:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:258:35: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:259:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:261:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:273:21: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:273:21: call_function: calling ‘selinux_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
selinux-3.9/policycoreutils/setsebool/setsebool.c:99:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:273:21: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:273:21: call_function: calling ‘selinux_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
selinux-3.9/policycoreutils/setsebool/setsebool.c:128:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
selinux-3.9/policycoreutils/setsebool/setsebool.c:128:23: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
selinux-3.9/policycoreutils/setsebool/setsebool.c:130:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
selinux-3.9/policycoreutils/setsebool/setsebool.c:130:18: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
selinux-3.9/policycoreutils/setsebool/setsebool.c:137:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
selinux-3.9/policycoreutils/setsebool/setsebool.c:137:17: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
selinux-3.9/policycoreutils/setsebool/setsebool.c:140:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
selinux-3.9/policycoreutils/setsebool/setsebool.c:140:19: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
selinux-3.9/policycoreutils/setsebool/setsebool.c:157:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
selinux-3.9/policycoreutils/setsebool/setsebool.c:157:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
selinux-3.9/policycoreutils/setsebool/setsebool.c:160:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
selinux-3.9/policycoreutils/setsebool/setsebool.c:160:13: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
selinux-3.9/policycoreutils/setsebool/setsebool.c:165:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:34:5: enter_function: entry to ‘main’
selinux-3.9/policycoreutils/setsebool/setsebool.c:38:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:62:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:24: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:70:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:74:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:78:23: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:80:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:85:31: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:86:22: call_function: calling ‘setbool’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
selinux-3.9/policycoreutils/setsebool/setsebool.c:165:21: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
selinux-3.9/policycoreutils/setsebool/setsebool.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of ‘vallist’
selinux-3.9/policycoreutils/setsebool/setsebool.c:221:5: enter_function: entry to ‘setbool’
selinux-3.9/policycoreutils/setsebool/setsebool.c:228:31: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_false: following ‘false’ branch (when ‘i >= end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:13: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_true: following ‘true’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:270:21: call_function: calling ‘semanage_set_boolean_list’ from ‘setbool’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
selinux-3.9/policycoreutils/setsebool/setsebool.c:283:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value_ptr’
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:235:20: branch_false: following ‘false’ branch (when ‘value_ptr’ is non-NULL)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:241:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:259:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:261:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:269:12: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:273:21: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:273:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:278:15: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:280:16: branch_true: following ‘true’ branch (when ‘i < end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:281:28: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:283:17: danger: dereference of NULL ‘value_ptr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
selinux-3.9/policycoreutils/setsebool/setsebool.c:308:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/policycoreutils/setsebool/setsebool.c:229:12: branch_false: following ‘false’ branch (when ‘vallist’ is non-NULL)...
branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_true: following ‘true’ branch (when ‘i < end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:233:28: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:235:20: branch_false: following ‘false’ branch (when ‘value_ptr’ is non-NULL)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:241:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:258:35: acquire_memory: allocated here
selinux-3.9/policycoreutils/setsebool/setsebool.c:259:20: branch_false: following ‘false’ branch...
selinux-3.9/policycoreutils/setsebool/setsebool.c:261:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:232:16: branch_true: following ‘true’ branch (when ‘i < end’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:233:28: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:235:20: branch_true: following ‘true’ branch (when ‘value_ptr’ is NULL)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:236:25: branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:305:12: branch_true: following ‘true’ branch (when ‘vallist’ is non-NULL)...
branch_true: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:306:29: branch_false: following ‘false’ branch (when ‘i >= boolcnt’)...
selinux-3.9/policycoreutils/setsebool/setsebool.c:308:17: branch_false: ...to here
selinux-3.9/policycoreutils/setsebool/setsebool.c:308:17: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:183:14: acquire_resource: opened here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:184:12: branch_false: following ‘false’ branch...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:183:14: acquire_memory: allocated here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:184:12: branch_false: following ‘false’ branch...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘pf.fp’
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:183:14: acquire_resource: opened here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:184:12: branch_false: following ‘false’ branch...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:195:12: branch_false: following ‘false’ branch (when ‘policydb’ is non-NULL)...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: danger: ‘pf.fp’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pf.fp’
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:183:14: acquire_memory: allocated here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:184:12: branch_false: following ‘false’ branch...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:195:12: branch_false: following ‘false’ branch (when ‘policydb’ is non-NULL)...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: danger: ‘pf.fp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: warning[-Wanalyzer-malloc-leak]: leak of ‘policydb’
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:184:12: branch_false: following ‘false’ branch...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:190:9: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:194:20: acquire_memory: allocated here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:195:12: branch_false: following ‘false’ branch (when ‘policydb’ is non-NULL)...
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: branch_false: ...to here
selinux-3.9/python/audit2allow/sepolgen-ifgen-attr-helper.c:201:13: danger: ‘policydb’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
selinux-3.9/restorecond/stringslist.c:52:17: warning[-Wanalyzer-malloc-leak]: leak of ‘newptr’
selinux-3.9/restorecond/stringslist.c:38:16: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
selinux-3.9/restorecond/stringslist.c:47:18: branch_false: ...to here
selinux-3.9/restorecond/stringslist.c:47:18: acquire_memory: allocated here
selinux-3.9/restorecond/stringslist.c:48:12: branch_false: following ‘false’ branch (when ‘newptr’ is non-NULL)...
selinux-3.9/restorecond/stringslist.c:50:26: branch_false: ...to here
selinux-3.9/restorecond/stringslist.c:51:12: branch_true: following ‘true’ branch...
selinux-3.9/restorecond/stringslist.c:52:17: branch_true: ...to here
selinux-3.9/restorecond/stringslist.c:52:17: danger: ‘newptr’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
selinux-3.9/restorecond/utmpwatcher.c:64:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/run/utmp", "r")’
selinux-3.9/restorecond/utmpwatcher.c:54:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/utmpwatcher.c:57:9: branch_false: ...to here
selinux-3.9/restorecond/utmpwatcher.c:58:21: acquire_resource: opened here
selinux-3.9/restorecond/utmpwatcher.c:59:12: branch_false: following ‘false’ branch...
branch_false: ...to here
selinux-3.9/restorecond/utmpwatcher.c:62:16: branch_true: following ‘true’ branch...
selinux-3.9/restorecond/utmpwatcher.c:63:21: branch_true: ...to here
selinux-3.9/restorecond/utmpwatcher.c:64:25: danger: ‘fopen("/run/utmp", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
selinux-3.9/restorecond/utmpwatcher.c:64:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/run/utmp", "r")’
selinux-3.9/restorecond/utmpwatcher.c:54:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/utmpwatcher.c:57:9: branch_false: ...to here
selinux-3.9/restorecond/utmpwatcher.c:58:21: acquire_memory: allocated here
selinux-3.9/restorecond/utmpwatcher.c:59:12: branch_false: following ‘false’ branch...
branch_false: ...to here
selinux-3.9/restorecond/utmpwatcher.c:62:16: branch_true: following ‘true’ branch...
selinux-3.9/restorecond/utmpwatcher.c:63:21: branch_true: ...to here
selinux-3.9/restorecond/utmpwatcher.c:64:25: danger: ‘fopen("/run/utmp", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
selinux-3.9/restorecond/watch.c:103:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
selinux-3.9/restorecond/watch.c:265:6: enter_function: entry to ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: call_function: calling ‘watch_list_free’ from ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: return_function: returning to ‘read_config’ from ‘watch_list_free’
selinux-3.9/restorecond/watch.c:275:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/watch.c:279:9: branch_false: ...to here
selinux-3.9/restorecond/watch.c:279:9: call_function: calling ‘process_config’ from ‘read_config’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
selinux-3.9/restorecond/watch.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
selinux-3.9/restorecond/watch.c:265:6: enter_function: entry to ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: call_function: calling ‘watch_list_free’ from ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: return_function: returning to ‘read_config’ from ‘watch_list_free’
selinux-3.9/restorecond/watch.c:275:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/watch.c:279:9: branch_false: ...to here
selinux-3.9/restorecond/watch.c:279:9: call_function: calling ‘process_config’ from ‘read_config’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
selinux-3.9/restorecond/watch.c:105:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
selinux-3.9/restorecond/watch.c:265:6: enter_function: entry to ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: call_function: calling ‘watch_list_free’ from ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: return_function: returning to ‘read_config’ from ‘watch_list_free’
selinux-3.9/restorecond/watch.c:275:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/watch.c:279:9: branch_false: ...to here
selinux-3.9/restorecond/watch.c:279:9: call_function: calling ‘process_config’ from ‘read_config’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
selinux-3.9/restorecond/watch.c:285:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(watch_file_path, "r")’
selinux-3.9/restorecond/watch.c:265:6: enter_function: entry to ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: call_function: calling ‘watch_list_free’ from ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: return_function: returning to ‘read_config’ from ‘watch_list_free’
selinux-3.9/restorecond/watch.c:274:15: acquire_resource: opened here
selinux-3.9/restorecond/watch.c:275:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/watch.c:279:9: branch_false: ...to here
selinux-3.9/restorecond/watch.c:279:9: call_function: calling ‘process_config’ from ‘read_config’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
selinux-3.9/restorecond/watch.c:285:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(watch_file_path, "r")’
selinux-3.9/restorecond/watch.c:265:6: enter_function: entry to ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: call_function: calling ‘watch_list_free’ from ‘read_config’
selinux-3.9/restorecond/watch.c:272:9: return_function: returning to ‘read_config’ from ‘watch_list_free’
selinux-3.9/restorecond/watch.c:274:15: acquire_memory: allocated here
selinux-3.9/restorecond/watch.c:275:12: branch_false: following ‘false’ branch...
selinux-3.9/restorecond/watch.c:279:9: branch_false: ...to here
selinux-3.9/restorecond/watch.c:279:9: call_function: calling ‘process_config’ from ‘read_config’
Error: CPPCHECK_WARNING (CWE-476): [#def62]
selinux-3.9/sandbox/seunshare.c:310: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fptr
Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
selinux-3.9/sandbox/seunshare.c:310:18: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(dst, "w")’ where non-null expected
selinux-3.9/sandbox/seunshare.c:307:12: branch_true: following ‘true’ branch...
selinux-3.9/sandbox/seunshare.c:309:17: branch_true: ...to here
selinux-3.9/sandbox/seunshare.c:309:17: acquire_memory: this call could return NULL
selinux-3.9/sandbox/seunshare.c:310:18: danger: argument 1 (‘fopen(dst, "w")’) from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
selinux-3.9/sandbox/seunshare.c:598:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
selinux-3.9/sandbox/seunshare.c:592:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:597:12: branch_true: following ‘true’ branch (when ‘pid_table’ is NULL)...
selinux-3.9/sandbox/seunshare.c:598:23: branch_true: ...to here
selinux-3.9/sandbox/seunshare.c:598:23: danger: ‘opendir("/proc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
selinux-3.9/sandbox/seunshare.c:603:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
selinux-3.9/sandbox/seunshare.c:592:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:597:12: branch_false: following ‘false’ branch (when ‘pid_table’ is non-NULL)...
selinux-3.9/sandbox/seunshare.c:603:15: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:603:15: danger: ‘opendir("/proc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
selinux-3.9/sandbox/seunshare.c:603:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pid_table’
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:596:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:597:12: branch_false: following ‘false’ branch (when ‘pid_table’ is non-NULL)...
selinux-3.9/sandbox/seunshare.c:603:15: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:603:15: danger: ‘pid_table’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
selinux-3.9/sandbox/seunshare.c:604:27: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
selinux-3.9/sandbox/seunshare.c:592:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:597:12: branch_false: following ‘false’ branch (when ‘pid_table’ is non-NULL)...
selinux-3.9/sandbox/seunshare.c:603:15: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:604:27: danger: ‘opendir("/proc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
selinux-3.9/sandbox/seunshare.c:604:27: warning[-Wanalyzer-malloc-leak]: leak of ‘pid_table’
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:596:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:597:12: branch_false: following ‘false’ branch (when ‘pid_table’ is non-NULL)...
selinux-3.9/sandbox/seunshare.c:603:15: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:604:27: danger: ‘pid_table’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
selinux-3.9/sandbox/seunshare.c:606:22: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc")’
selinux-3.9/sandbox/seunshare.c:592:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:597:12: branch_false: following ‘false’ branch (when ‘pid_table’ is non-NULL)...
selinux-3.9/sandbox/seunshare.c:603:15: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:606:22: danger: ‘opendir("/proc")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
selinux-3.9/sandbox/seunshare.c:606:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pid_table’
selinux-3.9/sandbox/seunshare.c:592:12: branch_false: following ‘false’ branch...
selinux-3.9/sandbox/seunshare.c:596:21: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:596:21: acquire_memory: allocated here
selinux-3.9/sandbox/seunshare.c:597:12: branch_false: following ‘false’ branch (when ‘pid_table’ is non-NULL)...
selinux-3.9/sandbox/seunshare.c:603:15: branch_false: ...to here
selinux-3.9/sandbox/seunshare.c:606:22: danger: ‘pid_table’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(basename, "re")’
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:93:12: branch_false: following ‘false’ branch (when ‘show_version == 0’)...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:111:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:127:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:127:14: acquire_resource: opened here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:128:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: danger: ‘fopen(basename, "re")’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(basename, "re")’
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:93:12: branch_false: following ‘false’ branch (when ‘show_version == 0’)...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:111:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:127:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:127:14: acquire_memory: allocated here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:128:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: danger: ‘fopen(basename, "re")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:181:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outname, "we")’
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:93:12: branch_false: following ‘false’ branch (when ‘show_version == 0’)...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:111:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:127:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:128:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:136:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:142:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:147:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:154:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:154:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:159:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:161:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:166:12: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:166:12: branch_false: following ‘false’ branch (when ‘policyvers == 0’)...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:174:19: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:174:19: acquire_resource: opened here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:175:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:181:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:181:9: danger: ‘fopen(outname, "we")’ leaks here; was opened at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:181:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outname, "we")’
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:93:12: branch_false: following ‘false’ branch (when ‘show_version == 0’)...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:99:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:111:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:116:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:122:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:127:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:128:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:134:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:136:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:142:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:147:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:154:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:154:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:159:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:161:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:166:12: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:166:12: branch_false: following ‘false’ branch (when ‘policyvers == 0’)...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:174:19: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:174:19: acquire_memory: allocated here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:175:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:181:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_expand/semodule_expand.c:181:9: danger: ‘fopen(outname, "we")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:51:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "re")’
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:37:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:41:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:41:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:45:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:45:14: acquire_resource: opened here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:46:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:51:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:51:9: danger: ‘fopen(filename, "re")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:51:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "re")’
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:37:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:41:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:41:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:45:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:45:14: acquire_memory: allocated here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:46:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:51:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_link/semodule_link.c:51:9: danger: ‘fopen(filename, "re")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(ppfile, "r")’
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:28:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:33:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:35:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: acquire_resource: opened here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:49:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: danger: ‘fopen(ppfile, "r")’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(ppfile, "r")’
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:28:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:33:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:35:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: acquire_memory: allocated here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:49:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: danger: ‘fopen(ppfile, "r")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(modfile, "w")’
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:28:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:33:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:35:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:49:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:55:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:61:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:66:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:71:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:71:14: acquire_resource: opened here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:72:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: danger: ‘fopen(modfile, "w")’ leaks here; was opened at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(modfile, "w")’
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:28:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:33:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:35:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:49:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:55:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:61:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:66:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:71:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:71:14: acquire_memory: allocated here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:72:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: danger: ‘fopen(modfile, "w")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:100:26: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fcfile, "w")’
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:28:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:33:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:35:12: branch_true: following ‘true’ branch (when ‘argc != 3’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:36:17: branch_true: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:49:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:55:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:61:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:66:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:71:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:72:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:78:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:83:15: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:85:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:90:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:94:12: branch_true: following ‘true’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:95:22: branch_true: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:95:22: acquire_resource: opened here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:96:20: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:100:26: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:100:26: danger: ‘fopen(fcfile, "w")’ leaks here; was opened at [(23)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:100:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fcfile, "w")’
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:28:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:33:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:35:12: branch_true: following ‘true’ branch (when ‘argc != 3’)...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:36:17: branch_true: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:38:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:13: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:43:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:48:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:49:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:53:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:55:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:61:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:66:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:71:14: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:72:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:76:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:78:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:83:15: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:85:12: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:90:9: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:94:12: branch_true: following ‘true’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:95:22: branch_true: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:95:22: acquire_memory: allocated here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:96:20: branch_false: following ‘false’ branch...
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:100:26: branch_false: ...to here
selinux-3.9/semodule-utils/semodule_package/semodule_unpackage.c:100:26: danger: ‘fopen(fcfile, "w")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22)
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-214.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 | policycoreutils-3.9-5.fc44 |
| store-results-to | /tmp/tmp6mc1xnoe/policycoreutils-3.9-5.fc44.tar.xz |
| time-created | 2025-10-28 19:50:14 |
| time-finished | 2025-10-28 19:51:52 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp6mc1xnoe/policycoreutils-3.9-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp6mc1xnoe/policycoreutils-3.9-5.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |