Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask'
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c:2645:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c:37: 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-476): [#def2]
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c:2664:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
drgn-0.0.32+249.g462de314/libdrgn/elf_file.h:24: included_from: Included from here.
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c:27: included_from: Included from here.
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask'
drgn-0.0.32+249.g462de314/libdrgn/array.h:14: included_from: Included from here.
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c:21: included_from: Included from here.
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c:8: included_from: Included from here.
# 2662|   
# 2663|   		for (size_t i = 0; i < nr_words; i++) {
# 2664|-> 			uint32_t value = bswap ? bswap_32(orig[i]) : orig[i];
# 2665|   			if (i & 1)
# 2666|   				bitmap[i >> 1] |= (uint64_t) value << 32;

Error: COMPILER_WARNING (CWE-457): [#def3]
drgn-0.0.32+249.g462de314/libdrgn/linux_kernel.c: scope_hint: In function 'drgn_program_is_irq_regs'
drgn-0.0.32+249.g462de314/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+249.g462de314/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-180.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+244.g42eba6d2-1.20251009215705606728.main.244.g42eba6d2
diffbase-store-results-to/tmp/tmp38ljjd_u/python-drgn-0.0.32+244.g42eba6d2-1.20251009215705606728.main.244.g42eba6d2.tar.xz
diffbase-time-created2025-10-09 22:09:36
diffbase-time-finished2025-10-09 22:12:22
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp38ljjd_u/python-drgn-0.0.32+244.g42eba6d2-1.20251009215705606728.main.244.g42eba6d2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp38ljjd_u/python-drgn-0.0.32+244.g42eba6d2-1.20251009215705606728.main.244.g42eba6d2.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-180.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+249.g462de314-1.20251009220316890483.pr547.249.g462de314
store-results-to/tmp/tmpbs5gqt9l/python-drgn-0.0.32+249.g462de314-1.20251009220316890483.pr547.249.g462de314.tar.xz
time-created2025-10-09 22:12:41
time-finished2025-10-09 22:14:54
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpbs5gqt9l/python-drgn-0.0.32+249.g462de314-1.20251009220316890483.pr547.249.g462de314.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpbs5gqt9l/python-drgn-0.0.32+249.g462de314-1.20251009220316890483.pr547.249.g462de314.src.rpm'
tool-versioncsmock-3.8.2.20251001.130531.g1d8e3a4-1.el9