Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask'
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:2645:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:37: included_from: Included from here.
drgn-0.0.32+245.gaef04563/libdrgn/array.h:14: included_from: Included from here.
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:21: included_from: Included from here.
# 2643|   		return &drgn_enomem;
# 2644|   
# 2645|-> 	if (is_64_bit) {
# 2646|   		err = drgn_program_read_memory(prog, bitmap, bitmap_addr, size * 8, false);
# 2647|   		if (err)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:2668:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
drgn-0.0.32+245.gaef04563/libdrgn/elf_file.h:24: included_from: Included from here.
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:27: included_from: Included from here.
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask'
# 2666|   				bitmap[i >> 1] |= (uint64_t) value << 32;
# 2667|   			else
# 2668|-> 				bitmap[i >> 1] |= value;
# 2669|   		}
# 2670|   	}

Error: COMPILER_WARNING (CWE-457): [#def3]
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c: scope_hint: In function 'drgn_program_is_irq_regs'
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:2711:61: warning[-Wmaybe-uninitialized]: 'nr_cpus' may be used uninitialized
# 2711 |                 for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) {
#      |                                             ~~~~~~~~~~~~~~~~^~~~~~~~~
drgn-0.0.32+245.gaef04563/libdrgn/linux_kernel.c:2703:24: note: 'nr_cpus' was declared here
# 2703 |                 size_t nr_cpus;
#      |                        ^~~~~~~
# 2709|   		VECTOR(uint64_vector, addresses);
# 2710|   		uint64_t regs_ptr;
# 2711|-> 		for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) {
# 2712|   			uint64_t word = cpumask[word_index];
# 2713|   			unsigned int i;

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.90.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.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-8.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepython-drgn-0.0.32+241.g4e609f83-1.20251009034432823875.main.241.g4e609f83
diffbase-store-results-to/tmp/tmpmh3j9_z2/python-drgn-0.0.32+241.g4e609f83-1.20251009034432823875.main.241.g4e609f83.tar.xz
diffbase-time-created2025-10-09 21:07:10
diffbase-time-finished2025-10-09 21:10:00
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpmh3j9_z2/python-drgn-0.0.32+241.g4e609f83-1.20251009034432823875.main.241.g4e609f83.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpmh3j9_z2/python-drgn-0.0.32+241.g4e609f83-1.20251009034432823875.main.241.g4e609f83.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20251001.130531.g1d8e3a4-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-8.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepython-drgn-0.0.32+245.gaef04563-1.20251009205532125602.pr547.245.gaef04563
store-results-to/tmp/tmphl_2052g/python-drgn-0.0.32+245.gaef04563-1.20251009205532125602.pr547.245.gaef04563.tar.xz
time-created2025-10-09 21:10:15
time-finished2025-10-09 21:12:29
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmphl_2052g/python-drgn-0.0.32+245.gaef04563-1.20251009205532125602.pr547.245.gaef04563.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmphl_2052g/python-drgn-0.0.32+245.gaef04563-1.20251009205532125602.pr547.245.gaef04563.src.rpm'
tool-versioncsmock-3.8.2.20251001.130531.g1d8e3a4-1.el9