Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
drgn-0.0.32+228.g6e58a4dd/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask'
drgn-0.0.32+228.g6e58a4dd/libdrgn/linux_kernel.c:2592:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
drgn-0.0.32+228.g6e58a4dd/libdrgn/linux_kernel.c:37: included_from: Included from here.
# 2590|   		return &drgn_enomem;
# 2591|   
# 2592|-> 	if (is_64_bit) {
# 2593|   		err = drgn_program_read_memory(prog, bitmap, bitmap_addr, size * 8, false);
# 2594|   		if (err)

Error: COMPILER_WARNING (CWE-457): [#def2]
drgn-0.0.32+228.g6e58a4dd/libdrgn/linux_kernel.c: scope_hint: In function 'drgn_program_is_irq_regs'
drgn-0.0.32+228.g6e58a4dd/libdrgn/linux_kernel.c:2658:61: warning[-Wmaybe-uninitialized]: 'nr_cpus' may be used uninitialized
# 2658 |                 for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) {
#      |                                             ~~~~~~~~~~~~~~~~^~~~~~~~~
drgn-0.0.32+228.g6e58a4dd/libdrgn/linux_kernel.c:2650:24: note: 'nr_cpus' was declared here
# 2650 |                 size_t nr_cpus;
#      |                        ^~~~~~~
# 2656|   		VECTOR(uint64_vector, addresses);
# 2657|   		uint64_t regs_ptr;
# 2658|-> 		for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) {
# 2659|   			uint64_t word = cpumask[word_index];
# 2660|   			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-212.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+224.g1b670e5f-1.20250930212343258422.main.224.g1b670e5f
diffbase-store-results-to/tmp/tmpo7g45123/python-drgn-0.0.32+224.g1b670e5f-1.20250930212343258422.main.224.g1b670e5f.tar.xz
diffbase-time-created2025-09-30 22:22:39
diffbase-time-finished2025-09-30 22:25:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,gcc,unicontrol,clippy' '-o' '/tmp/tmpo7g45123/python-drgn-0.0.32+224.g1b670e5f-1.20250930212343258422.main.224.g1b670e5f.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpo7g45123/python-drgn-0.0.32+224.g1b670e5f-1.20250930212343258422.main.224.g1b670e5f.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-212.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+228.g6e58a4dd-1.20250930220610147386.pr547.228.g6e58a4dd
store-results-to/tmp/tmpw6um8jl9/python-drgn-0.0.32+228.g6e58a4dd-1.20250930220610147386.pr547.228.g6e58a4dd.tar.xz
time-created2025-09-30 22:25:43
time-finished2025-09-30 22:27:48
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,gcc,unicontrol,clippy' '-o' '/tmp/tmpw6um8jl9/python-drgn-0.0.32+228.g6e58a4dd-1.20250930220610147386.pr547.228.g6e58a4dd.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpw6um8jl9/python-drgn-0.0.32+228.g6e58a4dd-1.20250930220610147386.pr547.228.g6e58a4dd.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9