libtraceevent-1.8.4-1.fc42

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/event-parse.c:220: warning[uninitvar]: Uninitialized variable: &key.comm
#  218|   	key.pid = pid;
#  219|   
#  220|-> 	comm = bsearch(&key, tep->cmdlines, tep->cmdline_count,
#  221|   		       sizeof(*tep->cmdlines), cmdline_cmp);
#  222|   

Error: CPPCHECK_WARNING (CWE-457): [#def2]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/event-parse.c:249: warning[uninitvar]: Uninitialized variable: &key.comm
#  247|   	key.pid = pid;
#  248|   
#  249|-> 	comm = bsearch(&key, tep->cmdlines, tep->cmdline_count,
#  250|   		       sizeof(*tep->cmdlines), cmdline_cmp);
#  251|   

Error: CPPCHECK_WARNING (CWE-457): [#def3]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/event-parse.c:277: warning[uninitvar]: Uninitialized variable: &key.comm
#  275|   	key.pid = pid;
#  276|   
#  277|-> 	cmdline = bsearch(&key, tep->cmdlines, tep->cmdline_count,
#  278|   			  sizeof(*tep->cmdlines), cmdline_cmp);
#  279|   	if (cmdline) {

Error: CPPCHECK_WARNING (CWE-457): [#def4]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/event-parse.c:543: warning[uninitvar]: Uninitialized variables: &key.func, &key.mod
#  541|   	key.addr = addr;
#  542|   
#  543|-> 	func = bsearch(&key, tep->func_map, tep->func_count,
#  544|   		       sizeof(*tep->func_map), func_bcmp);
#  545|   

Error: CPPCHECK_WARNING (CWE-457): [#def5]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/event-parse.c:898: warning[uninitvar]: Uninitialized variable: &key.printk
#  896|   	key.addr = addr;
#  897|   
#  898|-> 	printk = bsearch(&key, tep->printk_map, tep->printk_count,
#  899|   			 sizeof(*tep->printk_map), printk_cmp);
#  900|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/kbuffer-parse.c: scope_hint: In function ‘translate_data’
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/kbuffer-parse.c:471:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*kbuf.timestamp’
#  469|   
#  470|   	case KBUFFER_TYPE_TIME_STAMP:
#  471|-> 		msb = kbuf->timestamp & TS_MSB;
#  472|   		/* fall through */
#  473|   	case KBUFFER_TYPE_TIME_EXTEND:

Error: CPPCHECK_WARNING (CWE-457): [#def7]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/parse-filter.c:113: error[uninitvar]: Uninitialized variables: &key.event, &key.filter
#  111|   	key.event_id = id;
#  112|   
#  113|-> 	filter_type = bsearch(&key, filter->event_filters,
#  114|   			      filter->filters,
#  115|   			      sizeof(*filter->event_filters),

Error: CPPCHECK_WARNING (CWE-401): [#def8]
libtraceevent-1.8.4-build/libtraceevent-1.8.4/src/trace-seq.c:90: error[memleak]: Memory leak: buf
#   88|   	if (WARN_ONCE(!buf, "Can't allocate trace_seq buffer memory")) {
#   89|   		s->state = TRACE_SEQ__MEM_ALLOC_FAILED;
#   90|-> 		return;
#   91|   	}
#   92|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-184.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibtraceevent-1.8.4-1.fc42
store-results-to/tmp/tmplin8nwxh/libtraceevent-1.8.4-1.fc42.tar.xz
time-created2024-11-13 01:47:23
time-finished2024-11-13 01:49:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmplin8nwxh/libtraceevent-1.8.4-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmplin8nwxh/libtraceevent-1.8.4-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9