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.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
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
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-192.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/tmph6kddjc3/lttng-ust-2.14.0-5.fc44.tar.xz
diffbase-time-created2026-08-03 18:23:29
diffbase-time-finished2026-08-03 18:26:50
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmph6kddjc3/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/tmph6kddjc3/lttng-ust-2.14.0-5.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-192.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-4.fc45
store-results-to/tmp/tmplk27pzwy/lttng-ust-2.15.1-4.fc45.tar.xz
time-created2026-08-03 18:27:15
time-finished2026-08-03 18:29:53
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmplk27pzwy/lttng-ust-2.15.1-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplk27pzwy/lttng-ust-2.15.1-4.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9