libipt-2.2-2.fc45
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libipt-2.2/libipt/src/pt_image_section_cache.c:1041:24: warning[-Wanalyzer-malloc-leak]: leak of ‘tail’
libipt-2.2/libipt/src/pt_image_section_cache.c:1031:5: enter_function: entry to ‘pt_iscache_notify_map’
libipt-2.2/libipt/src/pt_image_section_cache.c:1040:12: branch_false: following ‘false’ branch...
libipt-2.2/libipt/src/pt_image_section_cache.c:1043:18: branch_false: ...to here
libipt-2.2/libipt/src/pt_image_section_cache.c:1043:18: call_function: calling ‘pt_iscache_lru_add’ from ‘pt_iscache_notify_map’
libipt-2.2/libipt/src/pt_image_section_cache.c:1043:18: return_function: returning to ‘pt_iscache_notify_map’ from ‘pt_iscache_lru_add’
libipt-2.2/libipt/src/pt_image_section_cache.c:1044:12: branch_true: following ‘true’ branch...
libipt-2.2/libipt/src/pt_image_section_cache.c:1045:26: branch_true: ...to here
libipt-2.2/libipt/src/pt_image_section_cache.c:1045:26: call_function: calling ‘pt_iscache_lru_prune’ from ‘pt_iscache_notify_map’
libipt-2.2/libipt/src/pt_image_section_cache.c:1045:26: return_function: returning to ‘pt_iscache_notify_map’ from ‘pt_iscache_lru_prune’
libipt-2.2/libipt/src/pt_image_section_cache.c:1047:19: call_function: calling ‘pt_iscache_unlock’ from ‘pt_iscache_notify_map’
libipt-2.2/libipt/src/pt_image_section_cache.c:1047:19: return_function: returning to ‘pt_iscache_notify_map’ from ‘pt_iscache_unlock’
libipt-2.2/libipt/src/pt_image_section_cache.c:1050:24: branch_false: following ‘false’ branch (when ‘status == 0’)...
libipt-2.2/libipt/src/pt_image_section_cache.c:1050:24: branch_false: ...to here
libipt-2.2/libipt/src/pt_image_section_cache.c:1041:24: danger: ‘tail’ leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: CPPCHECK_WARNING (CWE-457): [#def2]
libipt-2.2/libipt/test/src/ptunit-block_cache.c:356: error[uninitvar]: Uninitialized variables: &(cfix).thrd, &(cfix).bcache
Error: CPPCHECK_WARNING (CWE-457): [#def3]
libipt-2.2/libipt/test/src/ptunit-block_decoder.c:363: error[uninitvar]: Uninitialized variables: &(tfix).decoder, &(tfix).config
Error: CPPCHECK_WARNING (CWE-457): [#def4]
libipt-2.2/libipt/test/src/ptunit-encoder.c:232: error[uninitvar]: Uninitialized variables: &(tfix).encoder, &(tfix).config
Error: CPPCHECK_WARNING (CWE-457): [#def5]
libipt-2.2/libipt/test/src/ptunit-event_queue.c:596: error[uninitvar]: Uninitialized variable: &(efix).evq
Error: CPPCHECK_WARNING (CWE-457): [#def6]
libipt-2.2/libipt/test/src/ptunit-image.c:2216: error[uninitvar]: Uninitialized variables: &(dfix).image, &(dfix).nsecs, &(dfix).copy, &(dfix).iscache
Error: CPPCHECK_WARNING (CWE-457): [#def7]
libipt-2.2/libipt/test/src/ptunit-image_section_cache.c:1606: error[uninitvar]: Uninitialized variables: &(dfix).thrd, &(dfix).iscache, &(dfix).fname, &(dfix).file
Error: CPPCHECK_WARNING (CWE-457): [#def8]
libipt-2.2/libipt/test/src/ptunit-insn_decoder.c:342: error[uninitvar]: Uninitialized variables: &(tfix).decoder, &(tfix).config
Error: CPPCHECK_WARNING (CWE-457): [#def9]
libipt-2.2/libipt/test/src/ptunit-msec_cache.c:412: error[uninitvar]: Uninitialized variables: &(sfix).section, &(sfix).mcache, &(sfix).image
Error: CPPCHECK_WARNING (CWE-457): [#def10]
libipt-2.2/libipt/test/src/ptunit-msec_cache.c:413: error[uninitvar]: Uninitialized variables: &(cfix).section, &(cfix).mcache, &(cfix).image
Error: CPPCHECK_WARNING (CWE-457): [#def11]
libipt-2.2/libipt/test/src/ptunit-packet.c:614: error[uninitvar]: Uninitialized variables: &(pfix).config, &(pfix).encoder, &(pfix).decoder, &(pfix).unknown
Error: CPPCHECK_WARNING (CWE-457): [#def12]
libipt-2.2/libipt/test/src/ptunit-packet_decoder.c:268: error[uninitvar]: Uninitialized variables: &(tfix).decoder, &(tfix).config
Error: CPPCHECK_WARNING (CWE-457): [#def13]
libipt-2.2/libipt/test/src/ptunit-section.c:1409: error[uninitvar]: Uninitialized variables: &(sfix).thrd, &(sfix).name, &(sfix).file, &(sfix).section
Error: CPPCHECK_WARNING (CWE-457): [#def14]
libipt-2.2/libipt/test/src/ptunit-sync.c:290: error[uninitvar]: Uninitialized variable: &(sfix).config
Error: CPPCHECK_WARNING (CWE-457): [#def15]
libipt-2.2/libipt/test/src/ptunit-time.c:390: error[uninitvar]: Uninitialized variables: &(tfix).config, &(tfix).tcal, &(tfix).time
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libipt-2.2/ptunit/test/src/ptunit-selftest.c:278:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pfix.pointer’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:433:5: enter_function: entry to ‘main’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:444:9: call_function: calling ‘ptr_fail’ from ‘main’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:444:9: return_function: returning to ‘main’ from ‘ptr_fail’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:445:9: call_function: calling ‘null_fail’ from ‘main’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:445:9: return_function: returning to ‘main’ from ‘null_fail’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:446:9: call_function: calling ‘check_fail’ from ‘main’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:446:9: return_function: returning to ‘main’ from ‘check_fail’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:451:9: branch_true: following ‘true’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:451:9: branch_true: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:451:9: branch_false: following ‘false’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:451:9: branch_false: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:452:9: branch_true: following ‘true’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:452:9: branch_true: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:452:9: branch_false: following ‘false’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:452:9: branch_false: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:458:9: call_function: calling ‘param’ from ‘main’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:458:9: return_function: returning to ‘main’ from ‘param’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:459:9: branch_true: following ‘true’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:459:9: branch_true: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:459:9: call_function: calling ‘init_fixture’ from ‘main’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:459:9: return_function: returning to ‘main’ from ‘init_fixture’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:459:9: branch_false: following ‘false’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:459:9: branch_false: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:460:9: branch_true: following ‘true’ branch...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:460:9: branch_true: ...to here
libipt-2.2/ptunit/test/src/ptunit-selftest.c:460:9: call_function: calling ‘init_fixture’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def17]
libipt-2.2/ptunit/test/src/ptunit-selftest.c:334: error[nullPointer]: Null pointer dereference: (volatile int*)NULL
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
libipt-2.2/ptunit/test/src/ptunit-selftest.c:334:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:372:29: enter_function: entry to ‘frun_init_skip’
libipt-2.2/ptunit/test/src/ptunit-selftest.c:379:9: branch_true: following ‘true’ branch (when ‘<unknown> == 0’)...
libipt-2.2/ptunit/test/src/ptunit-selftest.c:379:9: call_function: inlined call to ‘frun_die’ from ‘frun_init_skip’
Error: CPPCHECK_WARNING (CWE-457): [#def19]
libipt-2.2/ptunit/test/src/ptunit-selftest.c:451: error[uninitvar]: Uninitialized variable: &(tfix).test
Scan Properties
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| 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-167.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libipt-2.2-2.fc45 |
| store-results-to | /tmp/tmpv575f67y/libipt-2.2-2.fc45.tar.xz |
| time-created | 2026-08-03 17:23:01 |
| time-finished | 2026-08-03 17:24:51 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpv575f67y/libipt-2.2-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpv575f67y/libipt-2.2-2.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |