Task #13137 - python-drgn-0.0.27+67.gad9b2415-1.20240918194410627478.main.67.gad9b2415/scan-results.err
back to task #13137download
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_aarch64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_aarch64'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_aarch64.c:358:14: warning[-Wanalyzer-malloc-leak]: leak of 'it'
# 356| it->pa_high_mask = page_shift < 16 ? 0x0 : 0xf000;
# 357|
# 358|-> *ret = &it->it;
# 359| return NULL;
# 360| }
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_ppc64.c:380:14: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(24)'
# 378| }
# 379|
# 380|-> *ret = &no_cleanup_ptr(it)->it;
# 381| return NULL;
# 382| }
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_s390x.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_s390x'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_s390x.c:282:14: warning[-Wanalyzer-malloc-leak]: leak of 'it'
# 280| return &drgn_enomem;
# 281|
# 282|-> *ret = &it->it;
# 283| return NULL;
# 284| }
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_x86_64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_x86_64'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/arch_x86_64.c:563:14: warning[-Wanalyzer-malloc-leak]: leak of 'it'
# 561| if (!it)
# 562| return &drgn_enomem;
# 563|-> *ret = &it->it;
# 564| return NULL;
# 565| }
Error: GCC_ANALYZER_WARNING (CWE-590):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/cfi.h:182:17: warning[-Wanalyzer-free-of-non-heap]: 'free' of '&drgn_empty_cfi_row_impl' which points to memory not on the heap
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/cfi.h: scope_hint: In function 'drgn_get_stack_trace.part.0'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:35: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/dwarf_info.h:25: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.h:22: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/stack_trace.c:12: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/stack_trace.c: scope_hint: In function 'drgn_get_stack_trace.part.0'
# 180| {
# 181| if (row->allocated_rules > 0)
# 182|-> free(row);
# 183| }
# 184|
Error: GCC_ANALYZER_WARNING (CWE-1341):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_report_elf'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c:473:17: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
# 471| drgn_error_libelf());
# 472| elf_end(elf);
# 473|-> close(fd);
# 474| return err;
# 475| } else if (build_id_len == 0) {
Error: GCC_ANALYZER_WARNING (CWE-457):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c: scope_hint: In function 'userspace_report_elf_file'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c:1314:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'elf'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c:10: included_from: Included from here.
# 1312|
# 1313| GElf_Ehdr ehdr_mem, *ehdr;
# 1314|-> ehdr = gelf_getehdr(elf, &ehdr_mem);
# 1315| if (!ehdr) {
# 1316| err = drgn_error_libelf();
Error: GCC_ANALYZER_WARNING (CWE-1341):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c:1335:9: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
# 1333| err_close:
# 1334| elf_end(elf);
# 1335|-> close(fd);
# 1336| err:
# 1337| return drgn_debug_info_report_error(load, path, NULL, err);
Error: GCC_ANALYZER_WARNING (CWE-457):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_find_files'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.c:1755:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'debug_file_bias'
# 1753| debug_file_path = loaded_file_path;
# 1754|
# 1755|-> module->debug_file_bias = debug_file_bias;
# 1756| err = drgn_elf_file_create(module, debug_file_path, dwarf_getelf(dwarf),
# 1757| &module->debug_file);
Error: GCC_ANALYZER_WARNING (CWE-471):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:817:47: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1318:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1323:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1301:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1313:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1255:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1266:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1270:25: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:464:22: note: declared here
# 815| { \
# 816| if (chunk->outbound_overflow_count != UINT8_MAX) \
# 817|-> chunk->outbound_overflow_count++; \
# 818| } \
# 819| \
Error: GCC_ANALYZER_WARNING (CWE-471):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1278:34: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1318:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1323:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1301:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1313:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1255:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1266:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:30: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:763:23: note: in expansion of macro 'ctz'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:464:22: note: declared here
# 1276| hosted_overflow_count_inc);\
# 1277| } \
# 1278|-> chunk->tags[first_empty] = hp.second; \
# 1279| if (table##_vector_policy) { \
# 1280| *table##_vector_item(&chunk->items[first_empty]) = \
Error: GCC_ANALYZER_WARNING (CWE-471):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1285:17: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1318:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1323:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1301:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1313:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1255:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1266:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:763:23: note: in expansion of macro 'ctz'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:464:22: note: declared here
# 1283| sizeof(*entry)); \
# 1284| } else { \
# 1285|-> memcpy(&chunk->items[first_empty], entry, sizeof(*entry)); \
# 1286| } \
# 1287| table##_adjust_size_and_first_after_insert(table, chunk, first_empty); \
Error: CPPCHECK_WARNING (CWE-476):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/memory_reader.c:34: error[ctunullpointer]: Null pointer dereference: entry
# 32| drgn_memory_segment_to_key(const struct drgn_memory_segment *entry)
# 33| {
# 34|-> return entry->min_address;
# 35| }
# 36|
Error: CPPCHECK_WARNING (CWE-476):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/memory_reader.c:34: warning[nullPointer]: Possible null pointer dereference: entry
# 32| drgn_memory_segment_to_key(const struct drgn_memory_segment *entry)
# 33| {
# 34|-> return entry->min_address;
# 35| }
# 36|
Error: GCC_ANALYZER_WARNING (CWE-775):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:51:41: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/sys/devices/system/cpu/online", "r")'
# 49| _cleanup_(int_set_deinit) struct int_set cpus_seen = HASH_TABLE_INIT;
# 50|
# 51|-> _cleanup_fclose_ FILE *online = fopen("/sys/devices/system/cpu/online", "r");
# 52| if (!online)
# 53| return 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:51:41: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/sys/devices/system/cpu/online", "r")'
# 49| _cleanup_(int_set_deinit) struct int_set cpus_seen = HASH_TABLE_INIT;
# 50|
# 51|-> _cleanup_fclose_ FILE *online = fopen("/sys/devices/system/cpu/online", "r");
# 52| if (!online)
# 53| return 0;
Error: GCC_ANALYZER_WARNING (CWE-775):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:64:51: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&siblings_path, "r")'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
# 62| snprintf(siblings_path, sizeof(siblings_path), SIBLINGS_FORMAT,
# 63| cpu);
# 64|-> _cleanup_fclose_ FILE *siblings = fopen(siblings_path, "r");
# 65| if (!siblings)
# 66| continue;
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:64:51: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&siblings_path, "r")'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
# 62| snprintf(siblings_path, sizeof(siblings_path), SIBLINGS_FORMAT,
# 63| cpu);
# 64|-> _cleanup_fclose_ FILE *siblings = fopen(siblings_path, "r");
# 65| if (!siblings)
# 66| continue;
Error: GCC_ANALYZER_WARNING (CWE-457):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c:190:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'address_mask'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c:33: included_from: Included from here.
# 188| if (err)
# 189| return err;
# 190|-> if (size == 0 || address > address_mask)
# 191| return NULL;
# 192| uint64_t max_address = address + min(size - 1, address_mask - address);
Error: GCC_ANALYZER_WARNING (CWE-457):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c: scope_hint: In function 'drgn_program_set_core_dump_fd_internal'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c:328:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_kdump'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c:43:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c: scope_hint: In function 'drgn_program_set_core_dump_fd_internal'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c:10: included_from: Included from here.
# 326| if (err)
# 327| goto out_fd;
# 328|-> if (is_kdump) {
# 329| err = drgn_program_set_kdump(prog);
# 330| if (err)
Error: GCC_ANALYZER_WARNING (CWE-457):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.c:1759:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
# 1757| if (err)
# 1758| return err;
# 1759|-> if (is_64_bit) {
# 1760| uint64_t tmp;
# 1761| err = drgn_program_read_memory(prog, &tmp, address, sizeof(tmp),
Error: GCC_ANALYZER_WARNING (CWE-476):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1191:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/Python.h:36: included_from: Included from here.
# 1189| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1190| return NULL;
# 1191|-> pcs[i] = pc.uvalue;
# 1192| }
# 1193|
Error: GCC_ANALYZER_WARNING (CWE-476):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1191:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc_array((size_t)<unknown>, 8)'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
# 1189| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1190| return NULL;
# 1191|-> pcs[i] = pc.uvalue;
# 1192| }
# 1193|
Error: GCC_ANALYZER_WARNING (CWE-457):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/serialize.c: scope_hint: In function 'serialize_bits'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/serialize.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*(unsigned char (*)[9])(&tmp[1])'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/serialize.c:4: included_from: Included from here.
# 135| } else {
# 136| p[0] = (p[0] & first_mask) | tmp[0];
# 137|-> memcpy(p + 1, tmp + 1, size - 2);
# 138| p[size - 1] = (p[size - 1] & last_mask) | tmp[size - 1];
# 139| }
Error: GCC_ANALYZER_WARNING (CWE-401):
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/hash_table.h:35: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/drgnpy.h:18: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:4: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/util.h: scope_hint: In function 'Program_stack_trace_from_pcs'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/util.h:89:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array((size_t)<unknown>, 8)'
/usr/include/python3.13/Python.h:68: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/drgnpy.h:10: included_from: Included from here.
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/listobject.h:48: included_from: Included from here.
/usr/include/python3.13/Python.h:85: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/Python.h:19: included_from: Included from here.
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1184:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/type.h:15: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/object.h:20: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/debug_info.h:24: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/program.h:21: included_from: Included from here.
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/drgnpy.h:20: included_from: Included from here.
/usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/cpython/tupleobject.h:17:13: note: in expansion of macro 'PyTuple_Check'
/usr/include/python3.13/cpython/tupleobject.h:27:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.13/abstract.h:736:53: note: in expansion of macro 'PyTuple_GET_ITEM'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/python/program.c:1189:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
python-drgn-0.0.27+67.gad9b2415-build/drgn-0.0.27+67.gad9b2415/libdrgn/util.h: scope_hint: In function 'Program_stack_trace_from_pcs'
# 87| size_t bytes;
# 88|
# 89|-> if (__builtin_mul_overflow(nmemb, size, &bytes)) {
# 90| errno = ENOMEM;
# 91| return NULL;