ima-evm-utils-1.6.2-7.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
ima-evm-utils-1.6.2/src/evmctl.c:273:26: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1345:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1349:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1349:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1350:23: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1350:23: call_function: calling ‘get_uuid’ from ‘calc_evm_hmac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
ima-evm-utils-1.6.2/src/evmctl.c:274:25: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1345:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1349:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1349:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1350:23: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1350:23: call_function: calling ‘get_uuid’ from ‘calc_evm_hmac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
ima-evm-utils-1.6.2/src/evmctl.c:318:12: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(&path, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1345:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1349:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1349:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1350:23: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1350:23: call_function: calling ‘get_uuid’ from ‘calc_evm_hmac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
ima-evm-utils-1.6.2/src/evmctl.c:1127:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(inkey, 0, & len)’
ima-evm-utils-1.6.2/src/evmctl.c:1077:12: enter_function: entry to ‘cmd_import’
ima-evm-utils-1.6.2/src/evmctl.c:1117:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1118:34: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1120:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: call_function: calling ‘file2bin’ from ‘cmd_import’
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: return_function: returning to ‘cmd_import’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1123:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1127:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1127:17: danger: ‘file2bin(inkey, 0, & len)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
ima-evm-utils-1.6.2/src/evmctl.c:1128:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(inkey, 0, & len)’
ima-evm-utils-1.6.2/src/evmctl.c:1077:12: enter_function: entry to ‘cmd_import’
ima-evm-utils-1.6.2/src/evmctl.c:1117:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1118:34: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1120:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: call_function: calling ‘file2bin’ from ‘cmd_import’
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: return_function: returning to ‘cmd_import’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1123:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1127:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1128:17: danger: ‘file2bin(inkey, 0, & len)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
ima-evm-utils-1.6.2/src/evmctl.c:1146:14: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(inkey, 0, & len)’
ima-evm-utils-1.6.2/src/evmctl.c:1077:12: enter_function: entry to ‘cmd_import’
ima-evm-utils-1.6.2/src/evmctl.c:1117:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1118:34: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1120:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: call_function: calling ‘file2bin’ from ‘cmd_import’
ima-evm-utils-1.6.2/src/evmctl.c:1122:23: return_function: returning to ‘cmd_import’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1123:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1127:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1146:14: branch_true: following ‘true’ branch...
branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1146:14: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1146:14: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1146:14: danger: ‘file2bin(inkey, 0, & len)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
ima-evm-utils-1.6.2/src/evmctl.c:1248:26: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1243:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1248:26: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1248:26: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
ima-evm-utils-1.6.2/src/evmctl.c:1256:25: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1243:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1248:26: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1250:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1254:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1254:20: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1255:25: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1256:25: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
ima-evm-utils-1.6.2/src/evmctl.c:1259:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1243:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1248:26: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1250:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1254:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1254:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1259:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1259:17: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
ima-evm-utils-1.6.2/src/evmctl.c:1301:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1290:49: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1291:23: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1292:20: branch_false: following ‘false’ branch (when ‘err >= 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1296:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1296:22: call_function: calling ‘find_xattr’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1296:22: return_function: returning to ‘calc_evm_hmac’ from ‘find_xattr’
ima-evm-utils-1.6.2/src/evmctl.c:1296:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1300:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1301:17: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1301:17: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1301:17: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
ima-evm-utils-1.6.2/src/evmctl.c:1303:23: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1290:49: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1291:23: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1292:20: branch_false: following ‘false’ branch (when ‘err >= 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1296:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1296:22: call_function: calling ‘find_xattr’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1296:22: return_function: returning to ‘calc_evm_hmac’ from ‘find_xattr’
ima-evm-utils-1.6.2/src/evmctl.c:1296:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1300:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1303:23: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
ima-evm-utils-1.6.2/src/evmctl.c:1342:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1342:9: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1342:9: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1342:9: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
ima-evm-utils-1.6.2/src/evmctl.c:1344:15: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1344:15: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
ima-evm-utils-1.6.2/src/evmctl.c:1361:15: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1345:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1349:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1349:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1361:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1361:15: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
ima-evm-utils-1.6.2/src/evmctl.c:1365:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1365:9: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
ima-evm-utils-1.6.2/src/evmctl.c:1367:9: warning[-Wanalyzer-malloc-leak]: leak of ‘file2bin(keyfile, 0, & keylen)’
ima-evm-utils-1.6.2/src/evmctl.c:1199:12: enter_function: entry to ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: call_function: calling ‘file2bin’ from ‘calc_evm_hmac’
ima-evm-utils-1.6.2/src/evmctl.c:1222:15: return_function: returning to ‘calc_evm_hmac’ from ‘file2bin’
ima-evm-utils-1.6.2/src/evmctl.c:1223:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1228:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1228:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1234:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1235:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1238:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1238:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1243:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1265:12: branch_false: following ‘false’ branch (when ‘list_size > 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:1271:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1272:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1278:16: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1279:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1284:15: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1285:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1290:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1367:9: danger: ‘file2bin(keyfile, 0, & keylen)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
ima-evm-utils-1.6.2/src/evmctl.c:1468:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
ima-evm-utils-1.6.2/src/evmctl.c:1462:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:1463:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:1468:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1468:9: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
ima-evm-utils-1.6.2/src/evmctl.c:1774:14: warning[-Wanalyzer-malloc-leak]: leak of ‘banks’
ima-evm-utils-1.6.2/src/evmctl.c:1782:30: enter_function: entry to ‘init_tpm_banks’
ima-evm-utils-1.6.2/src/evmctl.c:1789:17: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:1790:12: branch_false: following ‘false’ branch (when ‘banks’ is non-NULL)...
ima-evm-utils-1.6.2/src/evmctl.c:1796:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1797:21: branch_true: following ‘true’ branch (when ‘i <= 1’)...
branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1798:29: branch_true: following ‘true’ branch (when ‘j <= 17’)...
ima-evm-utils-1.6.2/src/evmctl.c:1799:55: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1799:28: branch_true: following ‘true’ branch (when the strings are equal)...
ima-evm-utils-1.6.2/src/evmctl.c:1800:53: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:1800:33: call_function: calling ‘set_bank_info’ from ‘init_tpm_banks’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
ima-evm-utils-1.6.2/src/evmctl.c:2016:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
ima-evm-utils-1.6.2/src/evmctl.c:2026:12: enter_function: entry to ‘read_sysfs_pcrs’
ima-evm-utils-1.6.2/src/evmctl.c:2031:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2032:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2039:18: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2039:18: call_function: calling ‘read_one_bank’ from ‘read_sysfs_pcrs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
ima-evm-utils-1.6.2/src/evmctl.c:2016:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
ima-evm-utils-1.6.2/src/evmctl.c:2026:12: enter_function: entry to ‘read_sysfs_pcrs’
ima-evm-utils-1.6.2/src/evmctl.c:2031:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2032:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2039:18: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2039:18: call_function: calling ‘read_one_bank’ from ‘read_sysfs_pcrs’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
ima-evm-utils-1.6.2/src/evmctl.c:2073:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&file_name, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2057:21: branch_true: following ‘true’ branch (when ‘i <= 23’)...
ima-evm-utils-1.6.2/src/evmctl.c:2058:17: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2060:22: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2061:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2067:35: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2068:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2073:51: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2073:17: danger: ‘fopen(&file_name, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
ima-evm-utils-1.6.2/src/evmctl.c:2073:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&file_name, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2057:21: branch_true: following ‘true’ branch (when ‘i <= 23’)...
ima-evm-utils-1.6.2/src/evmctl.c:2058:17: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2060:22: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2061:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2067:35: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2068:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2073:51: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2073:17: danger: ‘fopen(&file_name, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
ima-evm-utils-1.6.2/src/evmctl.c:2159:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2107:12: enter_function: entry to ‘read_file_pcrs’
ima-evm-utils-1.6.2/src/evmctl.c:2118:21: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2119:28: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2120:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
ima-evm-utils-1.6.2/src/evmctl.c:2130:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2136:20: branch_false: following ‘false’ branch (when ‘bank >= 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:2141:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2141:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2146:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2146:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2151:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2151:22: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2152:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2157:50: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2157:26: call_function: calling ‘read_one_bank’ from ‘read_file_pcrs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
ima-evm-utils-1.6.2/src/evmctl.c:2159:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2107:12: enter_function: entry to ‘read_file_pcrs’
ima-evm-utils-1.6.2/src/evmctl.c:2118:21: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2119:28: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2120:20: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
ima-evm-utils-1.6.2/src/evmctl.c:2130:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2136:20: branch_false: following ‘false’ branch (when ‘bank >= 0’)...
ima-evm-utils-1.6.2/src/evmctl.c:2141:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2141:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2146:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2146:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2151:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2151:22: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2152:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2157:50: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2157:26: call_function: calling ‘read_one_bank’ from ‘read_file_pcrs’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
ima-evm-utils-1.6.2/src/evmctl.c:2544:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2544:14: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
ima-evm-utils-1.6.2/src/evmctl.c:2544:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2544:14: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2562:20: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2563:25: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2562:20: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2563:25: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2564:25: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
ima-evm-utils-1.6.2/src/evmctl.c:2577:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2572:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2577:61: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2577:27: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
ima-evm-utils-1.6.2/src/evmctl.c:2577:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2572:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2577:61: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2577:27: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2572:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2577:61: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2578:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2572:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2577:61: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2578:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
ima-evm-utils-1.6.2/src/evmctl.c:2587:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_resource: opened here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2572:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2577:61: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2578:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2583:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2587:60: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2587:27: danger: ‘fopen(file, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
ima-evm-utils-1.6.2/src/evmctl.c:2587:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "r")’
ima-evm-utils-1.6.2/src/evmctl.c:2529:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2532:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2532:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2537:14: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2538:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2541:13: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2545:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2552:17: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2553:12: branch_false: following ‘false’ branch...
branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2561:16: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2562:21: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2566:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2571:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2572:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2577:61: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2578:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2582:27: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2583:20: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:2587:60: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:2587:27: danger: ‘fopen(file, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
ima-evm-utils-1.6.2/src/evmctl.c:3002:17: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
ima-evm-utils-1.6.2/src/evmctl.c:2990:20: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2991:12: branch_false: following ‘false’ branch (when ‘password’ is non-NULL)...
ima-evm-utils-1.6.2/src/evmctl.c:2996:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:3001:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:3002:17: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:3002:17: danger: ‘password’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
ima-evm-utils-1.6.2/src/evmctl.c:3012:17: warning[-Wanalyzer-malloc-leak]: leak of ‘password’
ima-evm-utils-1.6.2/src/evmctl.c:2990:20: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/evmctl.c:2991:12: branch_false: following ‘false’ branch (when ‘password’ is non-NULL)...
ima-evm-utils-1.6.2/src/evmctl.c:2996:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:3001:12: branch_false: following ‘false’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:3007:9: branch_false: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:3011:12: branch_true: following ‘true’ branch...
ima-evm-utils-1.6.2/src/evmctl.c:3012:17: branch_true: ...to here
ima-evm-utils-1.6.2/src/evmctl.c:3012:17: danger: ‘password’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
ima-evm-utils-1.6.2/src/libimaevm.c:159:22: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file, "r")'
ima-evm-utils-1.6.2/src/libimaevm.c:770:5: enter_function: entry to 'ima_verify_signature2'
ima-evm-utils-1.6.2/src/libimaevm.c:778:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:783:12: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:789:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: call_function: calling 'imaevm_hash_algo_by_id' from 'ima_verify_signature2'
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: return_function: returning to 'ima_verify_signature2' from 'imaevm_hash_algo_by_id'
ima-evm-utils-1.6.2/src/libimaevm.c:800:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:805:19: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:805:19: call_function: calling 'ima_calc_hash2' from 'ima_verify_signature2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
ima-evm-utils-1.6.2/src/libimaevm.c:159:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ima-evm-utils-1.6.2/src/libimaevm.c:770:5: enter_function: entry to 'ima_verify_signature2'
ima-evm-utils-1.6.2/src/libimaevm.c:778:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:783:12: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:789:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: call_function: calling 'imaevm_hash_algo_by_id' from 'ima_verify_signature2'
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: return_function: returning to 'ima_verify_signature2' from 'imaevm_hash_algo_by_id'
ima-evm-utils-1.6.2/src/libimaevm.c:800:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:805:19: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:805:19: call_function: calling 'ima_calc_hash2' from 'ima_verify_signature2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
ima-evm-utils-1.6.2/src/libimaevm.c:159:22: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file, "r")'
ima-evm-utils-1.6.2/src/libimaevm.c:770:5: enter_function: entry to 'ima_verify_signature2'
ima-evm-utils-1.6.2/src/libimaevm.c:778:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:783:12: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:789:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: call_function: calling 'imaevm_hash_algo_by_id' from 'ima_verify_signature2'
ima-evm-utils-1.6.2/src/libimaevm.c:794:21: return_function: returning to 'ima_verify_signature2' from 'imaevm_hash_algo_by_id'
ima-evm-utils-1.6.2/src/libimaevm.c:800:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:805:19: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:805:19: call_function: calling 'ima_calc_hash2' from 'ima_verify_signature2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
ima-evm-utils-1.6.2/src/libimaevm.c:392:9: warning[-Wanalyzer-malloc-leak]: leak of 'entry'
ima-evm-utils-1.6.2/src/libimaevm.c:733:5: enter_function: entry to 'imaevm_verify_hash'
ima-evm-utils-1.6.2/src/libimaevm.c:738:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:753:19: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:753:19: branch_true: following 'true' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:754:24: branch_true: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:754:24: call_function: calling 'verify_hash_v2' from 'imaevm_verify_hash'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
ima-evm-utils-1.6.2/src/libimaevm.c:961:14: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(certfile, "r")'
ima-evm-utils-1.6.2/src/libimaevm.c:957:20: acquire_resource: opened here
ima-evm-utils-1.6.2/src/libimaevm.c:957:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:961:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:961:14: danger: 'fopen(certfile, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
ima-evm-utils-1.6.2/src/libimaevm.c:961:14: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(certfile, "r")'
ima-evm-utils-1.6.2/src/libimaevm.c:957:20: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/libimaevm.c:957:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:961:14: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:961:14: danger: 'fopen(certfile, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
ima-evm-utils-1.6.2/src/libimaevm.c:1150:24: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(keyfile, "r")'
ima-evm-utils-1.6.2/src/libimaevm.c:1128:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:1145:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:1145:22: acquire_resource: opened here
ima-evm-utils-1.6.2/src/libimaevm.c:1146:20: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:1150:24: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:1150:24: danger: 'fopen(keyfile, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
ima-evm-utils-1.6.2/src/libimaevm.c:1150:24: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(keyfile, "r")'
ima-evm-utils-1.6.2/src/libimaevm.c:1128:12: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:1145:22: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:1145:22: acquire_memory: allocated here
ima-evm-utils-1.6.2/src/libimaevm.c:1146:20: branch_false: following 'false' branch...
ima-evm-utils-1.6.2/src/libimaevm.c:1150:24: branch_false: ...to here
ima-evm-utils-1.6.2/src/libimaevm.c:1150:24: danger: 'fopen(keyfile, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
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-42.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 | ima-evm-utils-1.6.2-7.fc44 |
| store-results-to | /tmp/tmpe2wqe3ga/ima-evm-utils-1.6.2-7.fc44.tar.xz |
| time-created | 2025-10-28 18:16:41 |
| time-finished | 2025-10-28 18:18:18 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpe2wqe3ga/ima-evm-utils-1.6.2-7.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpe2wqe3ga/ima-evm-utils-1.6.2-7.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |