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)
# 1039|   	errcode = pt_iscache_lock(iscache);
# 1040|   	if (errcode < 0)
# 1041|-> 		return errcode;
# 1042|   
# 1043|   	status = pt_iscache_lru_add(iscache, section);

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
#  354|   	ptu_run(suite, lookup_null);
#  355|   
#  356|-> 	ptu_run_f(suite, alloc, cfix);
#  357|   	ptu_run_f(suite, alloc_min, cfix);
#  358|   	ptu_run_f(suite, alloc_too_big, cfix);

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
#  361|   	ptu_run(suite, sync_backward_null);
#  362|   	ptu_run(suite, sync_set_null);
#  363|-> 	ptu_run_f(suite, sync_set_eos, tfix);
#  364|   
#  365|   	ptu_run(suite, get_offset_null);

Error: CPPCHECK_WARNING (CWE-457): [#def4]
libipt-2.2/libipt/test/src/ptunit-encoder.c:232: error[uninitvar]: Uninitialized variables: &(tfix).encoder, &(tfix).config
#  230|   
#  231|   	ptu_run(suite, sync_set_null);
#  232|-> 	ptu_run_f(suite, sync_set_eos, tfix);
#  233|   
#  234|   	ptu_run(suite, get_offset_null);

Error: CPPCHECK_WARNING (CWE-457): [#def5]
libipt-2.2/libipt/test/src/ptunit-event_queue.c:596: error[uninitvar]: Uninitialized variable: &(efix).evq
#  594|   
#  595|   	ptu_run(suite, standalone_null);
#  596|-> 	ptu_run_f(suite, standalone, efix);
#  597|   
#  598|   	ptu_run_p(suite, enqueue_null, evb_psbend);

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
# 2214|   
# 2215|   	ptu_run(suite, init);
# 2216|-> 	ptu_run_f(suite, init_name, dfix);
# 2217|   	ptu_run(suite, init_null);
# 2218|   

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
# 1604|   	ptu_run(suite, read_null);
# 1605|   
# 1606|-> 	ptu_run_f(suite, name, dfix);
# 1607|   	ptu_run_f(suite, name_none, dfix);
# 1608|   

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
#  340|   	ptu_run(suite, sync_backward_null);
#  341|   	ptu_run(suite, sync_set_null);
#  342|-> 	ptu_run_f(suite, sync_set_eos, tfix);
#  343|   
#  344|   	ptu_run(suite, get_offset_null);

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
#  410|   	ptu_run(suite, fill_null);
#  411|   
#  412|-> 	ptu_run_f(suite, invalidate, sfix);
#  413|   	ptu_run_f(suite, invalidate, cfix);
#  414|   

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
#  411|   
#  412|   	ptu_run_f(suite, invalidate, sfix);
#  413|-> 	ptu_run_f(suite, invalidate, cfix);
#  414|   
#  415|   	ptu_run_f(suite, read_nomap, sfix);

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
#  612|   	suite = ptunit_mk_suite(argc, argv);
#  613|   
#  614|-> 	ptu_run_fp(suite, no_payload, pfix, ppt_pad);
#  615|   	ptu_run_fp(suite, no_payload, pfix, ppt_psb);
#  616|   	ptu_run_fp(suite, no_payload, pfix, ppt_ovf);

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
#  266|   	ptu_run(suite, sync_backward_null);
#  267|   	ptu_run(suite, sync_set_null);
#  268|-> 	ptu_run_f(suite, sync_set_eos, tfix);
#  269|   
#  270|   	ptu_run(suite, get_offset_null);

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
# 1407|   	suite = ptunit_mk_suite(argc, argv);
# 1408|   
# 1409|-> 	ptu_run_f(suite, create, sfix);
# 1410|   	ptu_run_f(suite, create_bad_offset, sfix);
# 1411|   	ptu_run_f(suite, create_truncated, sfix);

Error: CPPCHECK_WARNING (CWE-457): [#def14]
libipt-2.2/libipt/test/src/ptunit-sync.c:290: error[uninitvar]: Uninitialized variable: &(sfix).config
#  288|   	suite = ptunit_mk_suite(argc, argv);
#  289|   
#  290|-> 	ptu_run_f(suite, sync_fwd_null, sfix);
#  291|   	ptu_run_f(suite, sync_bwd_null, sfix);
#  292|   

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
#  388|   	tfix.fini = NULL;
#  389|   
#  390|-> 	ptu_run_f(suite, tsc_null, tfix);
#  391|   	ptu_run_f(suite, cbr_null, tfix);
#  392|   	ptu_run_f(suite, tma_null, tfix);

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’
#  276|   static struct ptunit_result init_fixture(struct fixture *pfix)
#  277|   {
#  278|-> 	pfix->pointer = malloc(42);
#  279|   
#  280|   	return ptu_passed();

Error: CPPCHECK_WARNING (CWE-476): [#def17]
libipt-2.2/ptunit/test/src/ptunit-selftest.c:334: error[nullPointer]: Null pointer dereference: (volatile int*)NULL
#  332|   	(void) pfix;
#  333|   
#  334|-> 	*((volatile int *) NULL) = 0;
#  335|   
#  336|   	return ptu_skipped();

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’
#  332|   	(void) pfix;
#  333|   
#  334|-> 	*((volatile int *) NULL) = 0;
#  335|   
#  336|   	return ptu_skipped();

Error: CPPCHECK_WARNING (CWE-457): [#def19]
libipt-2.2/ptunit/test/src/ptunit-selftest.c:451: error[uninitvar]: Uninitialized variable: &(tfix).test
#  449|   	tfix.fini = fini_test_fixture;
#  450|   
#  451|-> 	ptu_run_f(suite, str_fail, tfix);
#  452|   	ptu_run_f(suite, str_null, tfix);
#  453|   

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-167.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibipt-2.2-2.fc45
store-results-to/tmp/tmpv575f67y/libipt-2.2-2.fc45.tar.xz
time-created2026-08-03 17:23:01
time-finished2026-08-03 17:24:51
toolcsmock
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-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9