libipt-2.1.1-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/posix/pt_section_posix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_block_decoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_block_decoder.c: scope_hint: In function ‘pt_blk_event’
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_block_decoder.c:3950:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&tick’
cc1: note: unrecognized command-line option ‘-Wno-debug-disables-optimization’ may have been intended to silence earlier diagnostics
# 3948|   
# 3949|   		/* Copy the event to the user. */
# 3950|-> 		memcpy(uevent, &tick, size);
# 3951|   
# 3952|   		/* Only fetch the  next event if we used up all TNT bits. */

Error: CPPCHECK_WARNING: [#def4]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_cpu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_encoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_event_decoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def8]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_event_decoder.c:2519:4: warning[deadcode.DeadStores]: Value stored to 'errcode' is never read
# 2517|   			 * Resume from here with tracing disabled.
# 2518|   			 */
# 2519|-> 			errcode = pt_evt_recover_ovf_disabled(decoder, &pacdec,
# 2520|   							      &packet, &time,
# 2521|   							      &tcal);

Error: CPPCHECK_WARNING: [#def9]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_event_queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_ild.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_ild.c:1085:13: warning[deadcode.DeadStores]: Although the value stored to 'map' is used in the enclosing expression, the value is never actually read from 'map'
# 1083|   	resolve_vex_pp(ild, p2 & 0x03);
# 1084|   
# 1085|-> 	ild->map = map = p1 & 0x07;
# 1086|   
# 1087|   	/* Eat the EVEX. */

Error: CPPCHECK_WARNING: [#def12]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_image_section_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_image_section_cache.c: scope_hint: In function ‘pt_iscache_notify_map’
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_image_section_cache.c:1041:24: warning[-Wanalyzer-malloc-leak]: leak of ‘tail’
cc1: note: unrecognized command-line option ‘-Wno-debug-disables-optimization’ may have been intended to silence earlier diagnostics
# 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: [#def15]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_insn_decoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_packet_decoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_query_decoder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_section_file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_sync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libipt-2.1.1-build/libipt-2.1.1/libipt/src/pt_time.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-block_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def22]
libipt-2.1.1-build/libipt-2.1.1/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): [#def23]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-block_decoder.c:284: error[uninitvar]: Uninitialized variable: &decoder
#  282|   	ptu_int_eq(errcode, -pte_invalid);
#  283|   
#  284|-> 	errcode = pt_blk_asid(&decoder, NULL, sizeof(asid));
#  285|   	ptu_int_eq(errcode, -pte_invalid);
#  286|   

Error: CPPCHECK_WARNING (CWE-457): [#def24]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-block_decoder.c:338: error[uninitvar]: Uninitialized variables: &(tfix).decoder, &(tfix).config
#  336|   	ptu_run(suite, sync_backward_null);
#  337|   	ptu_run(suite, sync_set_null);
#  338|-> 	ptu_run_f(suite, sync_set_eos, tfix);
#  339|   
#  340|   	ptu_run(suite, get_offset_null);

Error: CPPCHECK_WARNING: [#def25]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def26]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-config.c:479: error[uninitvar]: Uninitialized variable: &cpu
#  477|   	ptu_int_eq(errcode, -pte_invalid);
#  478|   
#  479|-> 	errcode = pt_cpu_errata(NULL, &cpu);
#  480|   	ptu_int_eq(errcode, -pte_invalid);
#  481|   

Error: CPPCHECK_WARNING (CWE-457): [#def27]
libipt-2.1.1-build/libipt-2.1.1/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: [#def28]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-event_queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def29]
libipt-2.1.1-build/libipt-2.1.1/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: [#def30]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def31]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-image.c:2215: error[uninitvar]: Uninitialized variables: &(dfix).image, &(dfix).nsecs, &(dfix).copy, &(dfix).iscache
# 2213|   
# 2214|   	ptu_run(suite, init);
# 2215|-> 	ptu_run_f(suite, init_name, dfix);
# 2216|   	ptu_run(suite, init_null);
# 2217|   

Error: CPPCHECK_WARNING: [#def32]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-image_section_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def33]
libipt-2.1.1-build/libipt-2.1.1/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): [#def34]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-insn_decoder.c:284: error[uninitvar]: Uninitialized variable: &decoder
#  282|   	ptu_int_eq(errcode, -pte_invalid);
#  283|   
#  284|-> 	errcode = pt_insn_asid(&decoder, NULL, sizeof(asid));
#  285|   	ptu_int_eq(errcode, -pte_invalid);
#  286|   

Error: CPPCHECK_WARNING (CWE-457): [#def35]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-insn_decoder.c:338: error[uninitvar]: Uninitialized variables: &(tfix).decoder, &(tfix).config
#  336|   	ptu_run(suite, sync_backward_null);
#  337|   	ptu_run(suite, sync_set_null);
#  338|-> 	ptu_run_f(suite, sync_set_eos, tfix);
#  339|   
#  340|   	ptu_run(suite, get_offset_null);

Error: CPPCHECK_WARNING: [#def36]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-msec_cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def37]
libipt-2.1.1-build/libipt-2.1.1/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): [#def38]
libipt-2.1.1-build/libipt-2.1.1/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): [#def39]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-packet.c:580: error[uninitvar]: Uninitialized variables: &(pfix).config, &(pfix).encoder, &(pfix).decoder, &(pfix).unknown
#  578|   	suite = ptunit_mk_suite(argc, argv);
#  579|   
#  580|-> 	ptu_run_fp(suite, no_payload, pfix, ppt_pad);
#  581|   	ptu_run_fp(suite, no_payload, pfix, ppt_psb);
#  582|   	ptu_run_fp(suite, no_payload, pfix, ppt_ovf);

Error: CPPCHECK_WARNING (CWE-457): [#def40]
libipt-2.1.1-build/libipt-2.1.1/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: [#def41]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-query.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-section.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def43]
libipt-2.1.1-build/libipt-2.1.1/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): [#def44]
libipt-2.1.1-build/libipt-2.1.1/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: [#def45]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-time.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def46]
libipt-2.1.1-build/libipt-2.1.1/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: CLANG_WARNING: [#def47]
libipt-2.1.1-build/libipt-2.1.1/libipt/test/src/ptunit-image_section_cache.c:34: included_from: Included from here.
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit_threads.h:104:4: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  102|   
#  103|   		for (thrd = 0; thrd < tfix->nthreads; ++thrd)
#  104|-> 			ptu_int_eq(errcode[thrd], thrd_success);
#  105|   	}
#  106|   #endif /* defined(FEATURE_THREADS) */

Error: CPPCHECK_WARNING: [#def48]
libipt-2.1.1-build/libipt-2.1.1/ptunit/src/posix/ptunit_mkfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c: scope_hint: In function ‘init_fixture’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:278:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pfix.pointer’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:30: included_from: Included from here.
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:449:23: note: in expansion of macro ‘ptunit_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:444:9: note: in expansion of macro ‘ptu_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:424:26: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:118:9: note: in expansion of macro ‘ptu_ptr_eq’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:424:26: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:118:9: note: in expansion of macro ‘ptu_ptr_eq’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:449:23: note: in expansion of macro ‘ptunit_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:444:9: note: in expansion of macro ‘ptu_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:449:23: note: in expansion of macro ‘ptunit_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:445:9: note: in expansion of macro ‘ptu_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:430:21: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:142:9: note: in expansion of macro ‘ptu_null’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:430:21: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:142:9: note: in expansion of macro ‘ptu_null’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:449:23: note: in expansion of macro ‘ptunit_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:445:9: note: in expansion of macro ‘ptu_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:449:23: note: in expansion of macro ‘ptunit_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:446:9: note: in expansion of macro ‘ptu_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:431:20: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:166:9: note: in expansion of macro ‘ptu_ptr’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:431:20: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:166:9: note: in expansion of macro ‘ptu_ptr’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:449:23: note: in expansion of macro ‘ptunit_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:446:9: note: in expansion of macro ‘ptu_run’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:382:17: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:451:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:359:32: note: in definition of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:451:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:452:30: note: in expansion of macro ‘ptunit_run_p’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:458:9: note: in expansion of macro ‘ptu_run_p’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:410:26: note: in expansion of macro ‘ptunit_int_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:264:9: note: in expansion of macro ‘ptu_int_eq’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:424:26: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:265:9: note: in expansion of macro ‘ptu_ptr_eq’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:424:26: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:265:9: note: in expansion of macro ‘ptu_ptr_eq’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:267:16: note: in expansion of macro ‘ptu_passed’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:452:30: note: in expansion of macro ‘ptunit_run_p’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:458:9: note: in expansion of macro ‘ptu_run_p’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:382:17: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:459:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:359:32: note: in definition of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:459:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:359:32: note: in definition of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:459:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:359:32: note: in definition of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:459:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:382:17: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:459:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:455:28: note: in expansion of macro ‘ptunit_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:459:9: note: in expansion of macro ‘ptu_run_f’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:397:17: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:458:34: note: in expansion of macro ‘ptunit_run_fp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:460:9: note: in expansion of macro ‘ptu_run_fp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:359:32: note: in definition of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:458:34: note: in expansion of macro ‘ptunit_run_fp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:460:9: note: in expansion of macro ‘ptu_run_fp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:359:32: note: in definition of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:458:34: note: in expansion of macro ‘ptunit_run_fp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:460:9: note: in expansion of macro ‘ptu_run_fp’
#  276|   static struct ptunit_result init_fixture(struct fixture *pfix)
#  277|   {
#  278|-> 	pfix->pointer = malloc(42);
#  279|   
#  280|   	return ptu_passed();

Error: CLANG_WARNING: [#def51]
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:280:9: warning[unix.Malloc]: Potential memory leak
#  278|   	pfix->pointer = malloc(42);
#  279|   
#  280|-> 	return ptu_passed();
#  281|   }
#  282|   

Error: CPPCHECK_WARNING (CWE-476): [#def52]
libipt-2.1.1-build/libipt-2.1.1/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: CLANG_WARNING: [#def53]
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:334:27: warning[core.NullDereference]: Dereference of null pointer
#  332|   	(void) pfix;
#  333|   
#  334|-> 	*((volatile int *) NULL) = 0;
#  335|   
#  336|   	return ptu_skipped();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:334:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c: scope_hint: In function ‘frun_init_fail’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:359:9: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/include/ptunit.h:430:21: note: in expansion of macro ‘ptunit_ptr_cmp’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:325:9: note: in expansion of macro ‘ptu_null’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:359:9: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:359:9: note: in expansion of macro ‘ptunit_frun’
libipt-2.1.1-build/libipt-2.1.1/ptunit/test/src/ptunit-selftest.c:359:9: note: in expansion of macro ‘ptunit_frun’
#  332|   	(void) pfix;
#  333|   
#  334|-> 	*((volatile int *) NULL) = 0;
#  335|   
#  336|   	return ptu_skipped();

Error: CPPCHECK_WARNING (CWE-457): [#def55]
libipt-2.1.1-build/libipt-2.1.1/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-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-43.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibipt-2.1.1-1.fc41
store-results-to/tmp/tmp7jdmi2hr/libipt-2.1.1-1.fc41.tar.xz
time-created2024-07-03 14:46:14
time-finished2024-07-03 14:47:49
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp7jdmi2hr/libipt-2.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp7jdmi2hr/libipt-2.1.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9