Task #73485 - added.err

back to task #73485
download
Error: GCC_ANALYZER_WARNING (CWE-457):
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):
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;