flashrom-1.6.0-2.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-140): [#def1]
/usr/share/bash-completion/completions/flashrom.bash:29:16: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-140): [#def2]
/usr/share/bash-completion/completions/flashrom.bash:36:16: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-140): [#def3]
/usr/share/bash-completion/completions/flashrom.bash:73:14: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/usr/share/doc/flashrom/doc/sphinx-wrapper.sh:24:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
flashrom-v1.6.0/asm106x.c:147:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/asm106x.c:138:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/asm106x.c:141:16: branch_false: ...to here
flashrom-v1.6.0/asm106x.c:141:16: acquire_memory: allocated here
flashrom-v1.6.0/asm106x.c:142:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/asm106x.c:146:9: branch_false: ...to here
flashrom-v1.6.0/asm106x.c:147:16: throw: if ‘register_spi_master’ throws an exception...
flashrom-v1.6.0/asm106x.c:147:16: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
flashrom-v1.6.0/bitbang_spi.c:172:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/bitbang_spi.c:155:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/bitbang_spi.c:155:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/bitbang_spi.c:158:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/bitbang_spi.c:164:48: branch_false: ...to here
flashrom-v1.6.0/bitbang_spi.c:164:48: acquire_memory: allocated here
flashrom-v1.6.0/bitbang_spi.c:165:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/bitbang_spi.c:168:9: branch_false: ...to here
flashrom-v1.6.0/bitbang_spi.c:169:12: branch_false: following ‘false’ branch (when ‘spi_data’ is NULL)...
flashrom-v1.6.0/bitbang_spi.c:172:9: branch_false: ...to here
flashrom-v1.6.0/bitbang_spi.c:172:9: throw: if ‘register_spi_master’ throws an exception...
flashrom-v1.6.0/bitbang_spi.c:172:9: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
flashrom-v1.6.0/board_enable.c:2578:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tempstr’
flashrom-v1.6.0/board_enable.c:2566:25: acquire_memory: allocated here
flashrom-v1.6.0/board_enable.c:2570:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/board_enable.c:2576:19: branch_false: ...to here
flashrom-v1.6.0/board_enable.c:2578:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/board_enable.c:2578:9: danger: ‘tempstr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
flashrom-v1.6.0/buspirate_spi.c:41:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:441:15: call_function: calling ‘buspirate_serialport_setup’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
flashrom-v1.6.0/buspirate_spi.c:85:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
flashrom-v1.6.0/buspirate_spi.c:85:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_data’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:449:39: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
flashrom-v1.6.0/buspirate_spi.c:91:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
flashrom-v1.6.0/buspirate_spi.c:91:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_data’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:449:39: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
flashrom-v1.6.0/buspirate_spi.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
flashrom-v1.6.0/buspirate_spi.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_data’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:449:39: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
flashrom-v1.6.0/buspirate_spi.c:103:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
flashrom-v1.6.0/buspirate_spi.c:103:23: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_data’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:449:39: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
flashrom-v1.6.0/buspirate_spi.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
flashrom-v1.6.0/buspirate_spi.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_data’
flashrom-v1.6.0/buspirate_spi.c:315:12: enter_function: entry to ‘buspirate_spi_init’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:449:39: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_false: following ‘false’ branch (when ‘bp_data’ is non-NULL)...
flashrom-v1.6.0/buspirate_spi.c:455:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:463:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
flashrom-v1.6.0/buspirate_spi.c:465:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:467:23: call_function: calling ‘buspirate_sendrecv’ from ‘buspirate_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
flashrom-v1.6.0/buspirate_spi.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bp_commbuf’
flashrom-v1.6.0/buspirate_spi.c:336:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/buspirate_spi.c:336:20: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:336:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:345:15: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:433:22: acquire_memory: allocated here
flashrom-v1.6.0/buspirate_spi.c:434:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:439:9: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/buspirate_spi.c:449:39: branch_false: ...to here
flashrom-v1.6.0/buspirate_spi.c:450:12: branch_true: following ‘true’ branch (when ‘bp_data’ is NULL)...
flashrom-v1.6.0/buspirate_spi.c:451:17: branch_true: ...to here
flashrom-v1.6.0/buspirate_spi.c:451:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/buspirate_spi.c:451:17: danger: ‘bp_commbuf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def20]
flashrom-v1.6.0/ch341a_spi.c:234:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘state_in[i]’
flashrom-v1.6.0/ch341a_spi.c:147:12: branch_true: following ‘true’ branch (when ‘writecnt != 0’)...
flashrom-v1.6.0/ch341a_spi.c:148:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:150:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:151:25: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:224:9: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:227:12: branch_true: following ‘true’ branch (when ‘writecnt != 0’)...
flashrom-v1.6.0/ch341a_spi.c:227:31: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:231:12: branch_true: following ‘true’ branch (when ‘readcnt != 0’)...
flashrom-v1.6.0/ch341a_spi.c:231:12: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:233:29: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:234:29: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:234:29: danger: use of uninitialized value ‘state_in[i]’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
flashrom-v1.6.0/ch341a_spi.c:442:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:442:24: throw: if ‘libusb_open_device_with_vid_pid’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:442:24: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
flashrom-v1.6.0/ch341a_spi.c:444:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:444:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:444:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:444:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
flashrom-v1.6.0/ch341a_spi.c:448:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:448:15: throw: if ‘libusb_detach_kernel_driver’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:448:15: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
flashrom-v1.6.0/ch341a_spi.c:450:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:449:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:450:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:450:17: throw: if ‘libusb_error_name’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:450:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
flashrom-v1.6.0/ch341a_spi.c:453:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:453:15: throw: if ‘libusb_claim_interface’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:453:15: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
flashrom-v1.6.0/ch341a_spi.c:455:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:455:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:455:17: throw: if ‘libusb_error_name’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:455:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
flashrom-v1.6.0/ch341a_spi.c:460:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:21: throw: if ‘libusb_get_device’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:460:21: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
flashrom-v1.6.0/ch341a_spi.c:461:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:461:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:461:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:461:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
flashrom-v1.6.0/ch341a_spi.c:466:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:466:15: throw: if ‘libusb_get_device_descriptor’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:466:15: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
flashrom-v1.6.0/ch341a_spi.c:468:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:468:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:468:17: throw: if ‘libusb_error_name’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:468:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
flashrom-v1.6.0/ch341a_spi.c:472:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:472:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:472:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
flashrom-v1.6.0/ch341a_spi.c:478:30: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:478:30: throw: if ‘libusb_alloc_transfer’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:478:30: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
flashrom-v1.6.0/ch341a_spi.c:480:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:480:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:480:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:480:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
flashrom-v1.6.0/ch341a_spi.c:485:41: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:484:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:485:41: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:485:41: throw: if ‘libusb_alloc_transfer’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:485:41: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
flashrom-v1.6.0/ch341a_spi.c:487:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:484:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:485:41: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:486:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:487:25: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:487:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:487:25: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
flashrom-v1.6.0/ch341a_spi.c:505:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:484:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:485:41: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:486:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:484:43: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:484:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:485:41: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:486:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:487:25: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:502:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:503:21: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:503:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:505:17: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:505:17: throw: if ‘libusb_free_transfer’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:505:17: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
flashrom-v1.6.0/ch341a_spi.c:507:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:472:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:479:12: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:484:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:485:41: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:486:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:487:25: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:502:21: branch_true: following ‘true’ branch (when ‘i != 32’)...
flashrom-v1.6.0/ch341a_spi.c:503:21: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:503:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:507:9: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:507:9: throw: if ‘libusb_free_transfer’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:507:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
flashrom-v1.6.0/ch341a_spi.c:509:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:454:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:460:39: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:460:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:466:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:467:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch341a_spi.c:468:17: branch_true: ...to here
flashrom-v1.6.0/ch341a_spi.c:509:9: throw: if ‘libusb_release_interface’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:509:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
flashrom-v1.6.0/ch341a_spi.c:511:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:511:9: throw: if ‘libusb_attach_kernel_driver’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:511:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
flashrom-v1.6.0/ch341a_spi.c:512:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ch341a_spi.c:422:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:431:9: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:434:40: acquire_memory: allocated here
flashrom-v1.6.0/ch341a_spi.c:435:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ch341a_spi.c:442:24: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:443:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch341a_spi.c:448:15: branch_false: ...to here
flashrom-v1.6.0/ch341a_spi.c:512:9: throw: if ‘libusb_close’ throws an exception...
flashrom-v1.6.0/ch341a_spi.c:512:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
flashrom-v1.6.0/ch347_spi.c:87:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:377:9: call_function: calling ‘ch347_spi_shutdown’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
flashrom-v1.6.0/ch347_spi.c:88:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:377:9: call_function: calling ‘ch347_spi_shutdown’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
flashrom-v1.6.0/ch347_spi.c:89:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:377:9: call_function: calling ‘ch347_spi_shutdown’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
flashrom-v1.6.0/ch347_spi.c:90:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:377:9: call_function: calling ‘ch347_spi_shutdown’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
flashrom-v1.6.0/ch347_spi.c:257:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:368:13: call_function: calling ‘ch347_spi_config’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
flashrom-v1.6.0/ch347_spi.c:259:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:368:13: call_function: calling ‘ch347_spi_config’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
flashrom-v1.6.0/ch347_spi.c:265:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:368:13: call_function: calling ‘ch347_spi_config’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
flashrom-v1.6.0/ch347_spi.c:267:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:284:12: enter_function: entry to ‘ch347_spi_init’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:368:13: call_function: calling ‘ch347_spi_config’ from ‘ch347_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
flashrom-v1.6.0/ch347_spi.c:297:23: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:297:23: throw: if ‘libusb_init’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:297:23: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
flashrom-v1.6.0/ch347_spi.c:299:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:299:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:299:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:299:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
flashrom-v1.6.0/ch347_spi.c:307:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:307:9: throw: if ‘libusb_set_option’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:307:9: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
flashrom-v1.6.0/ch347_spi.c:312:38: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:312:38: throw: if ‘libusb_open_device_with_vid_pid’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:312:38: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
flashrom-v1.6.0/ch347_spi.c:320:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:313:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:317:17: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:313:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:317:17: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:320:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:320:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:320:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
flashrom-v1.6.0/ch347_spi.c:325:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:325:15: throw: if ‘libusb_detach_kernel_driver’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:325:15: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
flashrom-v1.6.0/ch347_spi.c:327:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:326:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:327:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:327:17: throw: if ‘libusb_error_name’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:327:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
flashrom-v1.6.0/ch347_spi.c:330:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:330:15: throw: if ‘libusb_claim_interface’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:330:15: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
flashrom-v1.6.0/ch347_spi.c:332:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:332:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:332:17: throw: if ‘libusb_error_name’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:332:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
flashrom-v1.6.0/ch347_spi.c:337:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:21: throw: if ‘libusb_get_device’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:337:21: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
flashrom-v1.6.0/ch347_spi.c:338:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:338:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:338:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:338:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
flashrom-v1.6.0/ch347_spi.c:343:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:343:15: throw: if ‘libusb_get_device_descriptor’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:343:15: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
flashrom-v1.6.0/ch347_spi.c:345:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:345:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:345:17: throw: if ‘libusb_error_name’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:345:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
flashrom-v1.6.0/ch347_spi.c:349:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:349:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:349:9: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
flashrom-v1.6.0/ch347_spi.c:355:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:355:15: throw: if ‘extract_programmer_param_str’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:355:15: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
flashrom-v1.6.0/ch347_spi.c:364:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:363:13: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:364:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:364:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:364:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
flashrom-v1.6.0/ch347_spi.c:371:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:368:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:371:17: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:371:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:371:17: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
flashrom-v1.6.0/ch347_spi.c:374:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ch347_data’
flashrom-v1.6.0/ch347_spi.c:291:45: acquire_memory: allocated here
flashrom-v1.6.0/ch347_spi.c:292:12: branch_false: following ‘false’ branch (when ‘ch347_data’ is non-NULL)...
flashrom-v1.6.0/ch347_spi.c:297:23: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:307:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:309:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/ch347_spi.c:311:17: branch_true: ...to here
flashrom-v1.6.0/ch347_spi.c:319:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:325:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:331:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:337:39: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:337:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:343:15: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:344:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:349:9: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:368:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ch347_spi.c:371:17: branch_false: ...to here
flashrom-v1.6.0/ch347_spi.c:374:16: throw: if ‘register_spi_master’ throws an exception...
flashrom-v1.6.0/ch347_spi.c:374:16: danger: ‘ch347_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-190): [#def67]
flashrom-v1.6.0/chipset_enable.c:495: error[integerOverflow]: Signed integer overflow for expression '(0x1ff0+i)*0x80000'.
Error: CPPCHECK_WARNING (CWE-190): [#def68]
flashrom-v1.6.0/chipset_enable.c:495: error[integerOverflow]: Signed integer overflow for expression '(0x1ff8+i)*0x80000'.
Error: CPPCHECK_WARNING (CWE-190): [#def69]
flashrom-v1.6.0/chipset_enable.c:510: error[integerOverflow]: Signed integer overflow for expression '(0xff0+i)*0x100000'.
Error: CPPCHECK_WARNING (CWE-190): [#def70]
flashrom-v1.6.0/chipset_enable.c:510: error[integerOverflow]: Signed integer overflow for expression '(0xff4+i)*0x100000'.
Error: CPPCHECK_WARNING (CWE-190): [#def71]
flashrom-v1.6.0/chipset_enable.c:528: error[integerOverflow]: Signed integer overflow for expression '(0x1ff0+i)*0x80000'.
Error: CPPCHECK_WARNING (CWE-190): [#def72]
flashrom-v1.6.0/chipset_enable.c:528: error[integerOverflow]: Signed integer overflow for expression '(0x1ff8+i)*0x80000'.
Error: CPPCHECK_WARNING (CWE-190): [#def73]
flashrom-v1.6.0/chipset_enable.c:540: error[integerOverflow]: Signed integer overflow for expression '(0xff0+i)*0x100000'.
Error: CPPCHECK_WARNING (CWE-190): [#def74]
flashrom-v1.6.0/chipset_enable.c:540: error[integerOverflow]: Signed integer overflow for expression '(0xff4+i)*0x100000'.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
flashrom-v1.6.0/cli_classic.c:645:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
flashrom-v1.6.0/cli_classic.c:639:30: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:640:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:645:15: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:645:15: throw: if ‘flashrom_image_read’ throws an exception...
flashrom-v1.6.0/cli_classic.c:645:15: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
flashrom-v1.6.0/cli_classic.c:676:17: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/cli_classic.c:672:38: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:673:38: branch_true: following ‘true’ branch (when ‘referencefile’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:673:54: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: following ‘false’ branch (when ‘newcontents’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:675:30: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:675:13: branch_true: following ‘true’ branch...
flashrom-v1.6.0/cli_classic.c:676:17: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:676:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/cli_classic.c:676:17: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
flashrom-v1.6.0/cli_classic.c:676:17: warning[-Wanalyzer-malloc-leak]: leak of ‘refcontents’
flashrom-v1.6.0/cli_classic.c:673:38: branch_true: following ‘true’ branch (when ‘referencefile’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:673:54: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:673:54: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:675:12: branch_true: following ‘true’ branch (when ‘newcontents’ is NULL)...
flashrom-v1.6.0/cli_classic.c:676:17: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:676:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/cli_classic.c:676:17: danger: ‘refcontents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
flashrom-v1.6.0/cli_classic.c:682:21: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/cli_classic.c:672:38: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:673:38: branch_false: following ‘false’ branch (when ‘referencefile’ is NULL)...
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/cli_classic.c:681:12: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:682:21: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:682:21: throw: if ‘read_buf_from_file’ throws an exception...
flashrom-v1.6.0/cli_classic.c:682:21: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
flashrom-v1.6.0/cli_classic.c:682:21: warning[-Wanalyzer-malloc-leak]: leak of ‘refcontents’
flashrom-v1.6.0/cli_classic.c:673:38: branch_true: following ‘true’ branch (when ‘referencefile’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:673:54: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:673:54: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: following ‘false’ branch (when ‘newcontents’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:675:30: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:675:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/cli_classic.c:681:12: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:681:12: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:682:21: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:682:21: throw: if ‘read_buf_from_file’ throws an exception...
flashrom-v1.6.0/cli_classic.c:682:21: danger: ‘refcontents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
flashrom-v1.6.0/cli_classic.c:689:40: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/cli_classic.c:672:38: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:673:38: branch_false: following ‘false’ branch (when ‘referencefile’ is NULL)...
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/cli_classic.c:681:12: branch_false: following ‘false’ branch (when ‘filename’ is NULL)...
flashrom-v1.6.0/cli_classic.c:689:40: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:689:40: throw: if ‘get_layout’ throws an exception...
flashrom-v1.6.0/cli_classic.c:689:40: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
flashrom-v1.6.0/cli_classic.c:689:40: warning[-Wanalyzer-malloc-leak]: leak of ‘refcontents’
flashrom-v1.6.0/cli_classic.c:673:38: branch_true: following ‘true’ branch (when ‘referencefile’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:673:54: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:673:54: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:675:12: branch_false: following ‘false’ branch (when ‘newcontents’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:675:30: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:675:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/cli_classic.c:681:12: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:681:12: branch_false: following ‘false’ branch (when ‘filename’ is NULL)...
flashrom-v1.6.0/cli_classic.c:689:40: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:689:40: throw: if ‘get_layout’ throws an exception...
flashrom-v1.6.0/cli_classic.c:689:40: danger: ‘refcontents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
flashrom-v1.6.0/cli_classic.c:718:21: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/cli_classic.c:710:38: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:711:12: branch_false: following ‘false’ branch (when ‘newcontents’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:717:12: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:717:12: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:718:21: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:718:21: throw: if ‘read_buf_from_file’ throws an exception...
flashrom-v1.6.0/cli_classic.c:718:21: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
flashrom-v1.6.0/cli_classic.c:725:40: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/cli_classic.c:710:38: acquire_memory: allocated here
flashrom-v1.6.0/cli_classic.c:711:12: branch_false: following ‘false’ branch (when ‘newcontents’ is non-NULL)...
flashrom-v1.6.0/cli_classic.c:717:12: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:717:12: branch_false: following ‘false’ branch (when ‘filename’ is NULL)...
flashrom-v1.6.0/cli_classic.c:725:40: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:725:40: throw: if ‘get_layout’ throws an exception...
flashrom-v1.6.0/cli_classic.c:725:40: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
flashrom-v1.6.0/cli_classic.c:937:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*options.pparam’
flashrom-v1.6.0/cli_classic.c:790:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
flashrom-v1.6.0/cli_classic.c:792:17: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:922:28: branch_false: following ‘false’ branch...
flashrom-v1.6.0/cli_classic.c:922:28: branch_false: ...to here
flashrom-v1.6.0/cli_classic.c:930:37: branch_true: following ‘true’ branch...
flashrom-v1.6.0/cli_classic.c:931:40: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:936:67: acquire_memory: this call could return NULL
flashrom-v1.6.0/cli_classic.c:937:53: danger: ‘strdup(optarg + ((long unsigned int)namelen + 1))’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
flashrom-v1.6.0/cli_classic.c:937:53: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘options.pparam’
flashrom-v1.6.0/cli_classic.c:1043:5: enter_function: entry to ‘main’
flashrom-v1.6.0/cli_classic.c:1120:9: call_function: calling ‘parse_options’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
flashrom-v1.6.0/cli_classic.c:982:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*options.logfile’
flashrom-v1.6.0/cli_classic.c:790:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
flashrom-v1.6.0/cli_classic.c:792:17: branch_true: ...to here
flashrom-v1.6.0/cli_classic.c:981:44: acquire_memory: this call could return NULL
flashrom-v1.6.0/cli_classic.c:982:29: danger: ‘strdup(optarg)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
flashrom-v1.6.0/cli_classic.c:982:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘options.logfile’
flashrom-v1.6.0/cli_classic.c:1043:5: enter_function: entry to ‘main’
flashrom-v1.6.0/cli_classic.c:1120:9: call_function: calling ‘parse_options’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def88]
flashrom-v1.6.0/cli_output.c:175:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
flashrom-v1.6.0/cli_output.c:164:9: acquire_resource: ‘va_copy’ called here
flashrom-v1.6.0/cli_output.c:169:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/cli_output.c:170:23: branch_true: ...to here
flashrom-v1.6.0/cli_output.c:174:20: branch_true: following ‘true’ branch (when ‘level != 5’)...
flashrom-v1.6.0/cli_output.c:175:25: branch_true: ...to here
flashrom-v1.6.0/cli_output.c:175:25: throw: if ‘fflush’ throws an exception...
flashrom-v1.6.0/cli_output.c:175:25: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def89]
flashrom-v1.6.0/cli_output.c:182:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
flashrom-v1.6.0/cli_output.c:164:9: acquire_resource: ‘va_copy’ called here
flashrom-v1.6.0/cli_output.c:178:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/cli_output.c:181:20: branch_true: following ‘true’ branch (when ‘level != 5’)...
flashrom-v1.6.0/cli_output.c:182:25: branch_true: ...to here
flashrom-v1.6.0/cli_output.c:182:25: throw: if ‘fflush’ throws an exception...
flashrom-v1.6.0/cli_output.c:182:25: danger: missing call to ‘va_end’ to match ‘va_copy’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
flashrom-v1.6.0/dediprog.c:1208:15: warning[-Wanalyzer-malloc-leak]: leak of ‘dp_data’
flashrom-v1.6.0/dediprog.c:1199:41: acquire_memory: allocated here
flashrom-v1.6.0/dediprog.c:1200:12: branch_false: following ‘false’ branch (when ‘dp_data’ is non-NULL)...
flashrom-v1.6.0/dediprog.c:1205:9: branch_false: ...to here
flashrom-v1.6.0/dediprog.c:1208:15: throw: if ‘libusb_init’ throws an exception...
flashrom-v1.6.0/dediprog.c:1208:15: danger: ‘dp_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
flashrom-v1.6.0/developerbox_spi.c:175:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/developerbox_spi.c:151:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/developerbox_spi.c:156:26: branch_false: ...to here
flashrom-v1.6.0/developerbox_spi.c:162:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/developerbox_spi.c:167:40: branch_false: ...to here
flashrom-v1.6.0/developerbox_spi.c:167:40: acquire_memory: allocated here
flashrom-v1.6.0/developerbox_spi.c:168:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/developerbox_spi.c:172:9: branch_false: ...to here
flashrom-v1.6.0/developerbox_spi.c:175:13: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/developerbox_spi.c:175:13: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
flashrom-v1.6.0/dirtyjtag_spi.c:77:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rxtx_buffer’
flashrom-v1.6.0/dirtyjtag_spi.c:128:12: enter_function: entry to ‘dirtyjtag_djtag1_spi_send_command’
flashrom-v1.6.0/dirtyjtag_spi.c:136:32: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:137:12: branch_false: following ‘false’ branch (when ‘rxtx_buffer’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:142:9: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:143:28: branch_true: following ‘true’ branch (when ‘i < num_xfer’)...
flashrom-v1.6.0/dirtyjtag_spi.c:144:30: branch_true: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:155:21: call_function: calling ‘dirtyjtag_send’ from ‘dirtyjtag_djtag1_spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
flashrom-v1.6.0/dirtyjtag_spi.c:84:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rxtx_buffer’
flashrom-v1.6.0/dirtyjtag_spi.c:128:12: enter_function: entry to ‘dirtyjtag_djtag1_spi_send_command’
flashrom-v1.6.0/dirtyjtag_spi.c:136:32: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:137:12: branch_false: following ‘false’ branch (when ‘rxtx_buffer’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:142:9: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:143:28: branch_true: following ‘true’ branch (when ‘i < num_xfer’)...
flashrom-v1.6.0/dirtyjtag_spi.c:144:30: branch_true: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:155:21: call_function: calling ‘dirtyjtag_send’ from ‘dirtyjtag_djtag1_spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
flashrom-v1.6.0/dirtyjtag_spi.c:88:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rxtx_buffer’
flashrom-v1.6.0/dirtyjtag_spi.c:128:12: enter_function: entry to ‘dirtyjtag_djtag1_spi_send_command’
flashrom-v1.6.0/dirtyjtag_spi.c:136:32: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:137:12: branch_false: following ‘false’ branch (when ‘rxtx_buffer’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:142:9: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:143:28: branch_true: following ‘true’ branch (when ‘i < num_xfer’)...
flashrom-v1.6.0/dirtyjtag_spi.c:144:30: branch_true: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:155:21: call_function: calling ‘dirtyjtag_send’ from ‘dirtyjtag_djtag1_spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
flashrom-v1.6.0/dirtyjtag_spi.c:98:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rxtx_buffer’
flashrom-v1.6.0/dirtyjtag_spi.c:128:12: enter_function: entry to ‘dirtyjtag_djtag1_spi_send_command’
flashrom-v1.6.0/dirtyjtag_spi.c:136:32: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:137:12: branch_false: following ‘false’ branch (when ‘rxtx_buffer’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:142:9: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:143:28: branch_true: following ‘true’ branch (when ‘i < num_xfer’)...
flashrom-v1.6.0/dirtyjtag_spi.c:144:30: branch_true: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:155:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/dirtyjtag_spi.c:158:21: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:158:21: call_function: calling ‘dirtyjtag_receive’ from ‘dirtyjtag_djtag1_spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
flashrom-v1.6.0/dirtyjtag_spi.c:105:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rxtx_buffer’
flashrom-v1.6.0/dirtyjtag_spi.c:128:12: enter_function: entry to ‘dirtyjtag_djtag1_spi_send_command’
flashrom-v1.6.0/dirtyjtag_spi.c:136:32: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:137:12: branch_false: following ‘false’ branch (when ‘rxtx_buffer’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:142:9: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:143:28: branch_true: following ‘true’ branch (when ‘i < num_xfer’)...
flashrom-v1.6.0/dirtyjtag_spi.c:144:30: branch_true: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:155:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/dirtyjtag_spi.c:158:21: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:158:21: call_function: calling ‘dirtyjtag_receive’ from ‘dirtyjtag_djtag1_spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
flashrom-v1.6.0/dirtyjtag_spi.c:110:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rxtx_buffer’
flashrom-v1.6.0/dirtyjtag_spi.c:128:12: enter_function: entry to ‘dirtyjtag_djtag1_spi_send_command’
flashrom-v1.6.0/dirtyjtag_spi.c:136:32: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:137:12: branch_false: following ‘false’ branch (when ‘rxtx_buffer’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:142:9: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:143:28: branch_true: following ‘true’ branch (when ‘i < num_xfer’)...
flashrom-v1.6.0/dirtyjtag_spi.c:144:30: branch_true: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:155:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/dirtyjtag_spi.c:158:21: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:158:21: call_function: calling ‘dirtyjtag_receive’ from ‘dirtyjtag_djtag1_spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
flashrom-v1.6.0/dirtyjtag_spi.c:213:19: warning[-Wanalyzer-malloc-leak]: leak of ‘djtag_data’
flashrom-v1.6.0/dirtyjtag_spi.c:207:22: acquire_memory: allocated here
flashrom-v1.6.0/dirtyjtag_spi.c:208:12: branch_false: following ‘false’ branch (when ‘djtag_data’ is non-NULL)...
flashrom-v1.6.0/dirtyjtag_spi.c:213:31: branch_false: ...to here
flashrom-v1.6.0/dirtyjtag_spi.c:213:19: throw: if ‘libusb_init’ throws an exception...
flashrom-v1.6.0/dirtyjtag_spi.c:213:19: danger: ‘djtag_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
flashrom-v1.6.0/drkaiser.c:106:30: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/drkaiser.c:85:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/drkaiser.c:88:16: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:89:12: branch_false: following ‘false’ branch (when ‘addr != 0’)...
flashrom-v1.6.0/drkaiser.c:93:15: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:94:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/drkaiser.c:97:38: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:97:38: acquire_memory: allocated here
flashrom-v1.6.0/drkaiser.c:98:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/drkaiser.c:102:9: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:106:30: throw: if ‘pci_read_word’ throws an exception...
flashrom-v1.6.0/drkaiser.c:106:30: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
flashrom-v1.6.0/drkaiser.c:107:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/drkaiser.c:85:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/drkaiser.c:88:16: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:89:12: branch_false: following ‘false’ branch (when ‘addr != 0’)...
flashrom-v1.6.0/drkaiser.c:93:15: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:94:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/drkaiser.c:97:38: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:97:38: acquire_memory: allocated here
flashrom-v1.6.0/drkaiser.c:98:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/drkaiser.c:102:9: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:107:9: throw: if ‘pci_write_word’ throws an exception...
flashrom-v1.6.0/drkaiser.c:107:9: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
flashrom-v1.6.0/drkaiser.c:111:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/drkaiser.c:85:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/drkaiser.c:88:16: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:89:12: branch_false: following ‘false’ branch (when ‘addr != 0’)...
flashrom-v1.6.0/drkaiser.c:93:15: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:94:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/drkaiser.c:97:38: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:97:38: acquire_memory: allocated here
flashrom-v1.6.0/drkaiser.c:98:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/drkaiser.c:102:9: branch_false: ...to here
flashrom-v1.6.0/drkaiser.c:111:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/drkaiser.c:111:16: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
flashrom-v1.6.0/dummyflasher.c:1013:19: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1394:12: enter_function: entry to ‘dummy_init’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1411:13: call_function: calling ‘init_data’ from ‘dummy_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
flashrom-v1.6.0/dummyflasher.c:1014:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1394:12: enter_function: entry to ‘dummy_init’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1411:13: call_function: calling ‘init_data’ from ‘dummy_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
flashrom-v1.6.0/dummyflasher.c:1018:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bustext’
flashrom-v1.6.0/dummyflasher.c:1015:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/dummyflasher.c:1016:27: branch_true: ...to here
flashrom-v1.6.0/dummyflasher.c:1016:27: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1018:9: throw: if ‘tolower_string’ throws an exception...
flashrom-v1.6.0/dummyflasher.c:1018:9: danger: ‘bustext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
flashrom-v1.6.0/dummyflasher.c:1018:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1394:12: enter_function: entry to ‘dummy_init’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1411:13: call_function: calling ‘init_data’ from ‘dummy_init’
Error: CPPCHECK_WARNING (CWE-476): [#def106]
flashrom-v1.6.0/dummyflasher.c:1021: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bustext
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
flashrom-v1.6.0/dummyflasher.c:1023:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1394:12: enter_function: entry to ‘dummy_init’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1411:13: call_function: calling ‘init_data’ from ‘dummy_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
flashrom-v1.6.0/dummyflasher.c:1027:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1394:12: enter_function: entry to ‘dummy_init’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1411:13: call_function: calling ‘init_data’ from ‘dummy_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
flashrom-v1.6.0/dummyflasher.c:1031:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1394:12: enter_function: entry to ‘dummy_init’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1411:13: call_function: calling ‘init_data’ from ‘dummy_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
flashrom-v1.6.0/dummyflasher.c:1408:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/dummyflasher.c:1399:33: acquire_memory: allocated here
flashrom-v1.6.0/dummyflasher.c:1400:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/dummyflasher.c:1405:9: branch_false: ...to here
flashrom-v1.6.0/dummyflasher.c:1408:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/dummyflasher.c:1408:9: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
flashrom-v1.6.0/erasure_layout.c:383:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:383:17: throw: if ‘read_flash’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:383:17: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
flashrom-v1.6.0/erasure_layout.c:391:25: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_true: following ‘true’ branch (when ‘old_end_buf’ is NULL)...
flashrom-v1.6.0/erasure_layout.c:391:25: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:391:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:391:25: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
flashrom-v1.6.0/erasure_layout.c:395:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_end_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_false: following ‘false’ branch (when ‘start_buf_len == 0’)...
flashrom-v1.6.0/erasure_layout.c:387:12: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:389:42: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:395:17: throw: if ‘read_flash’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:395:17: danger: ‘old_end_buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
flashrom-v1.6.0/erasure_layout.c:395:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:395:17: throw: if ‘read_flash’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:395:17: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
flashrom-v1.6.0/erasure_layout.c:403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_end_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_false: following ‘false’ branch (when ‘start_buf_len == 0’)...
flashrom-v1.6.0/erasure_layout.c:387:12: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:389:42: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:403:17: throw: if ‘get_flash_region’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:403:17: danger: ‘old_end_buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
flashrom-v1.6.0/erasure_layout.c:403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:403:17: throw: if ‘get_flash_region’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:403:17: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
flashrom-v1.6.0/erasure_layout.c:404:23: warning[-Wanalyzer-malloc-leak]: leak of ‘old_end_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_false: following ‘false’ branch (when ‘start_buf_len == 0’)...
flashrom-v1.6.0/erasure_layout.c:387:12: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:389:42: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:404:23: throw: if ‘min’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:404:23: danger: ‘old_end_buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
flashrom-v1.6.0/erasure_layout.c:404:23: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:404:23: throw: if ‘min’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:404:23: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
flashrom-v1.6.0/erasure_layout.c:407:25: warning[-Wanalyzer-malloc-leak]: leak of ‘old_end_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_false: following ‘false’ branch (when ‘start_buf_len == 0’)...
flashrom-v1.6.0/erasure_layout.c:387:12: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:389:42: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:406:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:407:25: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:407:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:407:25: danger: ‘old_end_buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
flashrom-v1.6.0/erasure_layout.c:407:25: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:406:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:407:25: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:407:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:407:25: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
flashrom-v1.6.0/erasure_layout.c:416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_end_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_false: following ‘false’ branch (when ‘start_buf_len == 0’)...
flashrom-v1.6.0/erasure_layout.c:387:12: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:389:42: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:416:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:416:17: danger: ‘old_end_buf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
flashrom-v1.6.0/erasure_layout.c:416:17: warning[-Wanalyzer-malloc-leak]: leak of ‘old_start_buf’
flashrom-v1.6.0/erasure_layout.c:359:5: enter_function: entry to ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: call_function: calling ‘align_region’ from ‘erase_write’
flashrom-v1.6.0/erasure_layout.c:365:9: return_function: returning to ‘erase_write’ from ‘align_region’
flashrom-v1.6.0/erasure_layout.c:376:12: branch_true: following ‘true’ branch (when ‘start_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:377:44: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:377:44: acquire_memory: allocated here
flashrom-v1.6.0/erasure_layout.c:378:20: branch_false: following ‘false’ branch (when ‘old_start_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:383:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:387:12: branch_true: following ‘true’ branch (when ‘end_buf_len != 0’)...
flashrom-v1.6.0/erasure_layout.c:388:27: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:390:20: branch_false: following ‘false’ branch (when ‘old_end_buf’ is non-NULL)...
flashrom-v1.6.0/erasure_layout.c:395:17: branch_false: ...to here
flashrom-v1.6.0/erasure_layout.c:401:48: branch_true: following ‘true’ branch...
flashrom-v1.6.0/erasure_layout.c:403:17: branch_true: ...to here
flashrom-v1.6.0/erasure_layout.c:416:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/erasure_layout.c:416:17: danger: ‘old_start_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
flashrom-v1.6.0/flashrom.c:233:23: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
flashrom-v1.6.0/flashrom.c:234:9: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
flashrom-v1.6.0/flashrom.c:381:31: warning[-Wanalyzer-malloc-leak]: leak of ‘region.name’
flashrom-v1.6.0/flashrom.c:1036:5: enter_function: entry to ‘write_flash’
flashrom-v1.6.0/flashrom.c:1045:41: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1047:17: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1047:17: call_function: calling ‘get_flash_region’ from ‘write_flash’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
flashrom-v1.6.0/flashrom.c:599:28: warning[-Wanalyzer-malloc-leak]: leak of ‘region.name’
flashrom-v1.6.0/flashrom.c:1503:12: enter_function: entry to ‘verify_by_layout’
flashrom-v1.6.0/flashrom.c:1512:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1514:33: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1517:21: call_function: calling ‘read_flash’ from ‘verify_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
flashrom-v1.6.0/flashrom.c:619:17: warning[-Wanalyzer-malloc-leak]: leak of ‘region.name’
flashrom-v1.6.0/flashrom.c:1503:12: enter_function: entry to ‘verify_by_layout’
flashrom-v1.6.0/flashrom.c:1512:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1514:33: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1517:21: call_function: calling ‘read_flash’ from ‘verify_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
flashrom-v1.6.0/flashrom.c:624:27: warning[-Wanalyzer-jump-through-null]: jump through null pointer
flashrom-v1.6.0/flashrom.c:1503:12: enter_function: entry to ‘verify_by_layout’
flashrom-v1.6.0/flashrom.c:1512:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1514:33: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1517:21: call_function: calling ‘read_flash’ from ‘verify_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
flashrom-v1.6.0/flashrom.c:714:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
flashrom-v1.6.0/flashrom.c:714:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
flashrom-v1.6.0/flashrom.c:963:31: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
flashrom-v1.6.0/flashrom.c:956:15: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:957:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:957:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:960:34: branch_true: following ‘true’ branch (when ‘i != 5’)...
flashrom-v1.6.0/flashrom.c:962:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:962:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:963:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:963:31: throw: if ‘strcat_realloc’ throws an exception...
flashrom-v1.6.0/flashrom.c:963:31: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-124): [#def132]
flashrom-v1.6.0/flashrom.c:973:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
flashrom-v1.6.0/flashrom.c:957:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:957:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:960:34: branch_true: following ‘true’ branch (when ‘i != 5’)...
flashrom-v1.6.0/flashrom.c:962:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:962:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:960:60: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:962:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:960:60: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:973:9: danger: out-of-bounds write at byte -2 but region starts at byte 0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
flashrom-v1.6.0/flashrom.c:1049:29: warning[-Wanalyzer-malloc-leak]: leak of ‘region.name’
flashrom-v1.6.0/flashrom.c:1036:5: enter_function: entry to ‘write_flash’
flashrom-v1.6.0/flashrom.c:1045:41: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1047:17: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1047:17: call_function: calling ‘get_flash_region’ from ‘write_flash’
flashrom-v1.6.0/flashrom.c:1047:17: return_function: returning to ‘write_flash’ from ‘get_flash_region’
flashrom-v1.6.0/flashrom.c:1049:29: throw: if ‘min’ throws an exception...
flashrom-v1.6.0/flashrom.c:1049:29: danger: ‘region.name’ leaks here; was allocated at [(6)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
flashrom-v1.6.0/flashrom.c:1059:17: warning[-Wanalyzer-malloc-leak]: leak of ‘region.name’
flashrom-v1.6.0/flashrom.c:1036:5: enter_function: entry to ‘write_flash’
flashrom-v1.6.0/flashrom.c:1045:41: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1047:17: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1047:17: call_function: calling ‘get_flash_region’ from ‘write_flash’
flashrom-v1.6.0/flashrom.c:1047:17: return_function: returning to ‘write_flash’ from ‘get_flash_region’
flashrom-v1.6.0/flashrom.c:1052:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1059:17: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1059:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1059:17: danger: ‘region.name’ leaks here; was allocated at [(6)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
flashrom-v1.6.0/flashrom.c:1207:9: warning[-Wanalyzer-malloc-leak]: leak of ‘flashbuses_to_text(*flash_58(D)->chip.bustype)’
flashrom-v1.6.0/flashrom.c:1117:5: enter_function: entry to ‘probe_flash’
flashrom-v1.6.0/flashrom.c:1200:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1203:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1203:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1206:34: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1206:15: call_function: calling ‘flashbuses_to_text’ from ‘probe_flash’
flashrom-v1.6.0/flashrom.c:1206:15: return_function: returning to ‘probe_flash’ from ‘flashbuses_to_text’
flashrom-v1.6.0/flashrom.c:1207:9: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1207:9: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1207:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1207:9: danger: ‘flashbuses_to_text(*flash_58(D)->chip.bustype)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
flashrom-v1.6.0/flashrom.c:1237:60: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1429:9: call_function: calling ‘setup_progress_from_layout’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
flashrom-v1.6.0/flashrom.c:1237:60: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1429:9: call_function: calling ‘setup_progress_from_layout’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
flashrom-v1.6.0/flashrom.c:1241:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1429:9: call_function: calling ‘setup_progress_from_layout’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
flashrom-v1.6.0/flashrom.c:1241:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1429:9: call_function: calling ‘setup_progress_from_layout’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
flashrom-v1.6.0/flashrom.c:1246:9: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1429:9: call_function: calling ‘setup_progress_from_layout’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
flashrom-v1.6.0/flashrom.c:1246:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1429:9: call_function: calling ‘setup_progress_from_layout’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
flashrom-v1.6.0/flashrom.c:1258:54: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
flashrom-v1.6.0/flashrom.c:1258:54: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
flashrom-v1.6.0/flashrom.c:1264:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
flashrom-v1.6.0/flashrom.c:1264:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
flashrom-v1.6.0/flashrom.c:1270:52: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
flashrom-v1.6.0/flashrom.c:1270:52: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
flashrom-v1.6.0/flashrom.c:1295:9: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
flashrom-v1.6.0/flashrom.c:1295:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1404:12: enter_function: entry to ‘erase_by_layout’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1430:9: call_function: calling ‘setup_progress_from_layout_and_diff’ from ‘erase_by_layout’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
flashrom-v1.6.0/flashrom.c:1411:9: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1411:9: throw: if ‘create_erase_layout’ throws an exception...
flashrom-v1.6.0/flashrom.c:1411:9: danger: ‘curcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
flashrom-v1.6.0/flashrom.c:1411:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1411:9: throw: if ‘create_erase_layout’ throws an exception...
flashrom-v1.6.0/flashrom.c:1411:9: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
flashrom-v1.6.0/flashrom.c:1432:60: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1432:60: throw: if ‘get_layout’ throws an exception...
flashrom-v1.6.0/flashrom.c:1432:60: danger: ‘curcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
flashrom-v1.6.0/flashrom.c:1432:60: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1432:60: throw: if ‘get_layout’ throws an exception...
flashrom-v1.6.0/flashrom.c:1432:60: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
flashrom-v1.6.0/flashrom.c:1434:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1434:25: throw: if ‘layout_next_included’ throws an exception...
flashrom-v1.6.0/flashrom.c:1434:25: danger: ‘curcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
flashrom-v1.6.0/flashrom.c:1434:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1434:25: throw: if ‘layout_next_included’ throws an exception...
flashrom-v1.6.0/flashrom.c:1434:25: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
flashrom-v1.6.0/flashrom.c:1435:23: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1408:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1434:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1435:23: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1435:23: throw: if ‘erase_write’ throws an exception...
flashrom-v1.6.0/flashrom.c:1435:23: danger: ‘curcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
flashrom-v1.6.0/flashrom.c:1435:23: warning[-Wanalyzer-malloc-leak]: leak of ‘newcontents’
flashrom-v1.6.0/flashrom.c:1409:32: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1415:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1421:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1421:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1426:30: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1434:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1435:23: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1435:23: throw: if ‘erase_write’ throws an exception...
flashrom-v1.6.0/flashrom.c:1435:23: danger: ‘newcontents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
flashrom-v1.6.0/flashrom.c:1686:17: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1990:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_write’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
flashrom-v1.6.0/flashrom.c:1693:17: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1990:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_write’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
flashrom-v1.6.0/flashrom.c:1699:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
flashrom-v1.6.0/flashrom.c:1702:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
flashrom-v1.6.0/flashrom.c:1705:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
flashrom-v1.6.0/flashrom.c:1713:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1990:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_write’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
flashrom-v1.6.0/flashrom.c:1717:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1990:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_write’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
flashrom-v1.6.0/flashrom.c:1720:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1990:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_write’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
flashrom-v1.6.0/flashrom.c:1825:17: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
flashrom-v1.6.0/flashrom.c:1829:13: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
flashrom-v1.6.0/flashrom.c:1830:17: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:2104:5: enter_function: entry to ‘flashrom_image_verify’
flashrom-v1.6.0/flashrom.c:2109:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:2113:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2113:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:2114:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:2121:13: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:2121:13: call_function: calling ‘prepare_flash_access’ from ‘flashrom_image_verify’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
flashrom-v1.6.0/flashrom.c:1974:17: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_true: following ‘true’ branch (when ‘verify_all != 0’)...
flashrom-v1.6.0/flashrom.c:1972:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch (when ‘curcontents’ is non-NULL)...
flashrom-v1.6.0/flashrom.c:1973:44: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:13: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1974:17: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1974:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1974:17: danger: ‘curcontents’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
flashrom-v1.6.0/flashrom.c:1974:17: warning[-Wanalyzer-malloc-leak]: leak of ‘oldcontents’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1971:12: branch_true: following ‘true’ branch (when ‘verify_all != 0’)...
flashrom-v1.6.0/flashrom.c:1972:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1972:31: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1973:12: branch_true: following ‘true’ branch (when ‘curcontents’ is NULL)...
flashrom-v1.6.0/flashrom.c:1974:17: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1974:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1974:17: danger: ‘oldcontents’ leaks here; was allocated at [(5)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
flashrom-v1.6.0/flashrom.c:1979:41: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1979:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1979:41: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1979:41: throw: if ‘cb_check_image’ throws an exception...
flashrom-v1.6.0/flashrom.c:1979:41: danger: ‘curcontents’ leaks here; was allocated at [(4)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
flashrom-v1.6.0/flashrom.c:1979:41: warning[-Wanalyzer-malloc-leak]: leak of ‘oldcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1971:12: branch_true: following ‘true’ branch (when ‘verify_all != 0’)...
flashrom-v1.6.0/flashrom.c:1972:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1972:31: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1979:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1979:41: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1979:41: throw: if ‘cb_check_image’ throws an exception...
flashrom-v1.6.0/flashrom.c:1979:41: danger: ‘oldcontents’ leaks here; was allocated at [(6)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
flashrom-v1.6.0/flashrom.c:1981:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1979:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1980:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1981:25: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1981:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1981:25: danger: ‘curcontents’ leaks here; was allocated at [(4)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
flashrom-v1.6.0/flashrom.c:1981:25: warning[-Wanalyzer-malloc-leak]: leak of ‘oldcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1971:12: branch_true: following ‘true’ branch (when ‘verify_all != 0’)...
flashrom-v1.6.0/flashrom.c:1972:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1972:31: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1979:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1980:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1981:25: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1981:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1981:25: danger: ‘oldcontents’ leaks here; was allocated at [(6)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
flashrom-v1.6.0/flashrom.c:1983:25: warning[-Wanalyzer-malloc-leak]: leak of ‘curcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1969:38: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1971:12: branch_false: following ‘false’ branch (when ‘verify_all == 0’)...
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1979:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1980:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1983:25: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1983:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1983:25: danger: ‘curcontents’ leaks here; was allocated at [(4)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
flashrom-v1.6.0/flashrom.c:1983:25: warning[-Wanalyzer-malloc-leak]: leak of ‘oldcontents’
flashrom-v1.6.0/flashrom.c:1953:5: enter_function: entry to ‘flashrom_image_write’
flashrom-v1.6.0/flashrom.c:1962:12: branch_false: following ‘false’ branch (when ‘flash_size == buffer_len’)...
flashrom-v1.6.0/flashrom.c:1969:38: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1971:12: branch_true: following ‘true’ branch (when ‘verify_all != 0’)...
flashrom-v1.6.0/flashrom.c:1972:31: branch_true: ...to here
flashrom-v1.6.0/flashrom.c:1972:31: acquire_memory: allocated here
flashrom-v1.6.0/flashrom.c:1973:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1979:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/flashrom.c:1980:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/flashrom.c:1983:25: branch_false: ...to here
flashrom-v1.6.0/flashrom.c:1983:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/flashrom.c:1983:25: danger: ‘oldcontents’ leaks here; was allocated at [(6)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
flashrom-v1.6.0/fmap.c:169:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
flashrom-v1.6.0/fmap.c:158:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/fmap.c:163:15: branch_false: ...to here
flashrom-v1.6.0/fmap.c:163:15: acquire_memory: allocated here
flashrom-v1.6.0/fmap.c:164:12: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
flashrom-v1.6.0/fmap.c:169:15: branch_false: ...to here
flashrom-v1.6.0/fmap.c:169:15: throw: if ‘read_flash’ throws an exception...
flashrom-v1.6.0/fmap.c:169:15: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
flashrom-v1.6.0/fmap.c:242:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fmap’
flashrom-v1.6.0/fmap.c:195:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/fmap.c:198:12: branch_false: ...to here
flashrom-v1.6.0/fmap.c:198:12: branch_false: following ‘false’ branch (when ‘len > 55’)...
flashrom-v1.6.0/fmap.c:201:13: branch_false: ...to here
flashrom-v1.6.0/fmap.c:201:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/fmap.c:204:16: branch_false: ...to here
flashrom-v1.6.0/fmap.c:204:16: acquire_memory: allocated here
flashrom-v1.6.0/fmap.c:205:12: branch_false: following ‘false’ branch (when ‘fmap’ is non-NULL)...
flashrom-v1.6.0/fmap.c:215:9: branch_false: ...to here
flashrom-v1.6.0/fmap.c:227:38: branch_true: following ‘true’ branch (when ‘stride >= min_stride’)...
flashrom-v1.6.0/fmap.c:228:20: branch_true: ...to here
flashrom-v1.6.0/fmap.c:228:20: branch_false: following ‘false’ branch (when ‘stride <= len’)...
flashrom-v1.6.0/fmap.c:228:20: branch_false: ...to here
flashrom-v1.6.0/fmap.c:232:22: branch_true: following ‘true’ branch...
flashrom-v1.6.0/fmap.c:234:39: branch_true: ...to here
flashrom-v1.6.0/fmap.c:236:28: branch_false: following ‘false’ branch...
flashrom-v1.6.0/fmap.c:242:29: branch_false: ...to here
flashrom-v1.6.0/fmap.c:242:29: throw: if ‘read_flash’ throws an exception...
flashrom-v1.6.0/fmap.c:242:29: danger: ‘fmap’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
flashrom-v1.6.0/gfxnvidia.c:133:30: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/gfxnvidia.c:110:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/gfxnvidia.c:113:33: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:114:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/gfxnvidia.c:117:9: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:121:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/gfxnvidia.c:124:39: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:124:39: acquire_memory: allocated here
flashrom-v1.6.0/gfxnvidia.c:125:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/gfxnvidia.c:129:9: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:133:30: throw: if ‘pci_read_long’ throws an exception...
flashrom-v1.6.0/gfxnvidia.c:133:30: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
flashrom-v1.6.0/gfxnvidia.c:135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/gfxnvidia.c:110:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/gfxnvidia.c:113:33: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:114:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/gfxnvidia.c:117:9: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:121:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/gfxnvidia.c:124:39: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:124:39: acquire_memory: allocated here
flashrom-v1.6.0/gfxnvidia.c:125:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/gfxnvidia.c:129:9: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:135:9: throw: if ‘pci_write_long’ throws an exception...
flashrom-v1.6.0/gfxnvidia.c:135:9: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
flashrom-v1.6.0/gfxnvidia.c:139:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/gfxnvidia.c:110:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/gfxnvidia.c:113:33: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:114:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/gfxnvidia.c:117:9: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:121:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/gfxnvidia.c:124:39: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:124:39: acquire_memory: allocated here
flashrom-v1.6.0/gfxnvidia.c:125:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/gfxnvidia.c:129:9: branch_false: ...to here
flashrom-v1.6.0/gfxnvidia.c:139:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/gfxnvidia.c:139:16: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def182]
flashrom-v1.6.0/helpers.c:55:12: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
flashrom-v1.6.0/helpers_fileio.c:51:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘image’
flashrom-v1.6.0/helpers_fileio.c:40:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
flashrom-v1.6.0/helpers_fileio.c:43:25: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:43:25: acquire_resource: opened here
flashrom-v1.6.0/helpers_fileio.c:44:12: branch_false: following ‘false’ branch (when ‘image’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:50:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:50:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:51:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:51:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:51:17: danger: ‘image’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
flashrom-v1.6.0/helpers_fileio.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of ‘image’
flashrom-v1.6.0/helpers_fileio.c:40:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
flashrom-v1.6.0/helpers_fileio.c:43:25: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:43:25: acquire_memory: allocated here
flashrom-v1.6.0/helpers_fileio.c:44:12: branch_false: following ‘false’ branch (when ‘image’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:50:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:50:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:51:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:51:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:51:17: danger: ‘image’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
flashrom-v1.6.0/helpers_fileio.c:56:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘image’
flashrom-v1.6.0/helpers_fileio.c:40:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
flashrom-v1.6.0/helpers_fileio.c:43:25: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:43:25: acquire_resource: opened here
flashrom-v1.6.0/helpers_fileio.c:44:12: branch_false: following ‘false’ branch (when ‘image’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:50:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:50:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:55:14: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:55:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:56:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:56:17: danger: ‘image’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
flashrom-v1.6.0/helpers_fileio.c:56:17: warning[-Wanalyzer-malloc-leak]: leak of ‘image’
flashrom-v1.6.0/helpers_fileio.c:40:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
flashrom-v1.6.0/helpers_fileio.c:43:25: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:43:25: acquire_memory: allocated here
flashrom-v1.6.0/helpers_fileio.c:44:12: branch_false: following ‘false’ branch (when ‘image’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:50:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:50:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:55:14: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:55:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:56:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:56:17: danger: ‘image’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def187]
flashrom-v1.6.0/helpers_fileio.c:64:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘image’
flashrom-v1.6.0/helpers_fileio.c:40:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
flashrom-v1.6.0/helpers_fileio.c:43:25: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:43:25: acquire_resource: opened here
flashrom-v1.6.0/helpers_fileio.c:44:12: branch_false: following ‘false’ branch (when ‘image’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:50:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:50:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:55:14: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:63:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:64:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:64:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:64:17: danger: ‘image’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
flashrom-v1.6.0/helpers_fileio.c:64:17: warning[-Wanalyzer-malloc-leak]: leak of ‘image’
flashrom-v1.6.0/helpers_fileio.c:40:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
flashrom-v1.6.0/helpers_fileio.c:43:25: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:43:25: acquire_memory: allocated here
flashrom-v1.6.0/helpers_fileio.c:44:12: branch_false: following ‘false’ branch (when ‘image’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:50:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:50:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:55:14: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:63:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:64:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:64:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:64:17: danger: ‘image’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
flashrom-v1.6.0/helpers_fileio.c:102:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
flashrom-v1.6.0/helpers_fileio.c:91:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:95:22: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:95:22: acquire_resource: opened here
flashrom-v1.6.0/helpers_fileio.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:100:34: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:101:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:102:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:102:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:102:17: danger: ‘fopen(filename, "wb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
flashrom-v1.6.0/helpers_fileio.c:102:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
flashrom-v1.6.0/helpers_fileio.c:91:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:95:22: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:95:22: acquire_memory: allocated here
flashrom-v1.6.0/helpers_fileio.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:100:34: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:101:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:102:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:102:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:102:17: danger: ‘fopen(filename, "wb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
flashrom-v1.6.0/helpers_fileio.c:106:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
flashrom-v1.6.0/helpers_fileio.c:91:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:95:22: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:95:22: acquire_resource: opened here
flashrom-v1.6.0/helpers_fileio.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:100:34: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:101:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:106:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:106:13: throw: if ‘fflush’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:106:13: danger: ‘fopen(filename, "wb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
flashrom-v1.6.0/helpers_fileio.c:106:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
flashrom-v1.6.0/helpers_fileio.c:91:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:95:22: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:95:22: acquire_memory: allocated here
flashrom-v1.6.0/helpers_fileio.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:100:34: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:101:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:106:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:106:13: throw: if ‘fflush’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:106:13: danger: ‘fopen(filename, "wb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
flashrom-v1.6.0/helpers_fileio.c:107:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
flashrom-v1.6.0/helpers_fileio.c:91:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:95:22: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:95:22: acquire_resource: opened here
flashrom-v1.6.0/helpers_fileio.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:100:34: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:101:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:106:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:106:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:107:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:107:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:107:17: danger: ‘fopen(filename, "wb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
flashrom-v1.6.0/helpers_fileio.c:107:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
flashrom-v1.6.0/helpers_fileio.c:91:12: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
flashrom-v1.6.0/helpers_fileio.c:95:22: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:95:22: acquire_memory: allocated here
flashrom-v1.6.0/helpers_fileio.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:100:34: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:101:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/helpers_fileio.c:106:13: branch_false: ...to here
flashrom-v1.6.0/helpers_fileio.c:106:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/helpers_fileio.c:107:17: branch_true: ...to here
flashrom-v1.6.0/helpers_fileio.c:107:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/helpers_fileio.c:107:17: danger: ‘fopen(filename, "wb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
flashrom-v1.6.0/hwaccess_physmap.c:308:21: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
flashrom-v1.6.0/hwaccess_physmap.c:263:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/hwaccess_physmap.c:268:12: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:276:12: branch_false: following ‘false’ branch (when ‘virt_addr != 18446744073709551615’)...
flashrom-v1.6.0/hwaccess_physmap.c:298:12: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:298:12: branch_true: following ‘true’ branch (when ‘autocleanup != 0’)...
flashrom-v1.6.0/hwaccess_physmap.c:299:47: branch_true: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:299:47: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:300:20: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:306:17: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:308:21: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:308:21: danger: ‘d’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
flashrom-v1.6.0/hwaccess_physmap.c:530:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:530:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:530:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:530:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:530:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:530:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
flashrom-v1.6.0/hwaccess_physmap.c:536:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:536:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:536:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:536:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:536:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:536:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
flashrom-v1.6.0/hwaccess_physmap.c:542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:542:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:542:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:542:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:542:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:542:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
flashrom-v1.6.0/hwaccess_physmap.c:548:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:548:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:548:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:548:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:548:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:548:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
flashrom-v1.6.0/hwaccess_physmap.c:554:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:554:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:554:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:554:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:554:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:554:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
flashrom-v1.6.0/hwaccess_physmap.c:560:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:560:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:560:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:560:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:560:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:560:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
flashrom-v1.6.0/hwaccess_physmap.c:566:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:566:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:566:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:566:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:566:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:566:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
flashrom-v1.6.0/hwaccess_physmap.c:571:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:571:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:571:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:571:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:571:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:571:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
flashrom-v1.6.0/hwaccess_physmap.c:576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_mmio_write_data’
flashrom-v1.6.0/hwaccess_physmap.c:576:9: acquire_memory: allocated here
flashrom-v1.6.0/hwaccess_physmap.c:576:9: branch_false: following ‘false’ branch (when ‘undo_mmio_write_data’ is non-NULL)...
flashrom-v1.6.0/hwaccess_physmap.c:576:9: branch_false: ...to here
flashrom-v1.6.0/hwaccess_physmap.c:576:9: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/hwaccess_physmap.c:576:9: danger: ‘undo_mmio_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-758): [#def205]
flashrom-v1.6.0/ichspi.c:1988: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def206]
flashrom-v1.6.0/ichspi.c:1992: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
flashrom-v1.6.0/it8212.c:97:31: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/it8212.c:76:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it8212.c:80:33: branch_false: ...to here
flashrom-v1.6.0/it8212.c:81:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/it8212.c:84:15: branch_false: ...to here
flashrom-v1.6.0/it8212.c:85:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it8212.c:88:36: branch_false: ...to here
flashrom-v1.6.0/it8212.c:88:36: acquire_memory: allocated here
flashrom-v1.6.0/it8212.c:89:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/it8212.c:93:9: branch_false: ...to here
flashrom-v1.6.0/it8212.c:97:31: throw: if ‘pci_read_long’ throws an exception...
flashrom-v1.6.0/it8212.c:97:31: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
flashrom-v1.6.0/it8212.c:98:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/it8212.c:76:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it8212.c:80:33: branch_false: ...to here
flashrom-v1.6.0/it8212.c:81:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/it8212.c:84:15: branch_false: ...to here
flashrom-v1.6.0/it8212.c:85:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it8212.c:88:36: branch_false: ...to here
flashrom-v1.6.0/it8212.c:88:36: acquire_memory: allocated here
flashrom-v1.6.0/it8212.c:89:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/it8212.c:93:9: branch_false: ...to here
flashrom-v1.6.0/it8212.c:98:9: throw: if ‘pci_write_long’ throws an exception...
flashrom-v1.6.0/it8212.c:98:9: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
flashrom-v1.6.0/it8212.c:101:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/it8212.c:76:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it8212.c:80:33: branch_false: ...to here
flashrom-v1.6.0/it8212.c:81:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/it8212.c:84:15: branch_false: ...to here
flashrom-v1.6.0/it8212.c:85:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it8212.c:88:36: branch_false: ...to here
flashrom-v1.6.0/it8212.c:88:36: acquire_memory: allocated here
flashrom-v1.6.0/it8212.c:89:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/it8212.c:93:9: branch_false: ...to here
flashrom-v1.6.0/it8212.c:101:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/it8212.c:101:16: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
flashrom-v1.6.0/it87spi.c:439:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/it87spi.c:366:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it87spi.c:366:12: branch_false: ...to here
flashrom-v1.6.0/it87spi.c:399:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it87spi.c:426:9: branch_false: ...to here
flashrom-v1.6.0/it87spi.c:429:41: acquire_memory: allocated here
flashrom-v1.6.0/it87spi.c:430:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/it87spi.c:435:9: branch_false: ...to here
flashrom-v1.6.0/it87spi.c:438:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/it87spi.c:439:17: branch_true: ...to here
flashrom-v1.6.0/it87spi.c:439:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/it87spi.c:439:17: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
flashrom-v1.6.0/it87spi.c:441:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/it87spi.c:366:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it87spi.c:366:12: branch_false: ...to here
flashrom-v1.6.0/it87spi.c:399:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/it87spi.c:426:9: branch_false: ...to here
flashrom-v1.6.0/it87spi.c:429:41: acquire_memory: allocated here
flashrom-v1.6.0/it87spi.c:430:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/it87spi.c:435:9: branch_false: ...to here
flashrom-v1.6.0/it87spi.c:441:16: throw: if ‘register_spi_master’ throws an exception...
flashrom-v1.6.0/it87spi.c:441:16: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
flashrom-v1.6.0/jlink_spi.c:148:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
flashrom-v1.6.0/jlink_spi.c:137:12: branch_false: following ‘false’ branch (when ‘length <= 4096’)...
flashrom-v1.6.0/jlink_spi.c:140:18: branch_false: ...to here
flashrom-v1.6.0/jlink_spi.c:140:18: acquire_memory: allocated here
flashrom-v1.6.0/jlink_spi.c:142:12: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
flashrom-v1.6.0/jlink_spi.c:148:9: branch_false: ...to here
flashrom-v1.6.0/jlink_spi.c:148:9: throw: if ‘reverse_bytes’ throws an exception...
flashrom-v1.6.0/jlink_spi.c:148:9: danger: ‘buffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
flashrom-v1.6.0/layout.c:144:25: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_name’
flashrom-v1.6.0/layout.c:123:12: branch_false: following ‘false’ branch (when ‘arg’ is non-NULL)...
flashrom-v1.6.0/layout.c:129:17: branch_false: ...to here
flashrom-v1.6.0/layout.c:130:12: branch_true: following ‘true’ branch (when ‘colon’ is non-NULL)...
flashrom-v1.6.0/layout.c:130:23: branch_true: ...to here
flashrom-v1.6.0/layout.c:130:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/layout.c:136:41: branch_false: ...to here
flashrom-v1.6.0/layout.c:136:28: acquire_memory: allocated here
flashrom-v1.6.0/layout.c:137:20: branch_false: following ‘false’ branch (when ‘tmp_name’ is non-NULL)...
flashrom-v1.6.0/layout.c:142:35: branch_false: ...to here
flashrom-v1.6.0/layout.c:143:20: branch_true: following ‘true’ branch (when ‘tmp_file’ is NULL)...
flashrom-v1.6.0/layout.c:144:25: branch_true: ...to here
flashrom-v1.6.0/layout.c:144:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:144:25: danger: ‘tmp_name’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def214]
flashrom-v1.6.0/layout.c:173:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name’ where non-null expected
flashrom-v1.6.0/layout.c:163:5: enter_function: entry to ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: call_function: calling ‘parse_include_args’ from ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: return_function: returning to ‘register_include_arg’ from ‘parse_include_args’
flashrom-v1.6.0/layout.c:169:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:172:14: branch_true: ...to here
flashrom-v1.6.0/layout.c:172:27: branch_true: following ‘true’ branch (when ‘tmp’ is non-NULL)...
flashrom-v1.6.0/layout.c:173:22: branch_true: ...to here
flashrom-v1.6.0/layout.c:173:22: danger: argument 2 (‘name’) from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
flashrom-v1.6.0/layout.c:174:25: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flashrom-v1.6.0/layout.c:163:5: enter_function: entry to ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: call_function: calling ‘parse_include_args’ from ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: return_function: returning to ‘register_include_arg’ from ‘parse_include_args’
flashrom-v1.6.0/layout.c:169:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:172:14: branch_true: ...to here
flashrom-v1.6.0/layout.c:172:27: branch_true: following ‘true’ branch (when ‘tmp’ is non-NULL)...
flashrom-v1.6.0/layout.c:173:22: branch_true: ...to here
flashrom-v1.6.0/layout.c:173:20: branch_true: following ‘true’ branch (when the strings are equal)...
flashrom-v1.6.0/layout.c:174:25: branch_true: ...to here
flashrom-v1.6.0/layout.c:174:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:174:25: danger: ‘file’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
flashrom-v1.6.0/layout.c:174:25: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
flashrom-v1.6.0/layout.c:163:5: enter_function: entry to ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: call_function: calling ‘parse_include_args’ from ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: return_function: returning to ‘register_include_arg’ from ‘parse_include_args’
flashrom-v1.6.0/layout.c:169:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:172:14: branch_true: ...to here
flashrom-v1.6.0/layout.c:172:27: branch_true: following ‘true’ branch (when ‘tmp’ is non-NULL)...
flashrom-v1.6.0/layout.c:173:22: branch_true: ...to here
flashrom-v1.6.0/layout.c:174:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:174:25: danger: ‘name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
flashrom-v1.6.0/layout.c:181:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
flashrom-v1.6.0/layout.c:163:5: enter_function: entry to ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: call_function: calling ‘parse_include_args’ from ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: return_function: returning to ‘register_include_arg’ from ‘parse_include_args’
flashrom-v1.6.0/layout.c:169:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:172:14: branch_true: ...to here
flashrom-v1.6.0/layout.c:180:12: branch_true: following ‘true’ branch (when ‘tmp’ is NULL)...
flashrom-v1.6.0/layout.c:181:17: branch_true: ...to here
flashrom-v1.6.0/layout.c:181:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:181:17: danger: ‘file’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
flashrom-v1.6.0/layout.c:181:17: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
flashrom-v1.6.0/layout.c:163:5: enter_function: entry to ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: call_function: calling ‘parse_include_args’ from ‘register_include_arg’
flashrom-v1.6.0/layout.c:169:14: return_function: returning to ‘register_include_arg’ from ‘parse_include_args’
flashrom-v1.6.0/layout.c:169:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:172:14: branch_true: ...to here
flashrom-v1.6.0/layout.c:172:27: branch_false: following ‘false’ branch (when ‘tmp’ is NULL)...
flashrom-v1.6.0/layout.c:179:15: branch_false: ...to here
flashrom-v1.6.0/layout.c:180:12: branch_true: following ‘true’ branch (when ‘tmp’ is NULL)...
flashrom-v1.6.0/layout.c:181:17: branch_true: ...to here
flashrom-v1.6.0/layout.c:181:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:181:17: danger: ‘name’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def219]
flashrom-v1.6.0/layout.c:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
flashrom-v1.6.0/layout.c:199:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘filename’
flashrom-v1.6.0/layout.c:374:6: enter_function: entry to ‘prepare_layout_for_extraction’
flashrom-v1.6.0/layout.c:379:25: call_function: inlined call to ‘mutable_layout_next’ from ‘prepare_layout_for_extraction’
flashrom-v1.6.0/layout.c:379:16: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:380:17: branch_true: ...to here
flashrom-v1.6.0/layout.c:382:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:383:64: branch_true: ...to here
flashrom-v1.6.0/layout.c:383:39: acquire_memory: this call could return NULL
flashrom-v1.6.0/layout.c:383:39: call_function: calling ‘sanitise_filename’ from ‘prepare_layout_for_extraction’
Error: CPPCHECK_WARNING (CWE-476): [#def221]
flashrom-v1.6.0/layout.c:200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
flashrom-v1.6.0/layout.c:453:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
flashrom-v1.6.0/layout.c:436:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
flashrom-v1.6.0/layout.c:440:35: branch_false: ...to here
flashrom-v1.6.0/layout.c:446:51: acquire_memory: allocated here
flashrom-v1.6.0/layout.c:450:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/layout.c:453:9: branch_false: ...to here
flashrom-v1.6.0/layout.c:453:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:453:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
flashrom-v1.6.0/layout.c:453:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
flashrom-v1.6.0/layout.c:435:40: acquire_memory: allocated here
flashrom-v1.6.0/layout.c:436:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
flashrom-v1.6.0/layout.c:440:35: branch_false: ...to here
flashrom-v1.6.0/layout.c:450:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/layout.c:453:9: branch_false: ...to here
flashrom-v1.6.0/layout.c:453:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:453:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
flashrom-v1.6.0/layout.c:458:9: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
flashrom-v1.6.0/layout.c:435:40: acquire_memory: allocated here
flashrom-v1.6.0/layout.c:436:12: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
flashrom-v1.6.0/layout.c:440:35: branch_false: ...to here
flashrom-v1.6.0/layout.c:450:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/layout.c:451:17: branch_true: ...to here
flashrom-v1.6.0/layout.c:458:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/layout.c:458:9: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
flashrom-v1.6.0/libflashrom.c:111:23: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
flashrom-v1.6.0/libflashrom.c:467:5: enter_function: entry to ‘flashrom_layout_read_from_ifd’
flashrom-v1.6.0/libflashrom.c:476:28: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:477:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/libflashrom.c:480:9: branch_false: ...to here
flashrom-v1.6.0/libflashrom.c:480:9: call_function: calling ‘print’ from ‘flashrom_layout_read_from_ifd’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def226]
flashrom-v1.6.0/libflashrom.c:111:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
flashrom-v1.6.0/libflashrom.c:107:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:110:17: acquire_resource: ‘va_start’ called here
flashrom-v1.6.0/libflashrom.c:111:23: throw: if the called function throws an exception...
flashrom-v1.6.0/libflashrom.c:111:23: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
flashrom-v1.6.0/libflashrom.c:390:37: warning[-Wanalyzer-malloc-leak]: leak of ‘matched_names’
flashrom-v1.6.0/libflashrom.c:383:38: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:385:25: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:385:25: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:387:24: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:388:50: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:389:64: branch_true: following ‘true’ branch (when ‘all_matched_count == 0’)...
flashrom-v1.6.0/libflashrom.c:390:37: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:390:37: throw: if ‘probe_flash’ throws an exception...
flashrom-v1.6.0/libflashrom.c:390:37: danger: ‘matched_names’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def228]
flashrom-v1.6.0/libflashrom.c:395: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: matched_names
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
flashrom-v1.6.0/libflashrom.c:395:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘matched_names’
flashrom-v1.6.0/libflashrom.c:383:38: acquire_memory: this call could return NULL
flashrom-v1.6.0/libflashrom.c:385:25: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:385:25: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:387:24: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:388:50: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:389:64: branch_true: following ‘true’ branch (when ‘all_matched_count == 0’)...
flashrom-v1.6.0/libflashrom.c:390:37: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:395:25: danger: ‘matched_names + (long unsigned int)all_matched_count * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
flashrom-v1.6.0/libflashrom.c:401:33: warning[-Wanalyzer-malloc-leak]: leak of ‘matched_names’
flashrom-v1.6.0/libflashrom.c:383:38: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:385:25: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:385:25: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:387:24: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:388:50: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:389:64: branch_true: following ‘true’ branch (when ‘all_matched_count == 0’)...
flashrom-v1.6.0/libflashrom.c:390:37: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:399:28: branch_false: following ‘false’ branch (when ‘all_matched_count == 1’)...
flashrom-v1.6.0/libflashrom.c:414:1: branch_false: ...to here
flashrom-v1.6.0/libflashrom.c:387:24: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:388:50: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:389:64: branch_false: following ‘false’ branch (when ‘all_matched_count != 0’)...
flashrom-v1.6.0/libflashrom.c:389:64: branch_false: ...to here
flashrom-v1.6.0/libflashrom.c:392:28: branch_false: following ‘false’ branch...
flashrom-v1.6.0/libflashrom.c:395:60: branch_false: ...to here
flashrom-v1.6.0/libflashrom.c:399:28: branch_true: following ‘true’ branch (when ‘all_matched_count != 1’)...
flashrom-v1.6.0/libflashrom.c:401:33: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:401:33: throw: if ‘flashrom_layout_release’ throws an exception...
flashrom-v1.6.0/libflashrom.c:401:33: danger: ‘matched_names’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
flashrom-v1.6.0/libflashrom.c:407:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘matched_names’
flashrom-v1.6.0/libflashrom.c:383:38: acquire_memory: this call could return NULL
flashrom-v1.6.0/libflashrom.c:407:9: danger: ‘matched_names + (long unsigned int)all_matched_count * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def232]
flashrom-v1.6.0/libflashrom.c:408: error[memleakOnRealloc]: Common realloc mistake: 'matched_names' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
flashrom-v1.6.0/libflashrom.c:413:16: warning[-Wanalyzer-malloc-leak]: leak of ‘matched_names’
flashrom-v1.6.0/libflashrom.c:383:38: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:413:16: danger: ‘matched_names’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
flashrom-v1.6.0/libflashrom.c:477:13: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
flashrom-v1.6.0/libflashrom.c:476:28: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:477:13: throw: if ‘prepare_flash_access’ throws an exception...
flashrom-v1.6.0/libflashrom.c:477:13: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
flashrom-v1.6.0/libflashrom.c:481:13: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
flashrom-v1.6.0/libflashrom.c:476:28: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:477:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/libflashrom.c:480:9: branch_false: ...to here
flashrom-v1.6.0/libflashrom.c:481:13: throw: if ‘read_flash’ throws an exception...
flashrom-v1.6.0/libflashrom.c:481:13: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
flashrom-v1.6.0/libflashrom.c:523:17: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
flashrom-v1.6.0/libflashrom.c:476:28: acquire_memory: allocated here
flashrom-v1.6.0/libflashrom.c:477:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/libflashrom.c:478:17: branch_true: ...to here
flashrom-v1.6.0/libflashrom.c:523:17: throw: if ‘flashrom_layout_release’ throws an exception...
flashrom-v1.6.0/libflashrom.c:523:17: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
flashrom-v1.6.0/linux_mtd.c:57:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/linux_mtd.c:505:12: enter_function: entry to ‘linux_mtd_init’
flashrom-v1.6.0/linux_mtd.c:513:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_mtd.c:516:27: branch_true: ...to here
flashrom-v1.6.0/linux_mtd.c:517:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:531:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:535:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:535:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:542:9: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:544:16: acquire_memory: allocated here
flashrom-v1.6.0/linux_mtd.c:545:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/linux_mtd.c:551:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:551:13: call_function: calling ‘linux_mtd_setup’ from ‘linux_mtd_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
flashrom-v1.6.0/linux_mtd.c:62:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
flashrom-v1.6.0/linux_mtd.c:455:12: enter_function: entry to ‘linux_mtd_setup’
flashrom-v1.6.0/linux_mtd.c:461:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:464:14: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:465:13: call_function: calling ‘read_sysfs_string’ from ‘linux_mtd_setup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
flashrom-v1.6.0/linux_mtd.c:62:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
flashrom-v1.6.0/linux_mtd.c:455:12: enter_function: entry to ‘linux_mtd_setup’
flashrom-v1.6.0/linux_mtd.c:461:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:464:14: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:465:13: call_function: calling ‘read_sysfs_string’ from ‘linux_mtd_setup’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
flashrom-v1.6.0/linux_mtd.c:64:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/linux_mtd.c:505:12: enter_function: entry to ‘linux_mtd_init’
flashrom-v1.6.0/linux_mtd.c:513:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_mtd.c:516:27: branch_true: ...to here
flashrom-v1.6.0/linux_mtd.c:517:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:531:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:535:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:535:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:542:9: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:544:16: acquire_memory: allocated here
flashrom-v1.6.0/linux_mtd.c:545:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/linux_mtd.c:551:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:551:13: call_function: calling ‘linux_mtd_setup’ from ‘linux_mtd_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
flashrom-v1.6.0/linux_mtd.c:469:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/linux_mtd.c:505:12: enter_function: entry to ‘linux_mtd_init’
flashrom-v1.6.0/linux_mtd.c:513:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_mtd.c:516:27: branch_true: ...to here
flashrom-v1.6.0/linux_mtd.c:517:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:531:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:535:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:535:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:542:9: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:544:16: acquire_memory: allocated here
flashrom-v1.6.0/linux_mtd.c:545:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/linux_mtd.c:551:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:551:13: call_function: calling ‘linux_mtd_setup’ from ‘linux_mtd_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
flashrom-v1.6.0/linux_mtd.c:479:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/linux_mtd.c:505:12: enter_function: entry to ‘linux_mtd_init’
flashrom-v1.6.0/linux_mtd.c:513:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_mtd.c:516:27: branch_true: ...to here
flashrom-v1.6.0/linux_mtd.c:517:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:531:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:535:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:535:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_mtd.c:542:9: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:544:16: acquire_memory: allocated here
flashrom-v1.6.0/linux_mtd.c:545:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/linux_mtd.c:551:13: branch_false: ...to here
flashrom-v1.6.0/linux_mtd.c:551:13: call_function: calling ‘linux_mtd_setup’ from ‘linux_mtd_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
flashrom-v1.6.0/linux_spi.c:137:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’
flashrom-v1.6.0/linux_spi.c:128:14: acquire_resource: opened here
flashrom-v1.6.0/linux_spi.c:129:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:135:14: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:135:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_spi.c:136:21: branch_true: ...to here
flashrom-v1.6.0/linux_spi.c:136:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_spi.c:137:25: branch_true: ...to here
flashrom-v1.6.0/linux_spi.c:137:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/linux_spi.c:137:25: danger: ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
flashrom-v1.6.0/linux_spi.c:137:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’
flashrom-v1.6.0/linux_spi.c:128:14: acquire_memory: allocated here
flashrom-v1.6.0/linux_spi.c:129:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:135:14: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:135:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_spi.c:136:21: branch_true: ...to here
flashrom-v1.6.0/linux_spi.c:136:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_spi.c:137:25: branch_true: ...to here
flashrom-v1.6.0/linux_spi.c:137:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/linux_spi.c:137:25: danger: ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
flashrom-v1.6.0/linux_spi.c:139:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’
flashrom-v1.6.0/linux_spi.c:128:14: acquire_resource: opened here
flashrom-v1.6.0/linux_spi.c:129:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:135:14: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:135:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_spi.c:136:21: branch_true: ...to here
flashrom-v1.6.0/linux_spi.c:136:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:139:25: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:139:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/linux_spi.c:139:25: danger: ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
flashrom-v1.6.0/linux_spi.c:139:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’
flashrom-v1.6.0/linux_spi.c:128:14: acquire_memory: allocated here
flashrom-v1.6.0/linux_spi.c:129:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:135:14: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:135:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/linux_spi.c:136:21: branch_true: ...to here
flashrom-v1.6.0/linux_spi.c:136:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:139:25: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:139:25: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/linux_spi.c:139:25: danger: ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def247]
flashrom-v1.6.0/linux_spi.c:147:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’
flashrom-v1.6.0/linux_spi.c:128:14: acquire_resource: opened here
flashrom-v1.6.0/linux_spi.c:129:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:135:14: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:135:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:144:9: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:147:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/linux_spi.c:147:17: danger: ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
flashrom-v1.6.0/linux_spi.c:147:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’
flashrom-v1.6.0/linux_spi.c:128:14: acquire_memory: allocated here
flashrom-v1.6.0/linux_spi.c:129:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:135:14: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:135:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:144:9: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:147:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/linux_spi.c:147:17: danger: ‘fopen("/sys/module/spidev/parameters/bufsiz", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
flashrom-v1.6.0/linux_spi.c:238:16: warning[-Wanalyzer-malloc-leak]: leak of ‘spi_data’
flashrom-v1.6.0/linux_spi.c:164:12: enter_function: entry to ‘linux_spi_init’
flashrom-v1.6.0/linux_spi.c:192:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:200:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:206:9: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:208:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:213:9: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:215:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:221:13: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:221:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/linux_spi.c:227:31: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:227:31: call_function: calling ‘get_max_kernel_buf_size’ from ‘linux_spi_init’
flashrom-v1.6.0/linux_spi.c:227:31: return_function: returning to ‘linux_spi_init’ from ‘get_max_kernel_buf_size’
flashrom-v1.6.0/linux_spi.c:230:20: acquire_memory: allocated here
flashrom-v1.6.0/linux_spi.c:231:12: branch_false: following ‘false’ branch (when ‘spi_data’ is non-NULL)...
flashrom-v1.6.0/linux_spi.c:235:9: branch_false: ...to here
flashrom-v1.6.0/linux_spi.c:238:16: throw: if ‘register_spi_master’ throws an exception...
flashrom-v1.6.0/linux_spi.c:238:16: danger: ‘spi_data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
flashrom-v1.6.0/mcp6x_spi.c:182:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/mcp6x_spi.c:128:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/mcp6x_spi.c:138:9: branch_false: ...to here
flashrom-v1.6.0/mcp6x_spi.c:152:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/mcp6x_spi.c:152:12: branch_false: ...to here
flashrom-v1.6.0/mcp6x_spi.c:155:19: branch_false: following ‘false’ branch...
flashrom-v1.6.0/mcp6x_spi.c:158:20: branch_false: ...to here
flashrom-v1.6.0/mcp6x_spi.c:158:19: branch_false: following ‘false’ branch...
flashrom-v1.6.0/mcp6x_spi.c:164:24: branch_false: ...to here
flashrom-v1.6.0/mcp6x_spi.c:165:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/mcp6x_spi.c:168:29: branch_false: ...to here
flashrom-v1.6.0/mcp6x_spi.c:174:39: acquire_memory: allocated here
flashrom-v1.6.0/mcp6x_spi.c:175:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/mcp6x_spi.c:179:9: branch_false: ...to here
flashrom-v1.6.0/mcp6x_spi.c:182:13: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/mcp6x_spi.c:182:13: danger: ‘data’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
flashrom-v1.6.0/nic3com.c:147:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nic3com.c:109:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nic3com.c:112:24: branch_false: ...to here
flashrom-v1.6.0/nic3com.c:113:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nic3com.c:116:9: branch_false: ...to here
flashrom-v1.6.0/nic3com.c:136:37: acquire_memory: allocated here
flashrom-v1.6.0/nic3com.c:137:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nic3com.c:141:9: branch_false: ...to here
flashrom-v1.6.0/nic3com.c:147:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/nic3com.c:147:16: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
flashrom-v1.6.0/nicintel.c:122:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel.c:83:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel.c:86:16: branch_false: ...to here
flashrom-v1.6.0/nicintel.c:87:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel.c:90:15: branch_false: ...to here
flashrom-v1.6.0/nicintel.c:91:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel.c:94:16: branch_false: ...to here
flashrom-v1.6.0/nicintel.c:95:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel.c:98:23: branch_false: ...to here
flashrom-v1.6.0/nicintel.c:99:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel.c:111:34: branch_false: ...to here
flashrom-v1.6.0/nicintel.c:113:38: acquire_memory: allocated here
flashrom-v1.6.0/nicintel.c:114:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel.c:118:9: branch_false: ...to here
flashrom-v1.6.0/nicintel.c:122:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/nicintel.c:122:16: danger: ‘data’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
flashrom-v1.6.0/nicintel_eeprom.c:533:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_eeprom.c:489:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_eeprom.c:492:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_eeprom.c:493:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_eeprom.c:496:22: branch_false: ...to here
flashrom-v1.6.0/nicintel_eeprom.c:496:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_eeprom.c:516:43: branch_false: ...to here
flashrom-v1.6.0/nicintel_eeprom.c:517:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_eeprom.c:523:45: branch_false: ...to here
flashrom-v1.6.0/nicintel_eeprom.c:523:45: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_eeprom.c:524:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_eeprom.c:528:9: branch_false: ...to here
flashrom-v1.6.0/nicintel_eeprom.c:533:16: throw: if ‘register_opaque_master’ throws an exception...
flashrom-v1.6.0/nicintel_eeprom.c:533:16: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
flashrom-v1.6.0/nicintel_spi.c:238:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:315:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:316:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:38: call_function: calling ‘nicintel_spi_82599_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
flashrom-v1.6.0/nicintel_spi.c:241:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:315:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:316:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:38: call_function: calling ‘nicintel_spi_82599_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
flashrom-v1.6.0/nicintel_spi.c:244:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:315:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:316:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:38: call_function: calling ‘nicintel_spi_82599_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
flashrom-v1.6.0/nicintel_spi.c:246:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:315:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:316:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:38: call_function: calling ‘nicintel_spi_82599_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
flashrom-v1.6.0/nicintel_spi.c:250:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:315:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:316:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:316:38: call_function: calling ‘nicintel_spi_82599_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
flashrom-v1.6.0/nicintel_spi.c:266:15: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:309:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:38: call_function: calling ‘nicintel_spi_i210_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
flashrom-v1.6.0/nicintel_spi.c:268:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:309:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:38: call_function: calling ‘nicintel_spi_i210_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
flashrom-v1.6.0/nicintel_spi.c:274:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:309:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:38: call_function: calling ‘nicintel_spi_i210_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
flashrom-v1.6.0/nicintel_spi.c:275:23: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:309:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:38: call_function: calling ‘nicintel_spi_i210_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
flashrom-v1.6.0/nicintel_spi.c:277:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:309:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:38: call_function: calling ‘nicintel_spi_i210_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
flashrom-v1.6.0/nicintel_spi.c:282:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:288:12: enter_function: entry to ‘nicintel_spi_init’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:309:38: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:309:38: call_function: calling ‘nicintel_spi_i210_enable_flash’ from ‘nicintel_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
flashrom-v1.6.0/nicintel_spi.c:307:32: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:308:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:307:32: throw: if ‘rphysmap’ throws an exception...
flashrom-v1.6.0/nicintel_spi.c:307:32: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
flashrom-v1.6.0/nicintel_spi.c:314:32: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_true: following ‘true’ branch...
flashrom-v1.6.0/nicintel_spi.c:315:44: branch_true: ...to here
flashrom-v1.6.0/nicintel_spi.c:314:32: throw: if ‘rphysmap’ throws an exception...
flashrom-v1.6.0/nicintel_spi.c:314:32: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
flashrom-v1.6.0/nicintel_spi.c:321:32: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicintel_spi.c:293:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:296:33: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:297:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicintel_spi.c:300:42: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:300:42: acquire_memory: allocated here
flashrom-v1.6.0/nicintel_spi.c:301:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicintel_spi.c:306:14: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:306:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:313:19: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicintel_spi.c:322:44: branch_false: ...to here
flashrom-v1.6.0/nicintel_spi.c:321:32: throw: if ‘rphysmap’ throws an exception...
flashrom-v1.6.0/nicintel_spi.c:321:32: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
flashrom-v1.6.0/nicrealtek.c:135:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/nicrealtek.c:105:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/nicrealtek.c:108:24: branch_false: ...to here
flashrom-v1.6.0/nicrealtek.c:109:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/nicrealtek.c:113:17: branch_false: ...to here
flashrom-v1.6.0/nicrealtek.c:126:40: acquire_memory: allocated here
flashrom-v1.6.0/nicrealtek.c:127:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/nicrealtek.c:131:9: branch_false: ...to here
flashrom-v1.6.0/nicrealtek.c:135:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/nicrealtek.c:135:16: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
flashrom-v1.6.0/ogp_spi.c:165:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/ogp_spi.c:122:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ogp_spi.c:126:21: branch_false: ...to here
flashrom-v1.6.0/ogp_spi.c:144:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ogp_spi.c:147:33: branch_false: ...to here
flashrom-v1.6.0/ogp_spi.c:148:12: branch_false: following ‘false’ branch (when ‘io_base_addr != 0’)...
flashrom-v1.6.0/ogp_spi.c:151:22: branch_false: ...to here
flashrom-v1.6.0/ogp_spi.c:152:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/ogp_spi.c:155:37: branch_false: ...to here
flashrom-v1.6.0/ogp_spi.c:155:37: acquire_memory: allocated here
flashrom-v1.6.0/ogp_spi.c:156:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/ogp_spi.c:160:9: branch_false: ...to here
flashrom-v1.6.0/ogp_spi.c:165:13: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/ogp_spi.c:165:13: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
flashrom-v1.6.0/pcidev.c:390:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_pci_write_data’
flashrom-v1.6.0/pcidev.c:390:9: acquire_memory: allocated here
flashrom-v1.6.0/pcidev.c:390:9: branch_false: following ‘false’ branch (when ‘undo_pci_write_data’ is non-NULL)...
flashrom-v1.6.0/pcidev.c:390:9: branch_false: ...to here
flashrom-v1.6.0/pcidev.c:390:9: branch_true: following ‘true’ branch...
flashrom-v1.6.0/pcidev.c:390:9: branch_true: ...to here
flashrom-v1.6.0/pcidev.c:390:9: throw: if ‘pci_get_dev’ throws an exception...
flashrom-v1.6.0/pcidev.c:390:9: danger: ‘undo_pci_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
flashrom-v1.6.0/pcidev.c:396:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_pci_write_data’
flashrom-v1.6.0/pcidev.c:396:9: acquire_memory: allocated here
flashrom-v1.6.0/pcidev.c:396:9: branch_false: following ‘false’ branch (when ‘undo_pci_write_data’ is non-NULL)...
flashrom-v1.6.0/pcidev.c:396:9: branch_false: ...to here
flashrom-v1.6.0/pcidev.c:396:9: branch_true: following ‘true’ branch...
flashrom-v1.6.0/pcidev.c:396:9: branch_true: ...to here
flashrom-v1.6.0/pcidev.c:396:9: throw: if ‘pci_get_dev’ throws an exception...
flashrom-v1.6.0/pcidev.c:396:9: danger: ‘undo_pci_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
flashrom-v1.6.0/pcidev.c:402:9: warning[-Wanalyzer-malloc-leak]: leak of ‘undo_pci_write_data’
flashrom-v1.6.0/pcidev.c:402:9: acquire_memory: allocated here
flashrom-v1.6.0/pcidev.c:402:9: branch_false: following ‘false’ branch (when ‘undo_pci_write_data’ is non-NULL)...
flashrom-v1.6.0/pcidev.c:402:9: branch_false: ...to here
flashrom-v1.6.0/pcidev.c:402:9: branch_true: following ‘true’ branch...
flashrom-v1.6.0/pcidev.c:402:9: branch_true: ...to here
flashrom-v1.6.0/pcidev.c:402:9: throw: if ‘pci_get_dev’ throws an exception...
flashrom-v1.6.0/pcidev.c:402:9: danger: ‘undo_pci_write_data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
flashrom-v1.6.0/pickit2_spi.c:94:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:13: call_function: calling ‘pickit2_get_firmware_version’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
flashrom-v1.6.0/pickit2_spi.c:105:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:13: call_function: calling ‘pickit2_get_firmware_version’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
flashrom-v1.6.0/pickit2_spi.c:112:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:13: call_function: calling ‘pickit2_get_firmware_version’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
flashrom-v1.6.0/pickit2_spi.c:116:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:13: call_function: calling ‘pickit2_get_firmware_version’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
flashrom-v1.6.0/pickit2_spi.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:483:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:483:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:487:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:488:13: call_function: calling ‘pickit2_set_spi_voltage’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
flashrom-v1.6.0/pickit2_spi.c:158:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:483:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:483:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:487:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:488:13: call_function: calling ‘pickit2_set_spi_voltage’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
flashrom-v1.6.0/pickit2_spi.c:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:483:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:483:13: call_function: calling ‘pickit2_set_spi_speed’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
flashrom-v1.6.0/pickit2_spi.c:193:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:483:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:483:13: call_function: calling ‘pickit2_set_spi_speed’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
flashrom-v1.6.0/pickit2_spi.c:364:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:501:9: call_function: calling ‘pickit2_shutdown’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
flashrom-v1.6.0/pickit2_spi.c:367:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:501:9: call_function: calling ‘pickit2_shutdown’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
flashrom-v1.6.0/pickit2_spi.c:368:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:501:9: call_function: calling ‘pickit2_shutdown’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
flashrom-v1.6.0/pickit2_spi.c:371:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:501:9: call_function: calling ‘pickit2_shutdown’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
flashrom-v1.6.0/pickit2_spi.c:372:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:387:12: enter_function: entry to ‘pickit2_spi_init’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:501:9: call_function: calling ‘pickit2_shutdown’ from ‘pickit2_spi_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
flashrom-v1.6.0/pickit2_spi.c:487:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pickit2_data’
flashrom-v1.6.0/pickit2_spi.c:437:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:445:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:451:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:457:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:457:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:463:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:463:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:470:24: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:470:24: acquire_memory: allocated here
flashrom-v1.6.0/pickit2_spi.c:471:12: branch_false: following ‘false’ branch (when ‘pickit2_data’ is non-NULL)...
flashrom-v1.6.0/pickit2_spi.c:477:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:479:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:483:13: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:483:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pickit2_spi.c:487:9: branch_false: ...to here
flashrom-v1.6.0/pickit2_spi.c:487:9: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/pickit2_spi.c:487:9: danger: ‘pickit2_data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
flashrom-v1.6.0/pony_spi.c:194:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/pony_spi.c:172:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/pony_spi.c:176:13: branch_false: ...to here
flashrom-v1.6.0/pony_spi.c:176:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/pony_spi.c:183:38: branch_true: ...to here
flashrom-v1.6.0/pony_spi.c:183:38: acquire_memory: allocated here
flashrom-v1.6.0/pony_spi.c:184:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/pony_spi.c:189:9: branch_false: ...to here
flashrom-v1.6.0/pony_spi.c:194:13: throw: if ‘register_shutdown’ throws an exception...
flashrom-v1.6.0/pony_spi.c:194:13: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
flashrom-v1.6.0/satamv.c:200:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/satamv.c:124:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/satamv.c:127:16: branch_false: ...to here
flashrom-v1.6.0/satamv.c:128:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/satamv.c:131:15: branch_false: ...to here
flashrom-v1.6.0/satamv.c:132:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/satamv.c:135:30: branch_false: ...to here
flashrom-v1.6.0/satamv.c:179:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/satamv.c:186:9: branch_false: ...to here
flashrom-v1.6.0/satamv.c:189:36: acquire_memory: allocated here
flashrom-v1.6.0/satamv.c:190:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/satamv.c:194:9: branch_false: ...to here
flashrom-v1.6.0/satamv.c:200:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/satamv.c:200:16: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
flashrom-v1.6.0/satasii.c:143:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/satasii.c:110:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/satasii.c:113:9: branch_false: ...to here
flashrom-v1.6.0/satasii.c:117:20: branch_false: following ‘false’ branch (when ‘addr != 0’)...
flashrom-v1.6.0/satasii.c:127:15: branch_false: ...to here
flashrom-v1.6.0/satasii.c:128:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/satasii.c:130:13: branch_false: ...to here
flashrom-v1.6.0/satasii.c:136:37: acquire_memory: allocated here
flashrom-v1.6.0/satasii.c:137:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
flashrom-v1.6.0/satasii.c:141:9: branch_false: ...to here
flashrom-v1.6.0/satasii.c:143:16: throw: if ‘register_par_master’ throws an exception...
flashrom-v1.6.0/satasii.c:143:16: danger: ‘data’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def290]
flashrom-v1.6.0/serial.c:304:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev, 2306)’
flashrom-v1.6.0/serial.c:297:14: acquire_resource: opened here
flashrom-v1.6.0/serial.c:298:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serial.c:304:27: branch_false: ...to here
flashrom-v1.6.0/serial.c:304:27: throw: if ‘fcntl’ throws an exception...
flashrom-v1.6.0/serial.c:304:27: danger: ‘open(dev, 2306)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
flashrom-v1.6.0/serprog.c:117:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
flashrom-v1.6.0/serprog.c:605:12: enter_function: entry to ‘serprog_init’
flashrom-v1.6.0/serprog.c:653:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:659:12: branch_false: ...to here
flashrom-v1.6.0/serprog.c:659:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:661:20: branch_true: following ‘true’ branch (when ‘port’ is non-NULL)...
flashrom-v1.6.0/serprog.c:663:25: branch_true: ...to here
flashrom-v1.6.0/serprog.c:666:21: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:672:21: branch_false: ...to here
flashrom-v1.6.0/serprog.c:672:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:673:55: call_function: inlined call to ‘atoi’ from ‘serprog_init’
flashrom-v1.6.0/serprog.c:673:33: call_function: calling ‘sp_opensocket’ from ‘serprog_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def292]
flashrom-v1.6.0/serprog.c:119:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
flashrom-v1.6.0/serprog.c:605:12: enter_function: entry to ‘serprog_init’
flashrom-v1.6.0/serprog.c:653:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:659:12: branch_false: ...to here
flashrom-v1.6.0/serprog.c:659:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:661:20: branch_true: following ‘true’ branch (when ‘port’ is non-NULL)...
flashrom-v1.6.0/serprog.c:663:25: branch_true: ...to here
flashrom-v1.6.0/serprog.c:666:21: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:672:21: branch_false: ...to here
flashrom-v1.6.0/serprog.c:672:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:673:55: call_function: inlined call to ‘atoi’ from ‘serprog_init’
flashrom-v1.6.0/serprog.c:673:33: call_function: calling ‘sp_opensocket’ from ‘serprog_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
flashrom-v1.6.0/serprog.c:121:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
flashrom-v1.6.0/serprog.c:605:12: enter_function: entry to ‘serprog_init’
flashrom-v1.6.0/serprog.c:653:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:659:12: branch_false: ...to here
flashrom-v1.6.0/serprog.c:659:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:661:20: branch_true: following ‘true’ branch (when ‘port’ is non-NULL)...
flashrom-v1.6.0/serprog.c:663:25: branch_true: ...to here
flashrom-v1.6.0/serprog.c:666:21: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:672:21: branch_false: ...to here
flashrom-v1.6.0/serprog.c:672:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:673:55: call_function: inlined call to ‘atoi’ from ‘serprog_init’
flashrom-v1.6.0/serprog.c:673:33: call_function: calling ‘sp_opensocket’ from ‘serprog_init’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
flashrom-v1.6.0/serprog.c:130:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
flashrom-v1.6.0/serprog.c:605:12: enter_function: entry to ‘serprog_init’
flashrom-v1.6.0/serprog.c:653:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:659:12: branch_false: ...to here
flashrom-v1.6.0/serprog.c:659:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:661:20: branch_true: following ‘true’ branch (when ‘port’ is non-NULL)...
flashrom-v1.6.0/serprog.c:663:25: branch_true: ...to here
flashrom-v1.6.0/serprog.c:666:21: branch_false: following ‘false’ branch...
flashrom-v1.6.0/serprog.c:672:21: branch_false: ...to here
flashrom-v1.6.0/serprog.c:672:20: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:673:55: call_function: inlined call to ‘atoi’ from ‘serprog_init’
flashrom-v1.6.0/serprog.c:673:33: call_function: calling ‘sp_opensocket’ from ‘serprog_init’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
flashrom-v1.6.0/serprog.c:268:29: warning[-Wanalyzer-malloc-leak]: leak of ‘sp’
flashrom-v1.6.0/serprog.c:286:12: enter_function: entry to ‘sp_stream_buffer_op’
flashrom-v1.6.0/serprog.c:292:14: acquire_memory: allocated here
flashrom-v1.6.0/serprog.c:293:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
flashrom-v1.6.0/serprog.c:297:9: branch_false: ...to here
flashrom-v1.6.0/serprog.c:298:12: branch_false: following ‘false’ branch (when ‘parms’ is NULL)...
flashrom-v1.6.0/serprog.c:301:43: branch_false: ...to here
flashrom-v1.6.0/serprog.c:301:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:302:21: branch_true: ...to here
flashrom-v1.6.0/serprog.c:302:21: call_function: calling ‘sp_flush_stream’ from ‘sp_stream_buffer_op’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
flashrom-v1.6.0/serprog.c:269:33: warning[-Wanalyzer-malloc-leak]: leak of ‘sp’
flashrom-v1.6.0/serprog.c:286:12: enter_function: entry to ‘sp_stream_buffer_op’
flashrom-v1.6.0/serprog.c:292:14: acquire_memory: allocated here
flashrom-v1.6.0/serprog.c:293:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
flashrom-v1.6.0/serprog.c:297:9: branch_false: ...to here
flashrom-v1.6.0/serprog.c:298:12: branch_false: following ‘false’ branch (when ‘parms’ is NULL)...
flashrom-v1.6.0/serprog.c:301:43: branch_false: ...to here
flashrom-v1.6.0/serprog.c:301:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:302:21: branch_true: ...to here
flashrom-v1.6.0/serprog.c:302:21: call_function: calling ‘sp_flush_stream’ from ‘sp_stream_buffer_op’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
flashrom-v1.6.0/serprog.c:273:33: warning[-Wanalyzer-malloc-leak]: leak of ‘sp’
flashrom-v1.6.0/serprog.c:286:12: enter_function: entry to ‘sp_stream_buffer_op’
flashrom-v1.6.0/serprog.c:292:14: acquire_memory: allocated here
flashrom-v1.6.0/serprog.c:293:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
flashrom-v1.6.0/serprog.c:297:9: branch_false: ...to here
flashrom-v1.6.0/serprog.c:298:12: branch_false: following ‘false’ branch (when ‘parms’ is NULL)...
flashrom-v1.6.0/serprog.c:301:43: branch_false: ...to here
flashrom-v1.6.0/serprog.c:301:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:302:21: branch_true: ...to here
flashrom-v1.6.0/serprog.c:302:21: call_function: calling ‘sp_flush_stream’ from ‘sp_stream_buffer_op’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
flashrom-v1.6.0/serprog.c:277:33: warning[-Wanalyzer-malloc-leak]: leak of ‘sp’
flashrom-v1.6.0/serprog.c:286:12: enter_function: entry to ‘sp_stream_buffer_op’
flashrom-v1.6.0/serprog.c:292:14: acquire_memory: allocated here
flashrom-v1.6.0/serprog.c:293:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
flashrom-v1.6.0/serprog.c:297:9: branch_false: ...to here
flashrom-v1.6.0/serprog.c:298:12: branch_false: following ‘false’ branch (when ‘parms’ is NULL)...
flashrom-v1.6.0/serprog.c:301:43: branch_false: ...to here
flashrom-v1.6.0/serprog.c:301:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:302:21: branch_true: ...to here
flashrom-v1.6.0/serprog.c:302:21: call_function: calling ‘sp_flush_stream’ from ‘sp_stream_buffer_op’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
flashrom-v1.6.0/serprog.c:307:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sp’
flashrom-v1.6.0/serprog.c:292:14: acquire_memory: allocated here
flashrom-v1.6.0/serprog.c:293:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
flashrom-v1.6.0/serprog.c:297:9: branch_false: ...to here
flashrom-v1.6.0/serprog.c:298:12: branch_false: following ‘false’ branch (when ‘parms’ is NULL)...
flashrom-v1.6.0/serprog.c:301:43: branch_false: ...to here
flashrom-v1.6.0/serprog.c:307:13: throw: if ‘serialport_write’ throws an exception...
flashrom-v1.6.0/serprog.c:307:13: danger: ‘sp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
flashrom-v1.6.0/serprog.c:308:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sp’
flashrom-v1.6.0/serprog.c:292:14: acquire_memory: allocated here
flashrom-v1.6.0/serprog.c:293:12: branch_false: following ‘false’ branch (when ‘sp’ is non-NULL)...
flashrom-v1.6.0/serprog.c:297:9: branch_false: ...to here
flashrom-v1.6.0/serprog.c:298:12: branch_false: following ‘false’ branch (when ‘parms’ is NULL)...
flashrom-v1.6.0/serprog.c:301:43: branch_false: ...to here
flashrom-v1.6.0/serprog.c:307:12: branch_true: following ‘true’ branch...
flashrom-v1.6.0/serprog.c:308:17: branch_true: ...to here
flashrom-v1.6.0/serprog.c:308:17: throw: if ‘print’ throws an exception...
flashrom-v1.6.0/serprog.c:308:17: danger: ‘sp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
flashrom-v1.6.0/sfdp.c:41:15: warning[-Wanalyzer-malloc-leak]: leak of ‘newbuf’
flashrom-v1.6.0/sfdp.c:38:18: acquire_memory: allocated here
flashrom-v1.6.0/sfdp.c:39:12: branch_false: following ‘false’ branch (when ‘newbuf’ is non-NULL)...
flashrom-v1.6.0/sfdp.c:41:15: branch_false: ...to here
flashrom-v1.6.0/sfdp.c:41:15: throw: if ‘spi_send_command’ throws an exception...
flashrom-v1.6.0/sfdp.c:41:15: danger: ‘newbuf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-758): [#def302]
flashrom-v1.6.0/sfdp.c:201: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-674): [#def303]
flashrom-v1.6.0/spi.c:55:26: warning[-Wanalyzer-infinite-recursion]: infinite recursion
flashrom-v1.6.0/spi.c:61:5: enter_function: initial entry to ‘spi_send_command’
flashrom-v1.6.0/spi.c:65:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/spi.c:67:16: branch_false: ...to here
flashrom-v1.6.0/spi.c:67:16: call_function: calling ‘default_spi_send_command’ from ‘spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def304]
flashrom-v1.6.0/spi.c:67:16: warning[-Wanalyzer-infinite-recursion]: infinite recursion
flashrom-v1.6.0/spi.c:61:5: enter_function: entry to ‘spi_send_command’
flashrom-v1.6.0/spi.c:65:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/spi.c:67:16: branch_false: ...to here
flashrom-v1.6.0/spi.c:67:16: call_function: calling ‘default_spi_send_command’ from ‘spi_send_command’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def305]
flashrom-v1.6.0/spi25.c:464:9: warning[-Wanalyzer-null-argument]: use of NULL ‘out_bytes’ where non-null expected
flashrom-v1.6.0/spi25.c:554:5: enter_function: entry to ‘spi_block_erase_81’
flashrom-v1.6.0/spi25.c:557:16: call_function: calling ‘spi_write_cmd’ from ‘spi_block_erase_81’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
flashrom-v1.6.0/spi25_statusreg.c:318:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
flashrom-v1.6.0/spi25_statusreg.c:876:12: enter_function: entry to ‘spi_disable_blockprotect_n25q’
flashrom-v1.6.0/spi25_statusreg.c:878:16: call_function: calling ‘spi_disable_blockprotect_generic’ from ‘spi_disable_blockprotect_n25q’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
flashrom-v1.6.0/spi95.c:69:18: warning[-Wanalyzer-malloc-leak]: leak of ‘erased_contents’
flashrom-v1.6.0/spi95.c:63:38: acquire_memory: allocated here
flashrom-v1.6.0/spi95.c:64:12: branch_false: following ‘false’ branch (when ‘erased_contents’ is non-NULL)...
flashrom-v1.6.0/spi95.c:68:33: branch_false: ...to here
flashrom-v1.6.0/spi95.c:69:18: throw: if ‘spi_write_chunked’ throws an exception...
flashrom-v1.6.0/spi95.c:69:18: danger: ‘erased_contents’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
flashrom-v1.6.0/usbblaster_spi.c:223:16: warning[-Wanalyzer-malloc-leak]: leak of ‘usbblaster_data’
flashrom-v1.6.0/usbblaster_spi.c:182:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:185:13: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:185:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:190:13: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:190:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:195:13: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:195:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:200:13: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:200:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:201:13: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:200:13: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:206:9: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:207:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:211:13: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:211:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/usbblaster_spi.c:216:27: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:216:27: acquire_memory: allocated here
flashrom-v1.6.0/usbblaster_spi.c:217:12: branch_false: following ‘false’ branch (when ‘usbblaster_data’ is non-NULL)...
flashrom-v1.6.0/usbblaster_spi.c:221:9: branch_false: ...to here
flashrom-v1.6.0/usbblaster_spi.c:223:16: throw: if ‘register_spi_master’ throws an exception...
flashrom-v1.6.0/usbblaster_spi.c:223:16: danger: ‘usbblaster_data’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:203:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:164:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:165:17: branch_true: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:164:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:179:12: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:179:12: branch_false: following ‘false’ branch (when ‘fn’ is non-NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:182:14: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:183:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:185:15: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:186:12: branch_false: following ‘false’ branch (when ‘len >= 0’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:190:27: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:191:12: branch_true: following ‘true’ branch (when ‘buf == 18446744073709551615’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:195:23: branch_true: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:195:23: acquire_memory: allocated here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:196:20: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:198:17: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:199:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:202:9: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:203:9: throw: if ‘close’ throws an exception...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:203:9: danger: ‘buf’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:261:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:164:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:165:17: branch_true: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:179:12: branch_false: following ‘false’ branch (when ‘fn’ is non-NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:182:14: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:183:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:185:15: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:186:12: branch_false: following ‘false’ branch (when ‘len >= 0’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:190:27: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:191:12: branch_true: following ‘true’ branch (when ‘buf == 18446744073709551615’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:195:23: branch_true: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:195:23: acquire_memory: allocated here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:196:20: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:198:17: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:199:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:202:9: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:205:12: branch_false: following ‘false’ branch (when ‘csn’ is NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:261:15: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:261:15: throw: if ‘read_ich_descriptors_from_dump’ throws an exception...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:261:15: danger: ‘buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:277:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:164:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:165:17: branch_true: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:179:12: branch_false: following ‘false’ branch (when ‘fn’ is non-NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:182:14: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:183:12: branch_false: following ‘false’ branch...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:185:15: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:186:12: branch_false: following ‘false’ branch (when ‘len >= 0’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:190:27: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:191:12: branch_true: following ‘true’ branch (when ‘buf == 18446744073709551615’)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:195:23: branch_true: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:195:23: acquire_memory: allocated here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:196:20: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:198:17: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:199:20: branch_false: following ‘false’ branch...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:202:9: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:205:12: branch_false: following ‘false’ branch (when ‘csn’ is NULL)...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:261:15: branch_false: ...to here
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:277:9: throw: if ‘prettyprint_ich_descriptors’ throws an exception...
flashrom-v1.6.0/util/ich_descriptors_tool/ich_descriptors_tool.c:277:9: danger: ‘buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-64.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | flashrom-1.6.0-2.fc44 |
| store-results-to | /tmp/tmpu3ov4bbv/flashrom-1.6.0-2.fc44.tar.xz |
| time-created | 2026-01-08 16:08:42 |
| time-finished | 2026-01-08 16:10:10 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpu3ov4bbv/flashrom-1.6.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpu3ov4bbv/flashrom-1.6.0-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |