Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:88: error[uninitvar]: Uninitialized variable: entry->fd
#   86|   
#   87|   	cds_hlist_for_each_entry(entry, node, head, hlist) {
#   88|-> 		if (entry->fd == fd)
#   89|   			return entry;
#   90|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def2]
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:140: error[uninitvar]: Uninitialized variable: entry.fd
#  138|   		cds_hlist_for_each_entry_safe(entry, node, tmp, head, hlist) {
#  139|   			cds_hlist_del(&entry->hlist);
#  140|-> 			free(entry);
#  141|   		}
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:312:13: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(24, 1)'
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:294:5: enter_function: entry to 'lttng_ust_add_fd_to_tracker'
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:298:12: branch_false: following 'false' branch...
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:305:9: branch_false: ...to here
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:306:9: branch_true: following 'true' branch...
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:308:17: call_function: inlined call to 'zmalloc' from 'lttng_ust_add_fd_to_tracker'
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:309:12: branch_false: following 'false' branch...
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:312:13: branch_false: ...to here
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:321:9: branch_true: following 'true' branch...
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:323:9: branch_true: ...to here
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:325:9: call_function: calling 'fd_tracker_add' from 'lttng_ust_add_fd_to_tracker'
#  310|   		return -ENOMEM;
#  311|   
#  312|-> 	if (IS_FD_STD(fd)) {
#  313|   		fd = dup_std_fd(fd);
#  314|   		if (fd < 0) {

Error: CPPCHECK_WARNING (CWE-457): [#def4]
lttng-ust-2.15.1/src/lib/lttng-ust-common/fd-tracker.c:552: error[uninitvar]: Uninitialized variable: entry->fd
#  550|   		cds_hlist_for_each_entry(entry, node, head, hlist) {
#  551|   			assert(i < fd_tracker_current_count);
#  552|-> 			array[i++] = entry->fd;
#  553|   		}
#  554|   	}

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-164.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelttng-ust-2.14.0-5.fc44
diffbase-store-results-to/tmp/tmpca4zw4iz/lttng-ust-2.14.0-5.fc44.tar.xz
diffbase-time-created2026-06-01 15:00:39
diffbase-time-finished2026-06-01 15:03:44
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpca4zw4iz/lttng-ust-2.14.0-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpca4zw4iz/lttng-ust-2.14.0-5.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-164.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-namelttng-ust-2.15.1-1.fc45
store-results-to/tmp/tmpjse_6j9o/lttng-ust-2.15.1-1.fc45.tar.xz
time-created2026-06-01 15:04:05
time-finished2026-06-01 15:06:48
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpjse_6j9o/lttng-ust-2.15.1-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjse_6j9o/lttng-ust-2.15.1-1.fc45.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9