libselinux-3.9-5.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libselinux-3.9/src/audit2why.c:59:37: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(sepol_bool_get_name(boolean))’
libselinux-3.9/src/audit2why.c:58:35: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:59:37: danger: ‘strdup(sepol_bool_get_name(boolean))’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libselinux-3.9/src/audit2why.c:82:22: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:82:22: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libselinux-3.9/src/audit2why.c:84:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:84:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:84:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libselinux-3.9/src/audit2why.c:88:22: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:88:22: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libselinux-3.9/src/audit2why.c:95:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:93:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:95:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libselinux-3.9/src/audit2why.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:99:17: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libselinux-3.9/src/audit2why.c:101:22: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:101:22: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libselinux-3.9/src/audit2why.c:107:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:105:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:107:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libselinux-3.9/src/audit2why.c:112:22: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:112:22: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libselinux-3.9/src/audit2why.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:115:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:117:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libselinux-3.9/src/audit2why.c:119:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:115:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:119:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libselinux-3.9/src/audit2why.c:126:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:122:29: branch_false: ...to here
libselinux-3.9/src/audit2why.c:122:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:126:25: branch_false: ...to here
libselinux-3.9/src/audit2why.c:126:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libselinux-3.9/src/audit2why.c:127:30: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:122:29: branch_false: ...to here
libselinux-3.9/src/audit2why.c:122:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:126:25: branch_false: ...to here
libselinux-3.9/src/audit2why.c:127:30: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libselinux-3.9/src/audit2why.c:135:33: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:122:29: branch_false: ...to here
libselinux-3.9/src/audit2why.c:122:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:126:25: branch_false: ...to here
libselinux-3.9/src/audit2why.c:130:28: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:131:33: branch_true: ...to here
libselinux-3.9/src/audit2why.c:135:33: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libselinux-3.9/src/audit2why.c:139:17: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:122:29: branch_false: ...to here
libselinux-3.9/src/audit2why.c:122:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:126:25: branch_false: ...to here
libselinux-3.9/src/audit2why.c:130:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:139:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:139:17: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libselinux-3.9/src/audit2why.c:140:17: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:122:29: branch_false: ...to here
libselinux-3.9/src/audit2why.c:122:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:126:25: branch_false: ...to here
libselinux-3.9/src/audit2why.c:130:28: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:139:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:140:17: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libselinux-3.9/src/audit2why.c:145:17: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:84:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:144:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:145:17: branch_true: ...to here
libselinux-3.9/src/audit2why.c:145:17: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libselinux-3.9/src/audit2why.c:148:17: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:147:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:148:17: branch_true: ...to here
libselinux-3.9/src/audit2why.c:148:17: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libselinux-3.9/src/audit2why.c:153:25: warning[-Wanalyzer-malloc-leak]: leak of ‘foundlist’
libselinux-3.9/src/audit2why.c:74:26: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:75:12: branch_false: following ‘false’ branch (when ‘foundlist’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/audit2why.c:79:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:80:38: branch_true: ...to here
libselinux-3.9/src/audit2why.c:83:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:88:22: branch_false: ...to here
libselinux-3.9/src/audit2why.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:99:17: branch_false: ...to here
libselinux-3.9/src/audit2why.c:104:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:113:49: branch_false: ...to here
libselinux-3.9/src/audit2why.c:114:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:122:29: branch_false: ...to here
libselinux-3.9/src/audit2why.c:150:12: branch_true: following ‘true’ branch (when ‘fcnt != 0’)...
libselinux-3.9/src/audit2why.c:151:33: branch_true: ...to here
libselinux-3.9/src/audit2why.c:152:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:153:25: branch_true: ...to here
libselinux-3.9/src/audit2why.c:153:25: danger: ‘foundlist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
libselinux-3.9/src/audit2why.c:231:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_resource: opened here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:231:17: branch_true: ...to here
libselinux-3.9/src/audit2why.c:231:17: danger: ‘fopen(curpolicy, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libselinux-3.9/src/audit2why.c:231:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/audit2why.c:231:17: branch_true: ...to here
libselinux-3.9/src/audit2why.c:231:17: danger: ‘fopen(curpolicy, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
libselinux-3.9/src/audit2why.c:239:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_resource: opened here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:13: danger: ‘fopen(curpolicy, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libselinux-3.9/src/audit2why.c:239:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:13: danger: ‘fopen(curpolicy, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
libselinux-3.9/src/audit2why.c:240:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_resource: opened here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:240:39: branch_false: ...to here
libselinux-3.9/src/audit2why.c:240:13: danger: ‘fopen(curpolicy, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libselinux-3.9/src/audit2why.c:240:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:240:39: branch_false: ...to here
libselinux-3.9/src/audit2why.c:240:13: danger: ‘fopen(curpolicy, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
libselinux-3.9/src/audit2why.c:243:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_resource: opened here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:243:17: danger: ‘fopen(curpolicy, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libselinux-3.9/src/audit2why.c:243:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:243:17: danger: ‘fopen(curpolicy, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
libselinux-3.9/src/audit2why.c:246:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_resource: opened here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:240:39: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:13: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:246:9: branch_false: ...to here
libselinux-3.9/src/audit2why.c:246:9: danger: ‘fopen(curpolicy, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libselinux-3.9/src/audit2why.c:246:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(curpolicy, "re")’
libselinux-3.9/src/audit2why.c:220:14: acquire_memory: allocated here
libselinux-3.9/src/audit2why.c:221:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:229:15: branch_false: ...to here
libselinux-3.9/src/audit2why.c:230:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:239:13: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:240:39: branch_false: ...to here
libselinux-3.9/src/audit2why.c:239:13: branch_false: following ‘false’ branch...
libselinux-3.9/src/audit2why.c:246:9: branch_false: ...to here
libselinux-3.9/src/audit2why.c:246:9: danger: ‘fopen(curpolicy, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libselinux-3.9/src/avc_internal.h:75:32: warning[-Wanalyzer-malloc-leak]: leak of ‘avc_malloc(24)’
libselinux-3.9/src/avc_sidtab.c:48:1: enter_function: entry to ‘sidtab_insert’
libselinux-3.9/src/avc_sidtab.c:54:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/avc_sidtab.c:57:41: branch_false: ...to here
libselinux-3.9/src/avc_sidtab.c:57:41: call_function: calling ‘avc_malloc’ from ‘sidtab_insert’
libselinux-3.9/src/avc_sidtab.c:57:41: return_function: returning to ‘sidtab_insert’ from ‘avc_malloc’
libselinux-3.9/src/avc_sidtab.c:58:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/avc_sidtab.c:60:18: branch_false: ...to here
libselinux-3.9/src/avc_sidtab.c:61:12: branch_true: following ‘true’ branch (when ‘newctx’ is NULL)...
libselinux-3.9/src/avc_sidtab.c:62:17: branch_true: ...to here
libselinux-3.9/src/avc_sidtab.c:62:17: call_function: calling ‘avc_free’ from ‘sidtab_insert’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libselinux-3.9/src/booleans.c:106:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/booleans.c:235:5: enter_function: entry to ‘security_get_boolean_pending’
libselinux-3.9/src/booleans.c:240:13: call_function: calling ‘get_bool_value’ from ‘security_get_boolean_pending’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libselinux-3.9/src/booleans.c:174:14: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/booleans.c:235:5: enter_function: entry to ‘security_get_boolean_pending’
libselinux-3.9/src/booleans.c:240:13: call_function: calling ‘get_bool_value’ from ‘security_get_boolean_pending’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
libselinux-3.9/src/booleans.c:320:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/booleans.c:307:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/booleans.c:312:9: branch_false: ...to here
libselinux-3.9/src/booleans.c:313:14: acquire_resource: opened here
libselinux-3.9/src/booleans.c:314:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/booleans.c:317:9: branch_false: ...to here
libselinux-3.9/src/booleans.c:320:15: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
libselinux-3.9/src/booleans.c:323:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/booleans.c:307:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/booleans.c:312:9: branch_false: ...to here
libselinux-3.9/src/booleans.c:313:14: acquire_resource: opened here
libselinux-3.9/src/booleans.c:314:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/booleans.c:317:9: branch_false: ...to here
libselinux-3.9/src/booleans.c:323:12: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
libselinux-3.9/src/canonicalize_context.c:42:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/canonicalize_context.c:20:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:25:9: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:26:14: acquire_resource: opened here
libselinux-3.9/src/canonicalize_context.c:27:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:30:9: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:32:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/canonicalize_context.c:36:13: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:36:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:42:30: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:42:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
libselinux-3.9/src/canonicalize_context.c:63:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/canonicalize_context.c:20:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:25:9: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:26:14: acquire_resource: opened here
libselinux-3.9/src/canonicalize_context.c:27:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:30:9: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:63:9: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libselinux-3.9/src/canonicalize_context.c:63:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rcanoncon’
libselinux-3.9/src/canonicalize_context.c:68:5: enter_function: entry to ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:75:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:78:15: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:78:15: call_function: calling ‘security_canonicalize_context_raw’ from ‘security_canonicalize_context’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libselinux-3.9/src/canonicalize_context.c:80:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rcanoncon’
libselinux-3.9/src/canonicalize_context.c:68:5: enter_function: entry to ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:75:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:78:15: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:78:15: call_function: calling ‘security_canonicalize_context_raw’ from ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:78:15: return_function: returning to ‘security_canonicalize_context’ from ‘security_canonicalize_context_raw’
libselinux-3.9/src/canonicalize_context.c:80:9: danger: ‘rcanoncon’ leaks here; was allocated at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libselinux-3.9/src/canonicalize_context.c:82:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rcanoncon’
libselinux-3.9/src/canonicalize_context.c:68:5: enter_function: entry to ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:75:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:78:15: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:78:15: call_function: calling ‘security_canonicalize_context_raw’ from ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:78:15: return_function: returning to ‘security_canonicalize_context’ from ‘security_canonicalize_context_raw’
libselinux-3.9/src/canonicalize_context.c:81:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/canonicalize_context.c:82:23: branch_true: ...to here
libselinux-3.9/src/canonicalize_context.c:82:23: danger: ‘rcanoncon’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libselinux-3.9/src/canonicalize_context.c:83:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rcanoncon’
libselinux-3.9/src/canonicalize_context.c:68:5: enter_function: entry to ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:75:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/canonicalize_context.c:78:15: branch_false: ...to here
libselinux-3.9/src/canonicalize_context.c:78:15: call_function: calling ‘security_canonicalize_context_raw’ from ‘security_canonicalize_context’
libselinux-3.9/src/canonicalize_context.c:78:15: return_function: returning to ‘security_canonicalize_context’ from ‘security_canonicalize_context_raw’
libselinux-3.9/src/canonicalize_context.c:81:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/canonicalize_context.c:82:23: branch_true: ...to here
libselinux-3.9/src/canonicalize_context.c:83:17: danger: ‘rcanoncon’ leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
libselinux-3.9/src/check_context.c:27:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/check_context.c:17:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/check_context.c:22:9: branch_false: ...to here
libselinux-3.9/src/check_context.c:23:14: acquire_resource: opened here
libselinux-3.9/src/check_context.c:24:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/check_context.c:27:30: branch_false: ...to here
libselinux-3.9/src/check_context.c:27:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
libselinux-3.9/src/check_context.c:29:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/check_context.c:17:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/check_context.c:22:9: branch_false: ...to here
libselinux-3.9/src/check_context.c:23:14: acquire_resource: opened here
libselinux-3.9/src/check_context.c:24:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/check_context.c:27:30: branch_false: ...to here
libselinux-3.9/src/check_context.c:29:12: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
libselinux-3.9/src/checkreqprot.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/checkreqprot.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/checkreqprot.c:23:9: branch_false: ...to here
libselinux-3.9/src/checkreqprot.c:24:14: acquire_resource: opened here
libselinux-3.9/src/checkreqprot.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/checkreqprot.c:28:9: branch_false: ...to here
libselinux-3.9/src/checkreqprot.c:31:12: danger: ‘open(&path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
libselinux-3.9/src/compute_av.c:42:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_av.c:42:18: branch_false: ...to here
libselinux-3.9/src/compute_av.c:42:18: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libselinux-3.9/src/compute_av.c:42:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:36:15: acquire_memory: allocated here
libselinux-3.9/src/compute_av.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_av.c:42:18: branch_false: ...to here
libselinux-3.9/src/compute_av.c:42:18: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
libselinux-3.9/src/compute_av.c:44:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_av.c:42:18: branch_false: ...to here
libselinux-3.9/src/compute_av.c:44:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libselinux-3.9/src/compute_av.c:44:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:36:15: acquire_memory: allocated here
libselinux-3.9/src/compute_av.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_av.c:42:18: branch_false: ...to here
libselinux-3.9/src/compute_av.c:44:15: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
libselinux-3.9/src/compute_av.c:52:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_av.c:42:18: branch_false: ...to here
libselinux-3.9/src/compute_av.c:46:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:52:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
libselinux-3.9/src/compute_av.c:79:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_av.c:42:18: branch_false: ...to here
libselinux-3.9/src/compute_av.c:46:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:53:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_av.c:56:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:58:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_av.c:61:15: branch_false: ...to here
libselinux-3.9/src/compute_av.c:65:12: branch_false: following ‘false’ branch (when ‘ret > 4’)...
libselinux-3.9/src/compute_av.c:68:19: branch_false: ...to here
libselinux-3.9/src/compute_av.c:68:19: branch_false: following ‘false’ branch (when ‘ret != 5’)...
libselinux-3.9/src/compute_av.c:78:12: branch_false: ...to here
libselinux-3.9/src/compute_av.c:78:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_av.c:79:17: branch_true: ...to here
libselinux-3.9/src/compute_av.c:79:17: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
libselinux-3.9/src/compute_av.c:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_av.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:30:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_av.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_av.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_av.c:85:9: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
libselinux-3.9/src/compute_create.c:80:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_create.c:62:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_create.c:67:9: branch_false: ...to here
libselinux-3.9/src/compute_create.c:68:14: acquire_resource: opened here
libselinux-3.9/src/compute_create.c:69:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_create.c:72:9: branch_false: ...to here
libselinux-3.9/src/compute_create.c:74:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_create.c:80:36: branch_false: ...to here
libselinux-3.9/src/compute_create.c:80:36: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libselinux-3.9/src/compute_create.c:80:36: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/compute_create.c:62:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_create.c:67:9: branch_false: ...to here
libselinux-3.9/src/compute_create.c:69:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_create.c:72:9: branch_false: ...to here
libselinux-3.9/src/compute_create.c:73:15: acquire_memory: allocated here
libselinux-3.9/src/compute_create.c:74:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_create.c:80:36: branch_false: ...to here
libselinux-3.9/src/compute_create.c:80:36: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
libselinux-3.9/src/compute_create.c:94:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_create.c:116:5: enter_function: entry to ‘security_compute_create_raw’
libselinux-3.9/src/compute_create.c:121:16: call_function: calling ‘security_compute_create_name_raw’ from ‘security_compute_create_raw’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
libselinux-3.9/src/compute_create.c:112:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_create.c:116:5: enter_function: entry to ‘security_compute_create_raw’
libselinux-3.9/src/compute_create.c:121:16: call_function: calling ‘security_compute_create_name_raw’ from ‘security_compute_create_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libselinux-3.9/src/compute_create.c:112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_create.c:155:5: enter_function: entry to ‘security_compute_create’
libselinux-3.9/src/compute_create.c:160:16: call_function: calling ‘security_compute_create_name’ from ‘security_compute_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libselinux-3.9/src/compute_create.c:145:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_create.c:155:5: enter_function: entry to ‘security_compute_create’
libselinux-3.9/src/compute_create.c:160:16: call_function: calling ‘security_compute_create_name’ from ‘security_compute_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libselinux-3.9/src/compute_create.c:146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_create.c:155:5: enter_function: entry to ‘security_compute_create’
libselinux-3.9/src/compute_create.c:160:16: call_function: calling ‘security_compute_create_name’ from ‘security_compute_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libselinux-3.9/src/compute_create.c:148:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_create.c:155:5: enter_function: entry to ‘security_compute_create’
libselinux-3.9/src/compute_create.c:160:16: call_function: calling ‘security_compute_create_name’ from ‘security_compute_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libselinux-3.9/src/compute_create.c:149:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_create.c:155:5: enter_function: entry to ‘security_compute_create’
libselinux-3.9/src/compute_create.c:160:16: call_function: calling ‘security_compute_create_name’ from ‘security_compute_create’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
libselinux-3.9/src/compute_member.c:40:60: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_member.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:29:14: acquire_resource: opened here
libselinux-3.9/src/compute_member.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:35:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_member.c:40:60: branch_false: ...to here
libselinux-3.9/src/compute_member.c:40:60: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libselinux-3.9/src/compute_member.c:40:60: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/compute_member.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:34:15: acquire_memory: allocated here
libselinux-3.9/src/compute_member.c:35:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_member.c:40:60: branch_false: ...to here
libselinux-3.9/src/compute_member.c:40:60: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
libselinux-3.9/src/compute_member.c:47:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_member.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:29:14: acquire_resource: opened here
libselinux-3.9/src/compute_member.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:35:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_member.c:40:60: branch_false: ...to here
libselinux-3.9/src/compute_member.c:41:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:47:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
libselinux-3.9/src/compute_member.c:65:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_member.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:29:14: acquire_resource: opened here
libselinux-3.9/src/compute_member.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_member.c:65:9: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libselinux-3.9/src/compute_member.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_member.c:70:5: enter_function: entry to ‘security_compute_member’
libselinux-3.9/src/compute_member.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_member.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_member.c:87:15: call_function: calling ‘security_compute_member_raw’ from ‘security_compute_member’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libselinux-3.9/src/compute_member.c:89:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_member.c:70:5: enter_function: entry to ‘security_compute_member’
libselinux-3.9/src/compute_member.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_member.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_member.c:87:15: call_function: calling ‘security_compute_member_raw’ from ‘security_compute_member’
libselinux-3.9/src/compute_member.c:87:15: return_function: returning to ‘security_compute_member’ from ‘security_compute_member_raw’
libselinux-3.9/src/compute_member.c:89:9: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
libselinux-3.9/src/compute_member.c:90:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_member.c:70:5: enter_function: entry to ‘security_compute_member’
libselinux-3.9/src/compute_member.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_member.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_member.c:87:15: call_function: calling ‘security_compute_member_raw’ from ‘security_compute_member’
libselinux-3.9/src/compute_member.c:87:15: return_function: returning to ‘security_compute_member’ from ‘security_compute_member_raw’
libselinux-3.9/src/compute_member.c:90:9: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libselinux-3.9/src/compute_member.c:92:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_member.c:70:5: enter_function: entry to ‘security_compute_member’
libselinux-3.9/src/compute_member.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_member.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_member.c:87:15: call_function: calling ‘security_compute_member_raw’ from ‘security_compute_member’
libselinux-3.9/src/compute_member.c:87:15: return_function: returning to ‘security_compute_member’ from ‘security_compute_member_raw’
libselinux-3.9/src/compute_member.c:91:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_member.c:92:21: branch_true: ...to here
libselinux-3.9/src/compute_member.c:92:21: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libselinux-3.9/src/compute_member.c:96:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_member.c:70:5: enter_function: entry to ‘security_compute_member’
libselinux-3.9/src/compute_member.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_member.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_member.c:87:15: call_function: calling ‘security_compute_member_raw’ from ‘security_compute_member’
libselinux-3.9/src/compute_member.c:87:15: return_function: returning to ‘security_compute_member’ from ‘security_compute_member_raw’
libselinux-3.9/src/compute_member.c:91:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_member.c:92:21: branch_true: ...to here
libselinux-3.9/src/compute_member.c:92:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_member.c:96:17: branch_false: ...to here
libselinux-3.9/src/compute_member.c:96:17: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
libselinux-3.9/src/compute_relabel.c:40:60: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_relabel.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:29:14: acquire_resource: opened here
libselinux-3.9/src/compute_relabel.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:35:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_relabel.c:40:60: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:40:60: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libselinux-3.9/src/compute_relabel.c:40:60: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/compute_relabel.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:34:15: acquire_memory: allocated here
libselinux-3.9/src/compute_relabel.c:35:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_relabel.c:40:60: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:40:60: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
libselinux-3.9/src/compute_relabel.c:47:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_relabel.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:29:14: acquire_resource: opened here
libselinux-3.9/src/compute_relabel.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:35:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_relabel.c:40:60: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:41:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:47:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
libselinux-3.9/src/compute_relabel.c:65:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_relabel.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:29:14: acquire_resource: opened here
libselinux-3.9/src/compute_relabel.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:33:9: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:65:9: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libselinux-3.9/src/compute_relabel.c:65:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_relabel.c:70:5: enter_function: entry to ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:87:15: call_function: calling ‘security_compute_relabel_raw’ from ‘security_compute_relabel’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libselinux-3.9/src/compute_relabel.c:89:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_relabel.c:70:5: enter_function: entry to ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:87:15: call_function: calling ‘security_compute_relabel_raw’ from ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:87:15: return_function: returning to ‘security_compute_relabel’ from ‘security_compute_relabel_raw’
libselinux-3.9/src/compute_relabel.c:89:9: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libselinux-3.9/src/compute_relabel.c:90:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_relabel.c:70:5: enter_function: entry to ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:87:15: call_function: calling ‘security_compute_relabel_raw’ from ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:87:15: return_function: returning to ‘security_compute_relabel’ from ‘security_compute_relabel_raw’
libselinux-3.9/src/compute_relabel.c:90:9: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libselinux-3.9/src/compute_relabel.c:92:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_relabel.c:70:5: enter_function: entry to ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:87:15: call_function: calling ‘security_compute_relabel_raw’ from ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:87:15: return_function: returning to ‘security_compute_relabel’ from ‘security_compute_relabel_raw’
libselinux-3.9/src/compute_relabel.c:91:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_relabel.c:92:23: branch_true: ...to here
libselinux-3.9/src/compute_relabel.c:92:23: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libselinux-3.9/src/compute_relabel.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rnewcon’
libselinux-3.9/src/compute_relabel.c:70:5: enter_function: entry to ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:80:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:82:13: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:82:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_relabel.c:87:15: branch_false: ...to here
libselinux-3.9/src/compute_relabel.c:87:15: call_function: calling ‘security_compute_relabel_raw’ from ‘security_compute_relabel’
libselinux-3.9/src/compute_relabel.c:87:15: return_function: returning to ‘security_compute_relabel’ from ‘security_compute_relabel_raw’
libselinux-3.9/src/compute_relabel.c:91:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_relabel.c:92:23: branch_true: ...to here
libselinux-3.9/src/compute_relabel.c:93:17: danger: ‘rnewcon’ leaks here; was allocated at [(20)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
libselinux-3.9/src/compute_user.c:49:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_user.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:28:9: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_user.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_user.c:42:15: branch_false: ...to here
libselinux-3.9/src/compute_user.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:49:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
libselinux-3.9/src/compute_user.c:73:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_user.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:28:9: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_user.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_user.c:42:15: branch_false: ...to here
libselinux-3.9/src/compute_user.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:50:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_user.c:53:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:55:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_user.c:58:13: branch_false: ...to here
libselinux-3.9/src/compute_user.c:58:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:63:22: branch_false: ...to here
libselinux-3.9/src/compute_user.c:64:12: branch_false: following ‘false’ branch (when ‘ary’ is non-NULL)...
libselinux-3.9/src/compute_user.c:69:21: branch_false: ...to here
libselinux-3.9/src/compute_user.c:70:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:71:20: branch_true: ...to here
libselinux-3.9/src/compute_user.c:72:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:73:25: branch_true: ...to here
libselinux-3.9/src/compute_user.c:73:25: danger: ‘open(&path, 524290)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libselinux-3.9/src/compute_user.c:73:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libselinux-3.9/src/compute_user.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:28:9: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_user.c:42:15: branch_false: ...to here
libselinux-3.9/src/compute_user.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:50:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_user.c:53:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:55:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_user.c:58:13: branch_false: ...to here
libselinux-3.9/src/compute_user.c:58:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:63:22: branch_false: ...to here
libselinux-3.9/src/compute_user.c:64:12: branch_false: following ‘false’ branch (when ‘ary’ is non-NULL)...
libselinux-3.9/src/compute_user.c:69:21: branch_false: ...to here
libselinux-3.9/src/compute_user.c:70:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:71:20: branch_true: ...to here
libselinux-3.9/src/compute_user.c:71:26: acquire_memory: allocated here
libselinux-3.9/src/compute_user.c:72:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:77:24: branch_false: ...to here
libselinux-3.9/src/compute_user.c:70:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:71:20: branch_true: ...to here
libselinux-3.9/src/compute_user.c:72:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:73:25: branch_true: ...to here
libselinux-3.9/src/compute_user.c:73:25: danger: ‘<unknown>’ leaks here; was allocated at [(21)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libselinux-3.9/src/compute_user.c:73:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ary’
libselinux-3.9/src/compute_user.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:28:9: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/compute_user.c:42:15: branch_false: ...to here
libselinux-3.9/src/compute_user.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:50:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_user.c:53:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:55:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libselinux-3.9/src/compute_user.c:58:13: branch_false: ...to here
libselinux-3.9/src/compute_user.c:58:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:63:22: branch_false: ...to here
libselinux-3.9/src/compute_user.c:63:15: acquire_memory: allocated here
libselinux-3.9/src/compute_user.c:64:12: branch_false: following ‘false’ branch (when ‘ary’ is non-NULL)...
libselinux-3.9/src/compute_user.c:69:21: branch_false: ...to here
libselinux-3.9/src/compute_user.c:70:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:71:20: branch_true: ...to here
libselinux-3.9/src/compute_user.c:72:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:73:25: branch_true: ...to here
libselinux-3.9/src/compute_user.c:73:25: danger: ‘ary’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
libselinux-3.9/src/compute_user.c:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/compute_user.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:28:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:28:9: branch_true: following ‘true’ branch...
libselinux-3.9/src/compute_user.c:31:14: acquire_resource: opened here
libselinux-3.9/src/compute_user.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/compute_user.c:35:9: branch_false: ...to here
libselinux-3.9/src/compute_user.c:85:9: danger: ‘open(&path, 524290)’ leaks here; was opened at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
libselinux-3.9/src/deny_unknown.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/deny_unknown.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/deny_unknown.c:23:9: branch_false: ...to here
libselinux-3.9/src/deny_unknown.c:24:14: acquire_resource: opened here
libselinux-3.9/src/deny_unknown.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/deny_unknown.c:28:9: branch_false: ...to here
libselinux-3.9/src/deny_unknown.c:31:12: danger: ‘open(&path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
libselinux-3.9/src/disable.c:30:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/disable.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/disable.c:23:9: branch_false: ...to here
libselinux-3.9/src/disable.c:24:14: acquire_resource: opened here
libselinux-3.9/src/disable.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/disable.c:28:9: branch_false: ...to here
libselinux-3.9/src/disable.c:30:15: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
libselinux-3.9/src/disable.c:32:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/disable.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/disable.c:23:9: branch_false: ...to here
libselinux-3.9/src/disable.c:24:14: acquire_resource: opened here
libselinux-3.9/src/disable.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/disable.c:28:9: branch_false: ...to here
libselinux-3.9/src/disable.c:32:12: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
libselinux-3.9/src/enabled.c:48:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/enabled.c:34:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/enabled.c:37:9: branch_false: ...to here
libselinux-3.9/src/enabled.c:38:14: acquire_resource: opened here
libselinux-3.9/src/enabled.c:39:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/enabled.c:42:9: branch_false: ...to here
libselinux-3.9/src/enabled.c:48:12: danger: ‘open(&path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
libselinux-3.9/src/get_context_list.c:157:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:435:14: acquire_resource: opened here
libselinux-3.9/src/get_context_list.c:436:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:437:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:438:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
libselinux-3.9/src/get_context_list.c:157:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(selinux_default_context_path(), "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:436:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:448:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:449:14: acquire_resource: opened here
libselinux-3.9/src/get_context_list.c:450:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:451:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:452:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libselinux-3.9/src/get_context_list.c:157:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:435:14: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:436:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:437:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:438:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libselinux-3.9/src/get_context_list.c:157:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(selinux_default_context_path(), "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:436:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:448:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:449:14: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:450:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:451:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:452:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
libselinux-3.9/src/get_context_list.c:158:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:435:14: acquire_resource: opened here
libselinux-3.9/src/get_context_list.c:436:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:437:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:438:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
libselinux-3.9/src/get_context_list.c:158:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(selinux_default_context_path(), "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:436:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:448:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:449:14: acquire_resource: opened here
libselinux-3.9/src/get_context_list.c:450:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:451:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:452:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libselinux-3.9/src/get_context_list.c:158:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:435:14: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:436:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:437:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:438:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
libselinux-3.9/src/get_context_list.c:158:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(selinux_default_context_path(), "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:436:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:448:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:449:14: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:450:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:451:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:452:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
libselinux-3.9/src/get_context_list.c:159:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:435:14: acquire_resource: opened here
libselinux-3.9/src/get_context_list.c:436:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:437:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:438:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
libselinux-3.9/src/get_context_list.c:159:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(selinux_default_context_path(), "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:436:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:448:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:449:14: acquire_resource: opened here
libselinux-3.9/src/get_context_list.c:450:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:451:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:452:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libselinux-3.9/src/get_context_list.c:159:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:435:14: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:436:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:437:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:438:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libselinux-3.9/src/get_context_list.c:159:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(selinux_default_context_path(), "re")’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:425:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:430:21: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:432:12: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:434:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:436:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:448:9: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:449:14: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:450:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_context_list.c:451:17: branch_true: ...to here
libselinux-3.9/src/get_context_list.c:452:22: call_function: calling ‘get_context_user’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libselinux-3.9/src/get_context_list.c:304:20: warning[-Wanalyzer-malloc-leak]: leak of ‘reachable’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:483:21: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:484:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:488:14: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:488:14: call_function: calling ‘get_failsafe_context’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libselinux-3.9/src/get_context_list.c:333:13: warning[-Wanalyzer-malloc-leak]: leak of ‘reachable’
libselinux-3.9/src/get_context_list.c:402:5: enter_function: entry to ‘get_ordered_context_list’
libselinux-3.9/src/get_context_list.c:416:12: branch_false: following ‘false’ branch (when ‘fromcon’ is non-NULL)...
libselinux-3.9/src/get_context_list.c:424:15: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:483:21: acquire_memory: allocated here
libselinux-3.9/src/get_context_list.c:484:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_context_list.c:488:14: branch_false: ...to here
libselinux-3.9/src/get_context_list.c:488:14: call_function: calling ‘get_failsafe_context’ from ‘get_ordered_context_list’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
libselinux-3.9/src/get_initial_context.c:60:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/get_initial_context.c:21:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_initial_context.c:26:13: branch_false: ...to here
libselinux-3.9/src/get_initial_context.c:26:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_initial_context.c:31:15: branch_false: ...to here
libselinux-3.9/src/get_initial_context.c:32:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_initial_context.c:37:14: branch_false: ...to here
libselinux-3.9/src/get_initial_context.c:37:14: acquire_resource: opened here
libselinux-3.9/src/get_initial_context.c:38:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/get_initial_context.c:41:9: branch_false: ...to here
libselinux-3.9/src/get_initial_context.c:43:12: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
libselinux-3.9/src/get_initial_context.c:45:17: branch_true: ...to here
libselinux-3.9/src/get_initial_context.c:60:9: danger: ‘open(&path, 524288)’ leaks here; was opened at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libselinux-3.9/src/get_initial_context.c:60:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rcon’
libselinux-3.9/src/get_initial_context.c:65:5: enter_function: entry to ‘security_get_initial_context’
libselinux-3.9/src/get_initial_context.c:70:15: call_function: calling ‘security_get_initial_context_raw’ from ‘security_get_initial_context’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libselinux-3.9/src/get_initial_context.c:72:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rcon’
libselinux-3.9/src/get_initial_context.c:65:5: enter_function: entry to ‘security_get_initial_context’
libselinux-3.9/src/get_initial_context.c:70:15: call_function: calling ‘security_get_initial_context_raw’ from ‘security_get_initial_context’
libselinux-3.9/src/get_initial_context.c:70:15: return_function: returning to ‘security_get_initial_context’ from ‘security_get_initial_context_raw’
libselinux-3.9/src/get_initial_context.c:71:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_initial_context.c:72:23: branch_true: ...to here
libselinux-3.9/src/get_initial_context.c:72:23: danger: ‘rcon’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libselinux-3.9/src/get_initial_context.c:73:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rcon’
libselinux-3.9/src/get_initial_context.c:65:5: enter_function: entry to ‘security_get_initial_context’
libselinux-3.9/src/get_initial_context.c:70:15: call_function: calling ‘security_get_initial_context_raw’ from ‘security_get_initial_context’
libselinux-3.9/src/get_initial_context.c:70:15: return_function: returning to ‘security_get_initial_context’ from ‘security_get_initial_context_raw’
libselinux-3.9/src/get_initial_context.c:71:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/get_initial_context.c:72:23: branch_true: ...to here
libselinux-3.9/src/get_initial_context.c:73:17: danger: ‘rcon’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
libselinux-3.9/src/getenforce.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/getenforce.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/getenforce.c:23:9: branch_false: ...to here
libselinux-3.9/src/getenforce.c:24:14: acquire_resource: opened here
libselinux-3.9/src/getenforce.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/getenforce.c:28:9: branch_false: ...to here
libselinux-3.9/src/getenforce.c:31:12: danger: ‘open(&path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
libselinux-3.9/src/is_customizable_type.c:35:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(selinux_customizable_types_path(), "re")’
libselinux-3.9/src/is_customizable_type.c:22:14: acquire_resource: opened here
libselinux-3.9/src/is_customizable_type.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/is_customizable_type.c:26:15: branch_false: ...to here
libselinux-3.9/src/is_customizable_type.c:27:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/is_customizable_type.c:35:13: danger: ‘fopen(selinux_customizable_types_path(), "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
libselinux-3.9/src/is_customizable_type.c:35:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/is_customizable_type.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/is_customizable_type.c:26:15: branch_false: ...to here
libselinux-3.9/src/is_customizable_type.c:26:15: acquire_memory: allocated here
libselinux-3.9/src/is_customizable_type.c:27:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/is_customizable_type.c:35:13: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libselinux-3.9/src/is_customizable_type.c:35:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(selinux_customizable_types_path(), "re")’
libselinux-3.9/src/is_customizable_type.c:22:14: acquire_memory: allocated here
libselinux-3.9/src/is_customizable_type.c:23:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/is_customizable_type.c:26:15: branch_false: ...to here
libselinux-3.9/src/is_customizable_type.c:27:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/src/is_customizable_type.c:35:13: danger: ‘fopen(selinux_customizable_types_path(), "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libselinux-3.9/src/label.c:265:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libselinux-3.9/src/label.c:240:24: enter_function: entry to ‘selabel_open’
libselinux-3.9/src/label.c:246:12: branch_false: following ‘false’ branch (when ‘backend <= 5’)...
libselinux-3.9/src/label.c:251:14: branch_false: ...to here
libselinux-3.9/src/label.c:251:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label.c:256:40: branch_false: ...to here
libselinux-3.9/src/label.c:257:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/src/label.c:260:9: branch_false: ...to here
libselinux-3.9/src/label.c:261:27: call_function: inlined call to ‘selabel_is_validate_set’ from ‘selabel_open’
branch_false: ...to here
libselinux-3.9/src/label.c:263:23: call_function: calling ‘selabel_is_digest_set’ from ‘selabel_open’
libselinux-3.9/src/label.c:263:23: return_function: returning to ‘selabel_open’ from ‘selabel_is_digest_set’
libselinux-3.9/src/label.c:265:13: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libselinux-3.9/src/label.c:265:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
libselinux-3.9/src/label.c:246:12: branch_false: following ‘false’ branch (when ‘backend <= 5’)...
libselinux-3.9/src/label.c:251:14: branch_false: ...to here
libselinux-3.9/src/label.c:251:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label.c:256:40: branch_false: ...to here
libselinux-3.9/src/label.c:256:40: acquire_memory: allocated here
libselinux-3.9/src/label.c:257:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/src/label.c:260:9: branch_false: ...to here
libselinux-3.9/src/label.c:265:13: danger: ‘rec’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libselinux-3.9/src/label_db.c:112:25: warning[-Wanalyzer-malloc-leak]: leak of ‘catalog’
libselinux-3.9/src/label_db.c:241:1: enter_function: entry to ‘db_init’
libselinux-3.9/src/label_db.c:256:19: acquire_memory: allocated here
libselinux-3.9/src/label_db.c:257:12: branch_false: following ‘false’ branch (when ‘catalog’ is non-NULL)...
libselinux-3.9/src/label_db.c:259:9: branch_false: ...to here
libselinux-3.9/src/label_db.c:290:12: branch_true: following ‘true’ branch (when ‘path’ is NULL)...
libselinux-3.9/src/label_db.c:291:24: branch_true: ...to here
libselinux-3.9/src/label_db.c:293:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:297:13: branch_false: ...to here
libselinux-3.9/src/label_db.c:297:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:302:14: branch_false: ...to here
libselinux-3.9/src/label_db.c:302:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:308:26: branch_false: ...to here
libselinux-3.9/src/label_db.c:309:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/src/label_db.c:318:16: branch_true: following ‘true’ branch...
libselinux-3.9/src/label_db.c:322:21: branch_true: ...to here
libselinux-3.9/src/label_db.c:322:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:340:20: branch_false: ...to here
libselinux-3.9/src/label_db.c:340:21: call_function: calling ‘process_line’ from ‘db_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
libselinux-3.9/src/label_db.c:148:17: warning[-Wanalyzer-malloc-leak]: leak of ‘catalog’
libselinux-3.9/src/label_db.c:241:1: enter_function: entry to ‘db_init’
libselinux-3.9/src/label_db.c:256:19: acquire_memory: allocated here
libselinux-3.9/src/label_db.c:257:12: branch_false: following ‘false’ branch (when ‘catalog’ is non-NULL)...
libselinux-3.9/src/label_db.c:259:9: branch_false: ...to here
libselinux-3.9/src/label_db.c:290:12: branch_true: following ‘true’ branch (when ‘path’ is NULL)...
libselinux-3.9/src/label_db.c:291:24: branch_true: ...to here
libselinux-3.9/src/label_db.c:293:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:297:13: branch_false: ...to here
libselinux-3.9/src/label_db.c:297:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:302:14: branch_false: ...to here
libselinux-3.9/src/label_db.c:302:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:308:26: branch_false: ...to here
libselinux-3.9/src/label_db.c:309:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/src/label_db.c:318:16: branch_true: following ‘true’ branch...
libselinux-3.9/src/label_db.c:322:21: branch_true: ...to here
libselinux-3.9/src/label_db.c:322:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/label_db.c:340:20: branch_false: ...to here
libselinux-3.9/src/label_db.c:340:21: call_function: calling ‘process_line’ from ‘db_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libselinux-3.9/src/label_db.c:291:24: warning[-Wanalyzer-malloc-leak]: leak of ‘catalog’
libselinux-3.9/src/label_db.c:256:19: acquire_memory: allocated here
libselinux-3.9/src/label_db.c:257:12: branch_false: following ‘false’ branch (when ‘catalog’ is non-NULL)...
libselinux-3.9/src/label_db.c:259:9: branch_false: ...to here
libselinux-3.9/src/label_db.c:290:12: branch_true: following ‘true’ branch (when ‘path’ is NULL)...
libselinux-3.9/src/label_db.c:291:24: branch_true: ...to here
libselinux-3.9/src/label_db.c:291:24: danger: ‘catalog’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libselinux-3.9/src/label_db.c:344:13: warning[-Wanalyzer-malloc-leak]: leak of ‘catalog’
libselinux-3.9/src/label_db.c:373:5: enter_function: entry to ‘selabel_db_init’
libselinux-3.9/src/label_db.c:379:21: call_function: calling ‘db_init’ from ‘selabel_db_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
libselinux-3.9/src/label_db.c:347:9: warning[-Wanalyzer-malloc-leak]: leak of ‘catalog’
libselinux-3.9/src/label_db.c:373:5: enter_function: entry to ‘selabel_db_init’
libselinux-3.9/src/label_db.c:379:21: call_function: calling ‘db_init’ from ‘selabel_db_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
libselinux-3.9/src/label_file.c:851:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘open_file(path, suffix, & found_path, 4096, & sb, (_Bool)i)’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libselinux-3.9/src/label_file.c:851:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mmap_area’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libselinux-3.9/src/label_file.c:851:17: warning[-Wanalyzer-malloc-leak]: leak of ‘open_file(path, suffix, & found_path, 4096, & sb, (_Bool)i)’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
libselinux-3.9/src/label_file.c:1078:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘open_file(path, suffix, & found_path, 4096, & sb, (_Bool)i)’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libselinux-3.9/src/label_file.c:1078:14: warning[-Wanalyzer-malloc-leak]: leak of ‘open_file(path, suffix, & found_path, 4096, & sb, (_Bool)i)’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
libselinux-3.9/src/label_file.c:1202:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘open_file(path, suffix, & found_path, 4096, & sb, (_Bool)i)’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
libselinux-3.9/src/label_file.c:1202:25: warning[-Wanalyzer-malloc-leak]: leak of ‘open_file(path, suffix, & found_path, 4096, & sb, (_Bool)i)’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
libselinux-3.9/src/label_file.c:1350:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "re")’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libselinux-3.9/src/label_file.c:1350:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "re")’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libselinux-3.9/src/label_file.h:320:33: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
libselinux-3.9/src/label_file.h:467:14: warning[-Wanalyzer-malloc-leak]: leak of ‘anchored_regex’
libselinux-3.9/src/label_file.c:2467:5: enter_function: entry to ‘selabel_file_init’
libselinux-3.9/src/label_file.c:2475:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/label_file.c:2478:16: branch_false: ...to here
libselinux-3.9/src/label_file.c:2479:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/src/label_file.c:2484:9: branch_false: ...to here
libselinux-3.9/src/label_file.c:2496:16: call_function: calling ‘init’ from ‘selabel_file_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libselinux-3.9/src/label_file.h:820:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:626:37: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libselinux-3.9/src/label_file.h:820:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:607:40: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
libselinux-3.9/src/label_file.h:820:17: warning[-Wanalyzer-malloc-leak]: leak of ‘root’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:635:16: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
libselinux-3.9/src/label_file.h:823:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:626:37: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
libselinux-3.9/src/label_file.h:823:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:607:40: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libselinux-3.9/src/label_file.h:823:25: warning[-Wanalyzer-malloc-leak]: leak of ‘root’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:635:16: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
libselinux-3.9/src/label_file.h:827:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:626:37: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libselinux-3.9/src/label_file.h:827:25: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:607:40: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
libselinux-3.9/src/label_file.h:827:25: warning[-Wanalyzer-malloc-leak]: leak of ‘root’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:635:16: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libselinux-3.9/src/label_file.h:841:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:626:37: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libselinux-3.9/src/label_file.h:841:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:607:40: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libselinux-3.9/src/label_file.h:841:17: warning[-Wanalyzer-malloc-leak]: leak of ‘root’
libselinux-3.9/utils/sefcontext_compile.c:538:5: enter_function: entry to ‘main’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:627:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:635:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:635:16: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:636:12: branch_false: following ‘false’ branch (when ‘root’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:645:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:648:14: call_function: calling ‘process_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
libselinux-3.9/src/load_policy.c:41:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/load_policy.c:31:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/load_policy.c:36:9: branch_false: ...to here
libselinux-3.9/src/load_policy.c:37:14: acquire_resource: opened here
libselinux-3.9/src/load_policy.c:38:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/load_policy.c:41:15: branch_false: ...to here
libselinux-3.9/src/load_policy.c:41:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
libselinux-3.9/src/load_policy.c:43:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/load_policy.c:31:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/load_policy.c:36:9: branch_false: ...to here
libselinux-3.9/src/load_policy.c:37:14: acquire_resource: opened here
libselinux-3.9/src/load_policy.c:38:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/load_policy.c:41:15: branch_false: ...to here
libselinux-3.9/src/load_policy.c:43:12: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def141]
libselinux-3.9/src/matchpathcon.c:87:17: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘con_array’
libselinux-3.9/src/matchpathcon.c:94:12: enter_function: entry to ‘add_array_elt’
libselinux-3.9/src/matchpathcon.c:97:12: branch_true: following ‘true’ branch...
branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:98:24: branch_true: following ‘true’ branch...
libselinux-3.9/src/matchpathcon.c:99:40: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:100:40: release_memory: deallocated here
libselinux-3.9/src/matchpathcon.c:102:28: branch_true: following ‘true’ branch (when ‘tmp’ is NULL)...
libselinux-3.9/src/matchpathcon.c:103:33: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:103:33: call_function: calling ‘free_array_elts’ from ‘add_array_elt’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libselinux-3.9/src/matchpathcon.c:444:17: warning[-Wanalyzer-malloc-leak]: leak of ‘last_component’
libselinux-3.9/src/matchpathcon.c:421:20: acquire_memory: allocated here
libselinux-3.9/src/matchpathcon.c:422:12: branch_false: following ‘false’ branch (when ‘tmp_path’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:429:26: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:431:12: branch_false: following ‘false’ branch (when ‘tmp_path != last_component’)...
libselinux-3.9/src/matchpathcon.c:434:19: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:434:19: branch_false: following ‘false’ branch (when ‘last_component’ is NULL)...
libselinux-3.9/src/matchpathcon.c:440:21: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:443:12: branch_true: following ‘true’ branch (when ‘p’ is NULL)...
libselinux-3.9/src/matchpathcon.c:444:17: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:444:17: danger: ‘last_component’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libselinux-3.9/src/matchpathcon.c:444:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_path’
libselinux-3.9/src/matchpathcon.c:421:20: acquire_memory: allocated here
libselinux-3.9/src/matchpathcon.c:422:12: branch_false: following ‘false’ branch (when ‘tmp_path’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:429:26: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:431:12: branch_false: following ‘false’ branch (when ‘tmp_path != last_component’)...
libselinux-3.9/src/matchpathcon.c:434:19: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:434:19: branch_true: following ‘true’ branch (when ‘last_component’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:435:17: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:443:12: branch_true: following ‘true’ branch (when ‘p’ is NULL)...
libselinux-3.9/src/matchpathcon.c:444:17: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:444:17: danger: ‘tmp_path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
libselinux-3.9/src/matchpathcon.c:452:17: warning[-Wanalyzer-malloc-leak]: leak of ‘last_component’
libselinux-3.9/src/matchpathcon.c:421:20: acquire_memory: allocated here
libselinux-3.9/src/matchpathcon.c:422:12: branch_false: following ‘false’ branch (when ‘tmp_path’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:429:26: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:431:12: branch_false: following ‘false’ branch (when ‘tmp_path != last_component’)...
libselinux-3.9/src/matchpathcon.c:434:19: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:434:19: branch_false: following ‘false’ branch (when ‘last_component’ is NULL)...
libselinux-3.9/src/matchpathcon.c:440:21: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:443:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:450:15: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:451:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/matchpathcon.c:452:17: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:452:17: danger: ‘last_component’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
libselinux-3.9/src/matchpathcon.c:452:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_path’
libselinux-3.9/src/matchpathcon.c:421:20: acquire_memory: allocated here
libselinux-3.9/src/matchpathcon.c:422:12: branch_false: following ‘false’ branch (when ‘tmp_path’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:429:26: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:431:12: branch_true: following ‘true’ branch (when ‘tmp_path == last_component’)...
libselinux-3.9/src/matchpathcon.c:432:17: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:443:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
libselinux-3.9/src/matchpathcon.c:450:15: branch_false: ...to here
libselinux-3.9/src/matchpathcon.c:451:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/matchpathcon.c:452:17: branch_true: ...to here
libselinux-3.9/src/matchpathcon.c:452:17: danger: ‘tmp_path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def146]
libselinux-3.9/src/policyvers.c:35:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/policyvers.c:19:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/policyvers.c:24:9: branch_false: ...to here
libselinux-3.9/src/policyvers.c:25:14: acquire_resource: opened here
libselinux-3.9/src/policyvers.c:26:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/policyvers.c:32:9: branch_false: ...to here
libselinux-3.9/src/policyvers.c:35:12: danger: ‘open(&path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
libselinux-3.9/src/procattr.c:173:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rcontext’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘getkeycreatecon’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘getprocattrcon’ from ‘getkeycreatecon’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
libselinux-3.9/src/procattr.c:174:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘openattr(pid, attr, 524288)’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘getkeycreatecon_raw’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘getprocattrcon_raw’ from ‘getkeycreatecon_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libselinux-3.9/src/procattr.c:187:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rcontext’
libselinux-3.9/src/procattr.c:316:5: enter_function: entry to ‘getpidprevcon’
libselinux-3.9/src/procattr.c:318:12: branch_false: following ‘false’ branch (when ‘pid > 0’)...
libselinux-3.9/src/procattr.c:322:16: branch_false: ...to here
libselinux-3.9/src/procattr.c:322:16: call_function: calling ‘getprocattrcon’ from ‘getpidprevcon’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libselinux-3.9/src/procattr.c:188:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rcontext’
libselinux-3.9/src/procattr.c:316:5: enter_function: entry to ‘getpidprevcon’
libselinux-3.9/src/procattr.c:318:12: branch_false: following ‘false’ branch (when ‘pid > 0’)...
libselinux-3.9/src/procattr.c:322:16: branch_false: ...to here
libselinux-3.9/src/procattr.c:322:16: call_function: calling ‘getprocattrcon’ from ‘getpidprevcon’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
libselinux-3.9/src/procattr.c:220:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘openattr(0, attr, 524290)’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘setkeycreatecon_raw’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘setprocattrcon_raw’ from ‘setkeycreatecon_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libselinux-3.9/src/procattr.c:220:31: warning[-Wanalyzer-malloc-leak]: leak of ‘context2’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘setkeycreatecon_raw’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘setprocattrcon_raw’ from ‘setkeycreatecon_raw’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
libselinux-3.9/src/procattr.c:224:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘openattr(0, attr, 524290)’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘setkeycreatecon_raw’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘setprocattrcon_raw’ from ‘setkeycreatecon_raw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
libselinux-3.9/src/procattr.c:229:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context2’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘setkeycreatecon_raw’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘setprocattrcon_raw’ from ‘setkeycreatecon_raw’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
libselinux-3.9/src/procattr.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘openattr(0, attr, 524290)’
libselinux-3.9/src/procattr.c:287:5: enter_function: entry to ‘setkeycreatecon_raw’
libselinux-3.9/src/procattr.c:287:5: call_function: calling ‘setprocattrcon_raw’ from ‘setkeycreatecon_raw’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def156]
libselinux-3.9/src/reject_unknown.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/reject_unknown.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/reject_unknown.c:23:9: branch_false: ...to here
libselinux-3.9/src/reject_unknown.c:24:14: acquire_resource: opened here
libselinux-3.9/src/reject_unknown.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/reject_unknown.c:28:9: branch_false: ...to here
libselinux-3.9/src/reject_unknown.c:31:12: danger: ‘open(&path, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(selinux_securetty_types_path(), "re")’
libselinux-3.9/src/selinux_check_securetty_context.c:17:14: acquire_resource: opened here
libselinux-3.9/src/selinux_check_securetty_context.c:18:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: branch_true: ...to here
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: danger: ‘fopen(selinux_securetty_types_path(), "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(selinux_securetty_types_path(), "re")’
libselinux-3.9/src/selinux_check_securetty_context.c:17:14: acquire_memory: allocated here
libselinux-3.9/src/selinux_check_securetty_context.c:18:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: branch_true: ...to here
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: danger: ‘fopen(selinux_securetty_types_path(), "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
libselinux-3.9/src/selinux_check_securetty_context.c:21:44: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(selinux_securetty_types_path(), "re")’
libselinux-3.9/src/selinux_check_securetty_context.c:17:14: acquire_resource: opened here
libselinux-3.9/src/selinux_check_securetty_context.c:18:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: branch_true: ...to here
libselinux-3.9/src/selinux_check_securetty_context.c:20:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_check_securetty_context.c:21:44: branch_true: ...to here
libselinux-3.9/src/selinux_check_securetty_context.c:21:44: danger: ‘fopen(selinux_securetty_types_path(), "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
libselinux-3.9/src/selinux_check_securetty_context.c:21:44: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(selinux_securetty_types_path(), "re")’
libselinux-3.9/src/selinux_check_securetty_context.c:17:14: acquire_memory: allocated here
libselinux-3.9/src/selinux_check_securetty_context.c:18:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_check_securetty_context.c:19:33: branch_true: ...to here
libselinux-3.9/src/selinux_check_securetty_context.c:20:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_check_securetty_context.c:21:44: branch_true: ...to here
libselinux-3.9/src/selinux_check_securetty_context.c:21:44: danger: ‘fopen(selinux_securetty_types_path(), "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def161]
libselinux-3.9/src/selinux_restorecon.c:161:39: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘exclude_lst’
libselinux-3.9/src/selinux_restorecon.c:1444:6: enter_function: entry to ‘selinux_restorecon_set_exclude_list’
libselinux-3.9/src/selinux_restorecon.c:1449:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1450:21: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1456:21: call_function: calling ‘add_exclude’ from ‘selinux_restorecon_set_exclude_list’
libselinux-3.9/src/selinux_restorecon.c:1456:21: return_function: returning to ‘selinux_restorecon_set_exclude_list’ from ‘add_exclude’
libselinux-3.9/src/selinux_restorecon.c:1456:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1457:21: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1456:21: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinux_restorecon.c:1449:38: branch_false: ...to here
libselinux-3.9/src/selinux_restorecon.c:1449:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1450:21: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1456:21: call_function: calling ‘add_exclude’ from ‘selinux_restorecon_set_exclude_list’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def162]
libselinux-3.9/src/selinux_restorecon.c:179:20: warning[-Wanalyzer-double-free]: double-‘reallocarray’ of ‘exclude_lst’
libselinux-3.9/src/selinux_restorecon.c:1444:6: enter_function: entry to ‘selinux_restorecon_set_exclude_list’
libselinux-3.9/src/selinux_restorecon.c:1449:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1450:21: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1456:21: call_function: calling ‘add_exclude’ from ‘selinux_restorecon_set_exclude_list’
libselinux-3.9/src/selinux_restorecon.c:1456:21: return_function: returning to ‘selinux_restorecon_set_exclude_list’ from ‘add_exclude’
libselinux-3.9/src/selinux_restorecon.c:1456:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1457:21: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1456:21: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinux_restorecon.c:1449:38: branch_false: ...to here
libselinux-3.9/src/selinux_restorecon.c:1449:21: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1450:21: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1456:21: call_function: calling ‘add_exclude’ from ‘selinux_restorecon_set_exclude_list’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
libselinux-3.9/src/selinux_restorecon.c:350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘sha256_buf’
libselinux-3.9/src/selinux_restorecon.c:1489:5: enter_function: entry to ‘selinux_restorecon_xattr’
libselinux-3.9/src/selinux_restorecon.c:1509:9: branch_true: following ‘true’ branch...
libselinux-3.9/src/selinux_restorecon.c:1509:9: branch_true: ...to here
libselinux-3.9/src/selinux_restorecon.c:1511:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinux_restorecon.c:1514:13: branch_false: ...to here
libselinux-3.9/src/selinux_restorecon.c:1514:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinux_restorecon.c:1524:12: branch_false: ...to here
libselinux-3.9/src/selinux_restorecon.c:1524:12: branch_false: following ‘false’ branch (when ‘recurse == 0’)...
libselinux-3.9/src/selinux_restorecon.c:1525:21: branch_false: ...to here
libselinux-3.9/src/selinux_restorecon.c:1531:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinux_restorecon.c:1534:22: branch_false: ...to here
libselinux-3.9/src/selinux_restorecon.c:1534:22: call_function: calling ‘add_xattr_entry’ from ‘selinux_restorecon_xattr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
libselinux-3.9/src/selinuxswig_python_wrap.c:724:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
libselinux-3.9/src/selinuxswig_python_wrap.c:14951:22: enter_function: entry to ‘_wrap_selinux_lsetfilecon_default’
libselinux-3.9/src/selinuxswig_python_wrap.c:14961:6: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
libselinux-3.9/src/selinuxswig_python_wrap.c:14963:10: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:14963:10: call_function: calling ‘SWIG_AsCharPtrAndSize’ from ‘_wrap_selinux_lsetfilecon_default’
Error: CPPCHECK_WARNING (CWE-457): [#def165]
libselinux-3.9/src/selinuxswig_python_wrap.c:872: warning[uninitvar]: Uninitialized variable: buff
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
libselinux-3.9/src/selinuxswig_python_wrap.c:1452:39: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libselinux-3.9/src/selinuxswig_python_wrap.c:12278:22: enter_function: entry to ‘_wrap_new_SELboolean’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_SELboolean’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:8: return_function: returning to ‘_wrap_new_SELboolean’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:12284:26: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:12284:26: acquire_memory: allocated here
libselinux-3.9/src/selinuxswig_python_wrap.c:12285:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_SELboolean’
Error: CPPCHECK_WARNING (CWE-476): [#def167]
libselinux-3.9/src/selinuxswig_python_wrap.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
libselinux-3.9/src/selinuxswig_python_wrap.c:1901:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: CPPCHECK_WARNING (CWE-476): [#def169]
libselinux-3.9/src/selinuxswig_python_wrap.c:1902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
libselinux-3.9/src/selinuxswig_python_wrap.c:1904:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
libselinux-3.9/src/selinuxswig_python_wrap.c:1909:22: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libselinux-3.9/src/selinuxswig_python_wrap.c:1911:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libselinux-3.9/src/selinuxswig_python_wrap.c:1927:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libselinux-3.9/src/selinuxswig_python_wrap.c:1928:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
libselinux-3.9/src/selinuxswig_python_wrap.c:1929:7: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/selinuxswig_python_wrap.c:13048:22: enter_function: entry to ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘security_class_mapping_swigregister’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:8: return_function: returning to ‘security_class_mapping_swigregister’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13050:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:3: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13051:61: call_function: calling ‘SwigPyClientData_New’ from ‘security_class_mapping_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
libselinux-3.9/src/selinuxswig_python_wrap.c:2440:22: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libselinux-3.9/src/selinuxswig_python_wrap.c:13011:22: enter_function: entry to ‘_wrap_new_security_class_mapping’
libselinux-3.9/src/selinuxswig_python_wrap.c:13016:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_security_class_mapping’
libselinux-3.9/src/selinuxswig_python_wrap.c:13016:8: return_function: returning to ‘_wrap_new_security_class_mapping’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13016:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13017:45: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13017:45: acquire_memory: allocated here
libselinux-3.9/src/selinuxswig_python_wrap.c:13018:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_security_class_mapping’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libselinux-3.9/src/selinuxswig_python_wrap.c:2453:17: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libselinux-3.9/src/selinuxswig_python_wrap.c:13011:22: enter_function: entry to ‘_wrap_new_security_class_mapping’
libselinux-3.9/src/selinuxswig_python_wrap.c:13016:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_security_class_mapping’
libselinux-3.9/src/selinuxswig_python_wrap.c:13016:8: return_function: returning to ‘_wrap_new_security_class_mapping’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:13016:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:13017:45: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:13017:45: acquire_memory: allocated here
libselinux-3.9/src/selinuxswig_python_wrap.c:13018:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_security_class_mapping’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
libselinux-3.9/src/selinuxswig_python_wrap.c:2462:24: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libselinux-3.9/src/selinuxswig_python_wrap.c:12278:22: enter_function: entry to ‘_wrap_new_SELboolean’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_SELboolean’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:8: return_function: returning to ‘_wrap_new_SELboolean’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:12284:26: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:12284:26: acquire_memory: allocated here
libselinux-3.9/src/selinuxswig_python_wrap.c:12285:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_SELboolean’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
libselinux-3.9/src/selinuxswig_python_wrap.c:3136:16: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libselinux-3.9/src/selinuxswig_python_wrap.c:12278:22: enter_function: entry to ‘_wrap_new_SELboolean’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_SELboolean’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:8: return_function: returning to ‘_wrap_new_SELboolean’ from ‘SWIG_Python_UnpackTuple’
libselinux-3.9/src/selinuxswig_python_wrap.c:12283:6: branch_false: following ‘false’ branch...
libselinux-3.9/src/selinuxswig_python_wrap.c:12284:26: branch_false: ...to here
libselinux-3.9/src/selinuxswig_python_wrap.c:12284:26: acquire_memory: allocated here
libselinux-3.9/src/selinuxswig_python_wrap.c:12285:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_SELboolean’
Error: CPPCHECK_WARNING (CWE-457): [#def180]
libselinux-3.9/src/selinuxswig_python_wrap.c:13616: error[legacyUninitvar]: Uninitialized variable: arg1
Error: CPPCHECK_WARNING (CWE-476): [#def181]
libselinux-3.9/src/selinuxswig_ruby_wrap.c:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def182]
libselinux-3.9/src/selinuxswig_ruby_wrap.c:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def183]
libselinux-3.9/src/selinuxswig_ruby_wrap.c:2170: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def184]
libselinux-3.9/src/selinuxswig_ruby_wrap.c:2254: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def185]
libselinux-3.9/src/selinuxswig_ruby_wrap.c:2313: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def186]
libselinux-3.9/src/selinuxswig_ruby_wrap.c:10798: error[legacyUninitvar]: Uninitialized variable: arg1
Error: GCC_ANALYZER_WARNING (CWE-775): [#def187]
libselinux-3.9/src/setenforce.c:29:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/setenforce.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setenforce.c:23:9: branch_false: ...to here
libselinux-3.9/src/setenforce.c:24:14: acquire_resource: opened here
libselinux-3.9/src/setenforce.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setenforce.c:28:9: branch_false: ...to here
libselinux-3.9/src/setenforce.c:29:15: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def188]
libselinux-3.9/src/setenforce.c:31:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524290)’
libselinux-3.9/src/setenforce.c:18:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setenforce.c:23:9: branch_false: ...to here
libselinux-3.9/src/setenforce.c:24:14: acquire_resource: opened here
libselinux-3.9/src/setenforce.c:25:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setenforce.c:28:9: branch_false: ...to here
libselinux-3.9/src/setenforce.c:31:12: danger: ‘open(&path, 524290)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
libselinux-3.9/src/setrans_client.c:59:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libselinux-3.9/src/setrans_client.c:54:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/setrans_client.c:57:22: acquire_resource: stream socket created here
libselinux-3.9/src/setrans_client.c:58:20: branch_true: following ‘true’ branch (when ‘fd >= 0’)...
libselinux-3.9/src/setrans_client.c:59:29: branch_true: ...to here
libselinux-3.9/src/setrans_client.c:59:29: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
libselinux-3.9/src/setrans_client.c:71:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libselinux-3.9/src/setrans_client.c:53:14: acquire_resource: socket created here
libselinux-3.9/src/setrans_client.c:54:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
libselinux-3.9/src/setrans_client.c:67:9: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:70:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/setrans_client.c:71:17: branch_true: ...to here
libselinux-3.9/src/setrans_client.c:71:17: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
libselinux-3.9/src/setrans_client.c:76:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
libselinux-3.9/src/setrans_client.c:53:14: acquire_resource: socket created here
libselinux-3.9/src/setrans_client.c:54:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
libselinux-3.9/src/setrans_client.c:67:9: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:70:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setrans_client.c:76:13: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:76:13: danger: ‘fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libselinux-3.9/src/setrans_client.c:184:26: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libselinux-3.9/src/setrans_client.c:149:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
libselinux-3.9/src/setrans_client.c:154:9: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:162:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setrans_client.c:166:12: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:166:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setrans_client.c:171:13: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:171:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/setrans_client.c:177:16: acquire_memory: allocated here
libselinux-3.9/src/setrans_client.c:178:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
libselinux-3.9/src/setrans_client.c:181:9: branch_false: ...to here
libselinux-3.9/src/setrans_client.c:184:26: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
libselinux-3.9/src/seusers.c:116:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rbuf’
libselinux-3.9/src/seusers.c:188:5: enter_function: entry to ‘getseuserbyname’
libselinux-3.9/src/seusers.c:205:21: call_function: calling ‘get_default_gid’ from ‘getseuserbyname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
libselinux-3.9/src/seusers.c:147:30: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libselinux-3.9/src/seusers.c:147:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rbuf’
libselinux-3.9/src/seusers.c:188:5: enter_function: entry to ‘getseuserbyname’
libselinux-3.9/src/seusers.c:205:21: call_function: calling ‘get_default_gid’ from ‘getseuserbyname’
libselinux-3.9/src/seusers.c:205:21: return_function: returning to ‘getseuserbyname’ from ‘get_default_gid’
libselinux-3.9/src/seusers.c:208:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:211:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:212:16: branch_true: following ‘true’ branch...
libselinux-3.9/src/seusers.c:213:17: branch_true: ...to here
libselinux-3.9/src/seusers.c:214:22: call_function: calling ‘process_seusers’ from ‘getseuserbyname’
libselinux-3.9/src/seusers.c:214:22: return_function: returning to ‘getseuserbyname’ from ‘process_seusers’
libselinux-3.9/src/seusers.c:216:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:218:20: branch_false: ...to here
libselinux-3.9/src/seusers.c:218:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:224:22: branch_false: ...to here
libselinux-3.9/src/seusers.c:224:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
libselinux-3.9/src/seusers.c:227:21: branch_false: ...to here
libselinux-3.9/src/seusers.c:227:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/seusers.c:229:21: call_function: calling ‘check_group’ from ‘getseuserbyname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
libselinux-3.9/src/seusers.c:147:30: warning[-Wanalyzer-malloc-leak]: leak of ‘seuser’
libselinux-3.9/src/seusers.c:188:5: enter_function: entry to ‘getseuserbyname’
libselinux-3.9/src/seusers.c:208:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:211:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:212:16: branch_true: following ‘true’ branch...
libselinux-3.9/src/seusers.c:213:17: branch_true: ...to here
libselinux-3.9/src/seusers.c:214:22: call_function: calling ‘process_seusers’ from ‘getseuserbyname’
libselinux-3.9/src/seusers.c:214:22: return_function: returning to ‘getseuserbyname’ from ‘process_seusers’
libselinux-3.9/src/seusers.c:216:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:218:20: branch_false: ...to here
libselinux-3.9/src/seusers.c:218:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:224:22: branch_false: ...to here
libselinux-3.9/src/seusers.c:224:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
libselinux-3.9/src/seusers.c:227:21: branch_false: ...to here
libselinux-3.9/src/seusers.c:227:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/seusers.c:229:21: call_function: calling ‘check_group’ from ‘getseuserbyname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libselinux-3.9/src/seusers.c:147:30: warning[-Wanalyzer-malloc-leak]: leak of ‘username’
libselinux-3.9/src/seusers.c:188:5: enter_function: entry to ‘getseuserbyname’
libselinux-3.9/src/seusers.c:208:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:211:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:212:16: branch_true: following ‘true’ branch...
libselinux-3.9/src/seusers.c:213:17: branch_true: ...to here
libselinux-3.9/src/seusers.c:214:22: call_function: calling ‘process_seusers’ from ‘getseuserbyname’
libselinux-3.9/src/seusers.c:214:22: return_function: returning to ‘getseuserbyname’ from ‘process_seusers’
libselinux-3.9/src/seusers.c:216:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:218:20: branch_false: ...to here
libselinux-3.9/src/seusers.c:218:20: branch_false: following ‘false’ branch...
libselinux-3.9/src/seusers.c:224:22: branch_false: ...to here
libselinux-3.9/src/seusers.c:224:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
libselinux-3.9/src/seusers.c:227:21: branch_false: ...to here
libselinux-3.9/src/seusers.c:227:20: branch_true: following ‘true’ branch...
libselinux-3.9/src/seusers.c:229:21: call_function: calling ‘check_group’ from ‘getseuserbyname’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libselinux-3.9/src/seusers.c:162:13: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libselinux-3.9/src/seusers.c:162:13: warning[-Wanalyzer-malloc-leak]: leak of ‘seuser’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
libselinux-3.9/src/seusers.c:162:13: warning[-Wanalyzer-malloc-leak]: leak of ‘username’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libselinux-3.9/src/seusers.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of ‘groups’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
libselinux-3.9/src/seusers.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
libselinux-3.9/src/seusers.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of ‘seuser’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
libselinux-3.9/src/seusers.c:168:21: warning[-Wanalyzer-malloc-leak]: leak of ‘username’
libselinux-3.9/src/seusers.c:287:5: enter_function: entry to ‘getseuser’
libselinux-3.9/src/seusers.c:346:12: branch_false: following ‘false’ branch (when ‘fp’ is NULL)...
libselinux-3.9/src/seusers.c:347:9: branch_false: ...to here
libselinux-3.9/src/seusers.c:349:16: branch_true: following ‘true’ branch (when ‘ret != 0’)...
libselinux-3.9/src/seusers.c:349:23: branch_true: ...to here
libselinux-3.9/src/seusers.c:349:23: call_function: calling ‘getseuserbyname’ from ‘getseuser’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
libselinux-3.9/src/stringrep.c:89:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
libselinux-3.9/src/stringrep.c:89:14: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
libselinux-3.9/src/stringrep.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
libselinux-3.9/src/stringrep.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def209]
libselinux-3.9/src/stringrep.c:96:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524288)’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
libselinux-3.9/src/stringrep.c:111:18: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
libselinux-3.9/src/stringrep.c:148:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&*dentry.d_name)’
libselinux-3.9/src/stringrep.c:213:18: enter_function: entry to ‘mode_to_security_class’
libselinux-3.9/src/stringrep.c:215:12: branch_true: following ‘true’ branch...
libselinux-3.9/src/stringrep.c:216:24: branch_true: ...to here
libselinux-3.9/src/stringrep.c:216:24: call_function: calling ‘string_to_security_class’ from ‘mode_to_security_class’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def212]
libselinux-3.9/src/validatetrans.c:41:65: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/validatetrans.c:24:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:28:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:29:14: acquire_resource: opened here
libselinux-3.9/src/validatetrans.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:34:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/validatetrans.c:41:65: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:41:65: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
libselinux-3.9/src/validatetrans.c:41:65: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libselinux-3.9/src/validatetrans.c:24:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:28:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:34:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:36:15: acquire_memory: allocated here
libselinux-3.9/src/validatetrans.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/validatetrans.c:41:65: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:41:65: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def214]
libselinux-3.9/src/validatetrans.c:49:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/validatetrans.c:24:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:28:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:29:14: acquire_resource: opened here
libselinux-3.9/src/validatetrans.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:34:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:37:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
libselinux-3.9/src/validatetrans.c:41:65: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:42:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:48:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:49:15: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def215]
libselinux-3.9/src/validatetrans.c:56:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 524289)’
libselinux-3.9/src/validatetrans.c:24:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:28:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:29:14: acquire_resource: opened here
libselinux-3.9/src/validatetrans.c:30:12: branch_false: following ‘false’ branch...
libselinux-3.9/src/validatetrans.c:34:9: branch_false: ...to here
libselinux-3.9/src/validatetrans.c:56:9: danger: ‘open(&path, 524289)’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def216]
libselinux-3.9/utils/avcstat.c:160:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:95:5: enter_function: entry to ‘main’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:149:9: call_function: calling ‘set_window_rows’ from ‘main’
libselinux-3.9/utils/avcstat.c:149:9: return_function: returning to ‘main’ from ‘set_window_rows’
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def217]
libselinux-3.9/utils/avcstat.c:163:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:95:5: enter_function: entry to ‘main’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:149:9: call_function: calling ‘set_window_rows’ from ‘main’
libselinux-3.9/utils/avcstat.c:149:9: return_function: returning to ‘main’ from ‘set_window_rows’
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def218]
libselinux-3.9/utils/avcstat.c:168:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:95:5: enter_function: entry to ‘main’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:149:9: call_function: calling ‘set_window_rows’ from ‘main’
libselinux-3.9/utils/avcstat.c:149:9: return_function: returning to ‘main’ from ‘set_window_rows’
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:167:24: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:168:20: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def219]
libselinux-3.9/utils/avcstat.c:172:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:95:5: enter_function: entry to ‘main’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:149:9: call_function: calling ‘set_window_rows’ from ‘main’
libselinux-3.9/utils/avcstat.c:149:9: return_function: returning to ‘main’ from ‘set_window_rows’
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:167:24: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:168:20: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:172:21: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:172:20: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def220]
libselinux-3.9/utils/avcstat.c:191:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:167:24: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:168:20: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:172:21: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:172:20: branch_false: following ‘false’ branch (when the strings are equal)...
libselinux-3.9/utils/avcstat.c:176:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:176:20: branch_true: following ‘true’ branch (when ‘i == 0’)...
libselinux-3.9/utils/avcstat.c:177:25: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:182:24: branch_true: following ‘true’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:185:31: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:191:28: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def221]
libselinux-3.9/utils/avcstat.c:195:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:167:24: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:168:20: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:172:21: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:172:20: branch_false: following ‘false’ branch (when the strings are equal)...
libselinux-3.9/utils/avcstat.c:176:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:176:20: branch_true: following ‘true’ branch (when ‘i == 0’)...
libselinux-3.9/utils/avcstat.c:177:25: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:182:24: branch_true: following ‘true’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:185:31: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:191:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:195:25: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:182:24: branch_true: following ‘true’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:185:31: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:195:25: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def222]
libselinux-3.9/utils/avcstat.c:204:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:95:5: enter_function: entry to ‘main’
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:149:9: call_function: calling ‘set_window_rows’ from ‘main’
libselinux-3.9/utils/avcstat.c:149:9: return_function: returning to ‘main’ from ‘set_window_rows’
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:167:24: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:168:20: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:172:21: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:172:20: branch_false: following ‘false’ branch (when the strings are equal)...
libselinux-3.9/utils/avcstat.c:176:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:176:20: branch_true: following ‘true’ branch (when ‘i == 0’)...
libselinux-3.9/utils/avcstat.c:177:25: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:182:24: branch_false: following ‘false’ branch (when ‘line’ is NULL)...
libselinux-3.9/utils/avcstat.c:204:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:204:20: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def223]
libselinux-3.9/utils/avcstat.c:227:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&avcstatfile, 0)’
libselinux-3.9/utils/avcstat.c:130:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:134:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:134:20: branch_false: following ‘false’ branch (when ‘n != 0’)...
libselinux-3.9/utils/avcstat.c:138:17: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:146:12: branch_false: following ‘false’ branch (when ‘i >= 0’)...
libselinux-3.9/utils/avcstat.c:149:9: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:150:14: acquire_resource: opened here
libselinux-3.9/utils/avcstat.c:151:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/avcstat.c:160:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:163:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:163:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:167:24: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:168:20: branch_false: following ‘false’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:172:21: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:172:20: branch_false: following ‘false’ branch (when the strings are equal)...
libselinux-3.9/utils/avcstat.c:176:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:176:20: branch_true: following ‘true’ branch (when ‘i == 0’)...
libselinux-3.9/utils/avcstat.c:177:25: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:182:24: branch_true: following ‘true’ branch (when ‘line’ is non-NULL)...
libselinux-3.9/utils/avcstat.c:185:31: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:191:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:195:25: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:182:24: branch_false: following ‘false’ branch (when ‘line’ is NULL)...
libselinux-3.9/utils/avcstat.c:204:20: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:204:20: branch_false: following ‘false’ branch (when ‘parsed != 0’)...
libselinux-3.9/utils/avcstat.c:207:21: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:207:20: branch_true: following ‘true’ branch...
libselinux-3.9/utils/avcstat.c:208:25: branch_true: ...to here
libselinux-3.9/utils/avcstat.c:223:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/avcstat.c:226:17: branch_false: ...to here
libselinux-3.9/utils/avcstat.c:227:17: danger: ‘open(&avcstatfile, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
libselinux-3.9/utils/getconlist.c:47:14: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getconlist.c:27:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getconlist.c:28:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:28:17: branch_true: following ‘true’ branch (when ‘opt == 108’)...
libselinux-3.9/utils/getconlist.c:29:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:31:33: acquire_memory: allocated here
libselinux-3.9/utils/getconlist.c:32:28: branch_false: following ‘false’ branch (when ‘level’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/utils/getconlist.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:47:14: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:47:14: danger: ‘level’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
libselinux-3.9/utils/getconlist.c:58:21: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getconlist.c:27:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getconlist.c:28:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:28:17: branch_true: following ‘true’ branch (when ‘opt == 108’)...
libselinux-3.9/utils/getconlist.c:29:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:31:33: acquire_memory: allocated here
libselinux-3.9/utils/getconlist.c:32:28: branch_false: following ‘false’ branch (when ‘level’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/utils/getconlist.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:47:14: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:47:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:54:20: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:57:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getconlist.c:58:21: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:58:21: danger: ‘level’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
libselinux-3.9/utils/getconlist.c:66:21: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getconlist.c:27:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getconlist.c:28:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:28:17: branch_true: following ‘true’ branch (when ‘opt == 108’)...
libselinux-3.9/utils/getconlist.c:29:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:31:33: acquire_memory: allocated here
libselinux-3.9/utils/getconlist.c:32:28: branch_false: following ‘false’ branch (when ‘level’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/utils/getconlist.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:47:14: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:47:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:54:20: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:57:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:65:36: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:66:21: danger: ‘level’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
libselinux-3.9/utils/getconlist.c:76:21: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getconlist.c:27:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getconlist.c:28:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:28:17: branch_true: following ‘true’ branch (when ‘opt == 108’)...
libselinux-3.9/utils/getconlist.c:29:17: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:31:33: acquire_memory: allocated here
libselinux-3.9/utils/getconlist.c:32:28: branch_false: following ‘false’ branch (when ‘level’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/utils/getconlist.c:43:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:47:14: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:47:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:54:20: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:57:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:65:36: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:66:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getconlist.c:74:12: branch_false: ...to here
libselinux-3.9/utils/getconlist.c:74:12: branch_true: following ‘true’ branch (when ‘level’ is non-NULL)...
libselinux-3.9/utils/getconlist.c:76:21: branch_true: ...to here
libselinux-3.9/utils/getconlist.c:76:21: danger: ‘level’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libselinux-3.9/utils/getdefaultcon.c:55:14: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:33:33: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:14: danger: ‘level’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
libselinux-3.9/utils/getdefaultcon.c:55:14: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:37:32: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:14: danger: ‘role’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
libselinux-3.9/utils/getdefaultcon.c:55:14: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:41:35: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:14: danger: ‘service’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
libselinux-3.9/utils/getdefaultcon.c:68:21: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:33:33: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:21: danger: ‘level’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
libselinux-3.9/utils/getdefaultcon.c:68:21: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:37:32: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:21: danger: ‘role’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
libselinux-3.9/utils/getdefaultcon.c:68:21: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:41:35: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:21: danger: ‘service’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
libselinux-3.9/utils/getdefaultcon.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:33:33: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:13: danger: ‘level’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
libselinux-3.9/utils/getdefaultcon.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:37:32: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:13: danger: ‘role’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
libselinux-3.9/utils/getdefaultcon.c:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:33:33: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:88:15: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:88:15: danger: ‘level’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
libselinux-3.9/utils/getdefaultcon.c:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:37:32: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:88:15: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:88:15: danger: ‘role’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
libselinux-3.9/utils/getdefaultcon.c:96:23: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:37:32: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:88:15: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:89:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:94:12: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:94:12: branch_true: following ‘true’ branch (when ‘level’ is NULL)...
libselinux-3.9/utils/getdefaultcon.c:94:22: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:95:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:96:23: danger: ‘role’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
libselinux-3.9/utils/getdefaultcon.c:98:23: warning[-Wanalyzer-malloc-leak]: leak of ‘level’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:33:33: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:88:15: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:89:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:94:12: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:94:12: branch_false: following ‘false’ branch (when ‘level’ is non-NULL)...
libselinux-3.9/utils/getdefaultcon.c:95:12: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:95:12: branch_false: following ‘false’ branch (when ‘role’ is NULL)...
libselinux-3.9/utils/getdefaultcon.c:98:23: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:98:23: danger: ‘level’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
libselinux-3.9/utils/getdefaultcon.c:98:23: warning[-Wanalyzer-malloc-leak]: leak of ‘role’
libselinux-3.9/utils/getdefaultcon.c:29:16: branch_true: following ‘true’ branch (when ‘opt > 0’)...
libselinux-3.9/utils/getdefaultcon.c:30:17: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:37:32: acquire_memory: allocated here
libselinux-3.9/utils/getdefaultcon.c:51:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:55:14: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:55:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:64:20: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:67:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getdefaultcon.c:68:21: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:68:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:75:17: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:79:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:88:15: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:89:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:94:12: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:94:12: branch_true: following ‘true’ branch (when ‘level’ is NULL)...
libselinux-3.9/utils/getdefaultcon.c:94:22: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:95:12: branch_true: following ‘true’ branch (when ‘role’ is non-NULL)...
libselinux-3.9/utils/getdefaultcon.c:95:29: branch_true: ...to here
libselinux-3.9/utils/getdefaultcon.c:95:13: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getdefaultcon.c:98:23: branch_false: ...to here
libselinux-3.9/utils/getdefaultcon.c:98:23: danger: ‘role’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
libselinux-3.9/utils/getsebool.c:75:26: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libselinux-3.9/utils/getsebool.c:49:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getsebool.c:54:13: branch_false: ...to here
libselinux-3.9/utils/getsebool.c:54:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getsebool.c:55:20: branch_true: ...to here
libselinux-3.9/utils/getsebool.c:55:20: branch_false: following ‘false’ branch (when ‘argc > 1’)...
libselinux-3.9/utils/getsebool.c:57:23: branch_false: ...to here
libselinux-3.9/utils/getsebool.c:59:20: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/getsebool.c:63:29: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getsebool.c:64:48: branch_true: ...to here
libselinux-3.9/utils/getsebool.c:64:36: acquire_memory: allocated here
libselinux-3.9/utils/getsebool.c:65:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getsebool.c:63:38: branch_false: ...to here
libselinux-3.9/utils/getsebool.c:63:29: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/getsebool.c:74:21: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getsebool.c:75:59: branch_true: ...to here
libselinux-3.9/utils/getsebool.c:75:26: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
libselinux-3.9/utils/getsebool.c:75:26: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
libselinux-3.9/utils/getsebool.c:49:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getsebool.c:54:13: branch_false: ...to here
libselinux-3.9/utils/getsebool.c:54:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getsebool.c:55:20: branch_true: ...to here
libselinux-3.9/utils/getsebool.c:55:20: branch_false: following ‘false’ branch (when ‘argc > 1’)...
libselinux-3.9/utils/getsebool.c:57:23: branch_false: ...to here
libselinux-3.9/utils/getsebool.c:58:25: acquire_memory: allocated here
libselinux-3.9/utils/getsebool.c:59:20: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/getsebool.c:63:29: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getsebool.c:64:48: branch_true: ...to here
libselinux-3.9/utils/getsebool.c:65:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/getsebool.c:63:38: branch_false: ...to here
libselinux-3.9/utils/getsebool.c:63:29: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/getsebool.c:74:21: branch_true: following ‘true’ branch...
libselinux-3.9/utils/getsebool.c:75:59: branch_true: ...to here
libselinux-3.9/utils/getsebool.c:75:26: danger: ‘names’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
libselinux-3.9/utils/sefcontext_compile.c:209:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bin_file’
libselinux-3.9/utils/sefcontext_compile.c:413:12: enter_function: entry to ‘write_binary_file’
libselinux-3.9/utils/sefcontext_compile.c:424:20: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:425:12: branch_false: following ‘false’ branch (when ‘bin_file’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:432:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:434:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:438:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:440:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:444:23: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:445:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:447:27: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:448:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:450:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:452:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:454:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:455:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:459:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:460:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:462:24: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:463:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:465:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:467:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:469:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:470:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:474:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:476:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:480:14: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:480:14: call_function: calling ‘write_sidtab’ from ‘write_binary_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
libselinux-3.9/utils/sefcontext_compile.c:209:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sids’
libselinux-3.9/utils/sefcontext_compile.c:189:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:192:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:192:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:196:16: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:196:16: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:197:12: branch_false: following ‘false’ branch (when ‘sids’ is non-NULL)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:200:30: branch_true: following ‘true’ branch (when ‘i != 128’)...
libselinux-3.9/utils/sefcontext_compile.c:201:49: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:200:30: branch_true: following ‘true’ branch (when ‘i != 128’)...
libselinux-3.9/utils/sefcontext_compile.c:201:49: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:203:24: branch_false: following ‘false’ branch (when ‘cur’ is NULL)...
libselinux-3.9/utils/sefcontext_compile.c:200:47: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:208:9: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:209:9: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:209:9: danger: ‘sids’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
libselinux-3.9/utils/sefcontext_compile.c:248:15: warning[-Wanalyzer-malloc-leak]: leak of ‘bin_file’
libselinux-3.9/utils/sefcontext_compile.c:413:12: enter_function: entry to ‘write_binary_file’
libselinux-3.9/utils/sefcontext_compile.c:424:20: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:425:12: branch_false: following ‘false’ branch (when ‘bin_file’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:432:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:434:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:438:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:440:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:444:23: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:445:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:447:27: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:448:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:450:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:452:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:454:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:455:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:459:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:460:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:462:24: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:463:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:465:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:467:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:469:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:470:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:474:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:476:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:480:14: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:481:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:484:63: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:484:14: call_function: calling ‘write_spec_node’ from ‘write_binary_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
libselinux-3.9/utils/sefcontext_compile.c:304:15: warning[-Wanalyzer-malloc-leak]: leak of ‘bin_file’
libselinux-3.9/utils/sefcontext_compile.c:413:12: enter_function: entry to ‘write_binary_file’
libselinux-3.9/utils/sefcontext_compile.c:424:20: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:425:12: branch_false: following ‘false’ branch (when ‘bin_file’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:432:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:434:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:438:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:440:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:444:23: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:445:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:447:27: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:448:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:450:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:452:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:454:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:455:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:459:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:460:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:462:24: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:463:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:465:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:467:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:469:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:470:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:474:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:476:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:480:14: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:481:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:484:63: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:484:14: call_function: calling ‘write_spec_node’ from ‘write_binary_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
libselinux-3.9/utils/sefcontext_compile.c:344:14: warning[-Wanalyzer-malloc-leak]: leak of ‘bin_file’
libselinux-3.9/utils/sefcontext_compile.c:413:12: enter_function: entry to ‘write_binary_file’
libselinux-3.9/utils/sefcontext_compile.c:424:20: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:425:12: branch_false: following ‘false’ branch (when ‘bin_file’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:432:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:434:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:438:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:440:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:444:23: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:445:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:447:27: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:448:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:450:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:452:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:454:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:455:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:459:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:460:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:462:24: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:463:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:465:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:467:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:469:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:470:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:474:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:476:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:480:14: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:481:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:484:63: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:484:14: call_function: calling ‘write_spec_node’ from ‘write_binary_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
libselinux-3.9/utils/sefcontext_compile.c:444:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bin_file’
libselinux-3.9/utils/sefcontext_compile.c:424:20: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:425:12: branch_false: following ‘false’ branch (when ‘bin_file’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:432:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:434:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:438:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:440:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:444:23: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:444:23: danger: ‘bin_file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
libselinux-3.9/utils/sefcontext_compile.c:459:20: warning[-Wanalyzer-malloc-leak]: leak of ‘bin_file’
libselinux-3.9/utils/sefcontext_compile.c:424:20: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:425:12: branch_false: following ‘false’ branch (when ‘bin_file’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:432:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:434:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:438:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:440:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:444:23: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:445:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:447:27: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:448:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:450:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:452:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:454:15: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:455:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:459:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:459:20: danger: ‘bin_file’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def250]
libselinux-3.9/utils/sefcontext_compile.c:598:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(policy_file, "re")’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:590:29: acquire_resource: opened here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:21: danger: ‘fopen(policy_file, "re")’ leaks here; was opened at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
libselinux-3.9/utils/sefcontext_compile.c:598:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(policy_file, "re")’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/sefcontext_compile.c:590:29: branch_true: ...to here
libselinux-3.9/utils/sefcontext_compile.c:590:29: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:592:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:598:21: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:598:21: danger: ‘fopen(policy_file, "re")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
libselinux-3.9/utils/sefcontext_compile.c:623:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
libselinux-3.9/utils/sefcontext_compile.c:554:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:579:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:582:20: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:583:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:589:13: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:589:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/sefcontext_compile.c:607:40: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:607:40: acquire_memory: allocated here
libselinux-3.9/utils/sefcontext_compile.c:608:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
libselinux-3.9/utils/sefcontext_compile.c:622:9: branch_false: ...to here
libselinux-3.9/utils/sefcontext_compile.c:623:9: danger: ‘rec’ leaks here; was allocated at [(9)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
libselinux-3.9/utils/selabel_digest.c:33:14: warning[-Wanalyzer-malloc-leak]: leak of ‘sha256_buf’
libselinux-3.9/utils/selabel_digest.c:58:5: enter_function: entry to ‘main’
libselinux-3.9/utils/selabel_digest.c:78:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:126:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:139:14: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:142:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:154:29: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:154:22: acquire_memory: allocated here
libselinux-3.9/utils/selabel_digest.c:155:12: branch_false: following ‘false’ branch (when ‘sha256_buf’ is non-NULL)...
libselinux-3.9/utils/selabel_digest.c:162:9: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:163:21: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:166:9: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:169:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/selabel_digest.c:173:20: branch_true: ...to here
libselinux-3.9/utils/selabel_digest.c:173:20: branch_true: following ‘true’ branch (when ‘validate != 0’)...
libselinux-3.9/utils/selabel_digest.c:175:31: branch_true: ...to here
libselinux-3.9/utils/selabel_digest.c:176:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:185:29: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:200:20: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:200:20: branch_true: following ‘true’ branch (when ‘validate != 0’)...
libselinux-3.9/utils/selabel_digest.c:201:31: branch_true: ...to here
libselinux-3.9/utils/selabel_digest.c:202:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:208:30: call_function: calling ‘run_check_digest’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
libselinux-3.9/utils/selabel_digest.c:54:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "r")’
libselinux-3.9/utils/selabel_digest.c:33:14: acquire_memory: allocated here
libselinux-3.9/utils/selabel_digest.c:34:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:54:9: danger: ‘popen(cmd, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
libselinux-3.9/utils/selabel_digest.c:54:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sha256_buf’
libselinux-3.9/utils/selabel_digest.c:58:5: enter_function: entry to ‘main’
libselinux-3.9/utils/selabel_digest.c:78:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:126:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:139:14: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:142:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:154:29: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:154:22: acquire_memory: allocated here
libselinux-3.9/utils/selabel_digest.c:155:12: branch_false: following ‘false’ branch (when ‘sha256_buf’ is non-NULL)...
libselinux-3.9/utils/selabel_digest.c:162:9: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:163:21: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:166:9: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:169:12: branch_true: following ‘true’ branch...
libselinux-3.9/utils/selabel_digest.c:173:20: branch_true: ...to here
libselinux-3.9/utils/selabel_digest.c:173:20: branch_true: following ‘true’ branch (when ‘validate != 0’)...
libselinux-3.9/utils/selabel_digest.c:175:31: branch_true: ...to here
libselinux-3.9/utils/selabel_digest.c:176:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:185:29: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:200:20: branch_false: ...to here
libselinux-3.9/utils/selabel_digest.c:200:20: branch_true: following ‘true’ branch (when ‘validate != 0’)...
libselinux-3.9/utils/selabel_digest.c:201:31: branch_true: ...to here
libselinux-3.9/utils/selabel_digest.c:202:28: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selabel_digest.c:208:30: call_function: calling ‘run_check_digest’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
libselinux-3.9/utils/selinuxexeccon.c:22:19: warning[-Wanalyzer-malloc-leak]: leak of ‘con’
libselinux-3.9/utils/selinuxexeccon.c:32:5: enter_function: entry to ‘main’
libselinux-3.9/utils/selinuxexeccon.c:36:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selinuxexeccon.c:39:12: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:39:12: branch_false: following ‘false’ branch (when ‘argc != 2’)...
libselinux-3.9/utils/selinuxexeccon.c:45:23: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:45:23: acquire_memory: allocated here
libselinux-3.9/utils/selinuxexeccon.c:46:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selinuxexeccon.c:53:19: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:53:19: call_function: calling ‘get_selinux_proc_context’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
libselinux-3.9/utils/selinuxexeccon.c:24:15: warning[-Wanalyzer-malloc-leak]: leak of ‘con’
libselinux-3.9/utils/selinuxexeccon.c:32:5: enter_function: entry to ‘main’
libselinux-3.9/utils/selinuxexeccon.c:36:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selinuxexeccon.c:39:12: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:39:12: branch_false: following ‘false’ branch (when ‘argc != 2’)...
libselinux-3.9/utils/selinuxexeccon.c:45:23: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:45:23: acquire_memory: allocated here
libselinux-3.9/utils/selinuxexeccon.c:46:20: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selinuxexeccon.c:53:19: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:53:19: call_function: calling ‘get_selinux_proc_context’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
libselinux-3.9/utils/selinuxexeccon.c:46:21: warning[-Wanalyzer-malloc-leak]: leak of ‘con’
libselinux-3.9/utils/selinuxexeccon.c:36:12: branch_false: following ‘false’ branch...
libselinux-3.9/utils/selinuxexeccon.c:39:12: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:39:12: branch_false: following ‘false’ branch (when ‘argc != 2’)...
libselinux-3.9/utils/selinuxexeccon.c:45:23: branch_false: ...to here
libselinux-3.9/utils/selinuxexeccon.c:45:23: acquire_memory: allocated here
libselinux-3.9/utils/selinuxexeccon.c:46:21: danger: ‘con’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
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-133.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 | libselinux-3.9-5.fc44 |
| store-results-to | /tmp/tmp3ssr9bl1/libselinux-3.9-5.fc44.tar.xz |
| time-created | 2025-10-28 19:15:06 |
| time-finished | 2025-10-28 19:17:45 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp3ssr9bl1/libselinux-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/tmp3ssr9bl1/libselinux-3.9-5.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |