Task #99721 - python-drgn-0.0.33+247.g99b98ae1-1.20260219081825874179.main.247.g99b98ae1/scan-results.err
back to task #99721download
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_aarch64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_aarch64'
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_aarch64.c:529:1: warning[-Wanalyzer-malloc-leak]: leak of 'it'
drgn-0.0.33+247.g99b98ae1/libdrgn/register_state.h:15: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_aarch64.c:16: included_from: Included from here.
# 527| *ret = &it->it;
# 528| return NULL;
# 529|-> }
# 530|
# 531| static void linux_kernel_pgtable_iterator_destroy_aarch64(struct pgtable_iterator *_it)
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_arm.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_arm'
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_arm.c:193:1: warning[-Wanalyzer-malloc-leak]: leak of 'it'
# 191| *ret = &it->it;
# 192| return NULL;
# 193|-> }
# 194|
# 195| static void linux_kernel_pgtable_iterator_destroy_arm(struct pgtable_iterator *it)
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64'
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_ppc64.c:358:16: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(24)'
# 356| "virtual address translation is not available for BOOK3E CPU family");
# 357| }
# 358|-> if (err->code != DRGN_ERROR_LOOKUP)
# 359| return err;
# 360| drgn_error_destroy(err);
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_s390x.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_s390x'
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_s390x.c:284:1: warning[-Wanalyzer-malloc-leak]: leak of 'it'
# 282| *ret = &it->it;
# 283| return NULL;
# 284|-> }
# 285|
# 286| static void
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_x86_64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_x86_64'
drgn-0.0.33+247.g99b98ae1/libdrgn/arch_x86_64.c:584:1: warning[-Wanalyzer-malloc-leak]: leak of 'it'
# 582| *ret = &it->it;
# 583| return NULL;
# 584|-> }
# 585|
# 586| static void linux_kernel_pgtable_iterator_destroy_x86_64(struct pgtable_iterator *_it)
Error: GCC_ANALYZER_WARNING (CWE-590):
drgn-0.0.33+247.g99b98ae1/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
drgn-0.0.33+247.g99b98ae1/libdrgn/cfi.h: 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-415):
drgn-0.0.33+247.g99b98ae1/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-double-free]: double-'free' of 'pc_offsets'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c: scope_hint: In function 'drgn_module_parse_orc'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_search_tree.h:18: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.h:21: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:13: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.h:26: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.h:25: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:603:28: note: in definition of macro 'VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c: scope_hint: In function 'drgn_module_parse_orc'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c: scope_hint: In function 'drgn_module_parse_orc'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c: scope_hint: In function 'drgn_module_parse_orc'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c:22:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/orc_info.c: scope_hint: In function 'drgn_module_parse_orc'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:14: included_from: Included from here.
# 23| static inline void freep(void *p)
# 24| {
# 25|-> free(*(void **)p);
# 26| }
# 27|
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:40: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_file_internal'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:1729:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1729 | drgn_error_log_debug(prog, err, "");
# | ^~
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:82:66: note: in definition of macro 'drgn_error_log_debug'
# 82 | #define drgn_error_log_debug(...) drgn_error_log(DRGN_LOG_DEBUG, __VA_ARGS__)
# | ^~~~~~~~~~~
# 1727| if (err) {
# 1728| if (!drgn_error_is_fatal(err)) {
# 1729|-> drgn_error_log_debug(prog, err, "");
# 1730| drgn_error_destroy(err);
# 1731| err = NULL;
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_vdso_in_core'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:1832:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1832 | drgn_error_log_debug(prog, err, "");
# | ^~
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:82:66: note: in definition of macro 'drgn_error_log_debug'
# 82 | #define drgn_error_log_debug(...) drgn_error_log(DRGN_LOG_DEBUG, __VA_ARGS__)
# | ^~~~~~~~~~~
# 1830| if (err) {
# 1831| if (!drgn_error_is_fatal(err)) {
# 1832|-> drgn_error_log_debug(prog, err, "");
# 1833| drgn_error_destroy(err);
# 1834| err = NULL;
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_files_by_gnu_debuglink'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:2286:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2286 | drgn_error_log_debug(prog, err, "");
# | ^~
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:82:66: note: in definition of macro 'drgn_error_log_debug'
# 82 | #define drgn_error_log_debug(...) drgn_error_log(DRGN_LOG_DEBUG, __VA_ARGS__)
# | ^~~~~~~~~~~
# 2284| || (err = binary_buffer_next_u32(&buffer.bb, &crc))) {
# 2285| if (!drgn_error_is_fatal(err)) {
# 2286|-> drgn_error_log_debug(prog, err, "");
# 2287| drgn_error_destroy(err);
# 2288| err = NULL;
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:378:61: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.h:26: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.h:25: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:19: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0'
# 376| {
# 377| binary_buffer_init(&buffer->bb, cu->buf, cu->len,
# 378|-> drgn_elf_file_is_little_endian(cu->file),
# 379| drgn_dwarf_index_cu_buffer_error);
# 380| buffer->cu = cu;
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1153:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'form'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:16: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/array.h:14: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:15: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
# 1151| if ((err = binary_buffer_next_uleb128(bb, &form)))
# 1152| return err;
# 1153|-> if (form == DW_FORM_implicit_const) {
# 1154| return binary_buffer_error(bb,
# 1155| "DW_FORM_implicit_const in DW_FORM_indirect");
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1559:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'code'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
# 1557| if ((err = binary_buffer_next_uleb128(&buffer->bb, &code)))
# 1558| return err;
# 1559|-> if (code == 0) {
# 1560| if (buffer->depth > 1) {
# 1561| buffer->depth--;
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1644:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
# 1642| return err;
# 1643| sibling:
# 1644|-> if (tmp > cu->len) {
# 1645| return binary_buffer_error(&buffer->bb,
# 1646| "DW_AT_sibling is out of bounds");
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1697:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
# 1695| return err;
# 1696| name_strx:
# 1697|-> if ((err = read_strx(buffer, tmp, &name)))
# 1698| return err;
# 1699| __builtin_prefetch(name);
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1751:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
# 1749| return err;
# 1750| specification:
# 1751|-> if (tmp >= cu->len) {
# 1752| return binary_buffer_error(&buffer->bb,
# 1753| "reference is out of bounds");
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:2167:25: warning[-Wdeprecated-openmp]: 'master' construct deprecated since OpenMP 5.1, use 'masked'
# 2165| // units are placed at the end and excluded from new_cus_size so
# 2166| // that they are not indexed.
# 2167|-> #pragma omp master
# 2168| {
# 2169| if (!err) {
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:2220:25: warning[-Wdeprecated-openmp]: 'master' construct deprecated since OpenMP 5.1, use 'masked'
# 2218| // Update the CU lookup table. This can be done by one thread in
# 2219| // parallel with reading CUs.
# 2220|-> #pragma omp master
# 2221| if (drgn_dwarf_index_cu_vector_size(&dbinfo->dwarf.index_cus)
# 2222| > dbinfo->dwarf.global.cus_indexed) {
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:2314:25: warning[-Wdeprecated-openmp]: 'master' construct deprecated since OpenMP 5.1, use 'masked'
# 2312| // Merge the per-thread specification maps into dbinfo (and free
# 2313| // them).
# 2314|-> #pragma omp master
# 2315| {
# 2316| for (int i = 0; i < drgn_num_threads - 1; i++) {
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_handle_unknown_dwarf_opcode'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:3838:59: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 3838 | drgn_error_log(log_level, ctx->prog, err, "");
# | ^~
# 3836| : "",
# 3837| PACKAGE_BUGREPORT);
# 3838|-> drgn_error_log(log_level, ctx->prog, err, "");
# 3839| drgn_error_destroy(err);
# 3840| }
Error: COMPILER_WARNING:
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:25: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_eval_dwarf_expression'
drgn-0.0.33+247.g99b98ae1/libdrgn/dwarf_info.c:4298:70: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 4298 | drgn_error_log_debug(ctx->prog, err, "");
# | ^~
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:82:66: note: in definition of macro 'drgn_error_log_debug'
# 82 | #define drgn_error_log_debug(...) drgn_error_log(DRGN_LOG_DEBUG, __VA_ARGS__)
# | ^~~~~~~~~~~
# 4296| "please upvote https://github.com/osandov/drgn/issues/337",
# 4297| dw_op_str(opcode, op_buf));
# 4298|-> drgn_error_log_debug(ctx->prog, err, "");
# 4299| drgn_error_destroy(err);
# 4300| }
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/elf_file.c: scope_hint: In function 'apply_elf_relas'
drgn-0.0.33+247.g99b98ae1/libdrgn/elf_file.c:358:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sym_value'
drgn-0.0.33+247.g99b98ae1/libdrgn/elf_file.c:4: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/elf_file.c: scope_hint: In function 'apply_elf_relas'
drgn-0.0.33+247.g99b98ae1/libdrgn/elf_file.c: scope_hint: In function 'apply_elf_relas'
# 356| return err;
# 357|
# 358|-> err = apply_elf_reloc(relocating, r_offset, r_type, &r_addend,
# 359| sym_value);
# 360| if (err)
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:791:24: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:40: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5358:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1283:17: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:472:22: note: declared here
# 789| size_t op) \
# 790| { \
# 791|-> chunk->control += op; \
# 792| } \
# 793| \
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:825:47: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5358:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1278:25: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:472:22: note: declared here
# 823| { \
# 824| if (chunk->outbound_overflow_count != UINT8_MAX) \
# 825|-> chunk->outbound_overflow_count++; \
# 826| } \
# 827| \
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1286:34: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5358:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:472:22: note: declared here
# 1284| hosted_overflow_count_inc);\
# 1285| } \
# 1286|-> chunk->tags[first_empty] = hp.second; \
# 1287| if (table##_vector_policy) { \
# 1288| *table##_vector_item(&chunk->items[first_empty]) = \
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1288:66: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5358:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:472:22: note: declared here
# 1286| chunk->tags[first_empty] = hp.second; \
# 1287| if (table##_vector_policy) { \
# 1288|-> *table##_vector_item(&chunk->items[first_empty]) = \
# 1289| table##_size(table); \
# 1290| memcpy(&table->vector[table##_size(table)], entry, \
Error: GCC_ANALYZER_WARNING (CWE-688):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1290:17: warning[-Wanalyzer-null-argument]: use of NULL 'it.<U3b40>.entry' where non-null expected
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5358:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:19: included_from: Included from here.
/usr/include/string.h:47:14: note: argument 1 of 'memcpy' must be non-null
# 1288| *table##_vector_item(&chunk->items[first_empty]) = \
# 1289| table##_size(table); \
# 1290|-> memcpy(&table->vector[table##_size(table)], entry, \
# 1291| sizeof(*entry)); \
# 1292| } else { \
Error: GCC_ANALYZER_WARNING (CWE-688):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1290:17: warning[-Wanalyzer-null-argument]: use of NULL 'it.<U3dc0>.lowest' where non-null expected
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5358:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:577:45: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:718:37: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1213:28: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.c:5008:1: note: in expansion of macro 'DEFINE_HASH_TABLE'
/usr/include/string.h:47:14: note: argument 1 of 'memcpy' must be non-null
# 1288| *table##_vector_item(&chunk->items[first_empty]) = \
# 1289| table##_size(table); \
# 1290|-> memcpy(&table->vector[table##_size(table)], entry, \
# 1291| sizeof(*entry)); \
# 1292| } else { \
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1293:17: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.33+247.g99b98ae1/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:472:22: note: declared here
# 1291| sizeof(*entry)); \
# 1292| } else { \
# 1293|-> memcpy(&chunk->items[first_empty], entry, sizeof(*entry)); \
# 1294| } \
# 1295| table##_adjust_size_and_first_after_insert(table, chunk, first_empty); \
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_expand_symbol'
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c:255:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'len'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:22: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c:7: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:58:41: note: in definition of macro 'unlikely'
# 253|
# 254| const uint8_t *data = (uint8_t *)names_bb->pos;
# 255|-> err = binary_buffer_skip(names_bb, len);
# 256| if (err)
# 257| return err;
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_load_addresses'
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c:518:58: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'stext_idx'
# 516| return err;
# 517| /* Relative base (OR: non-relocatable place-relative) */
# 518|-> uint64_t relbase = relative_base + addr32[stext_idx];
# 519| /* Absolute percpu (disable for place-relative) */
# 520| uint64_t abs_pcpu;
Error: COMPILER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c:518:58: warning[-Wmaybe-uninitialized]: 'stext_idx' may be used uninitialized
# 518 | uint64_t relbase = relative_base + addr32[stext_idx];
# | ^
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_builtin_kallsyms'
drgn-0.0.33+247.g99b98ae1/libdrgn/kallsyms.c:513:25: note: 'stext_idx' was declared here
# 513 | ssize_t stext_idx;
# | ^~~~~~~~~
# 516| return err;
# 517| /* Relative base (OR: non-relocatable place-relative) */
# 518|-> uint64_t relbase = relative_base + addr32[stext_idx];
# 519| /* Absolute percpu (disable for place-relative) */
# 520| uint64_t abs_pcpu;
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c: scope_hint: In function 'depmod_index_find'
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:886:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'prefix_len'
/usr/include/unistd.h:226: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:19: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:22: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:16: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT'
# 884| &prefix_len)))
# 885| return err;
# 886|-> if (strncmp(name, prefix, prefix_len) != 0)
# 887| goto not_found;
# 888| name += prefix_len;
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask'
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:2677:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
drgn-0.0.33+247.g99b98ae1/libdrgn/array.h:14: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:21: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:8: included_from: Included from here.
# 2675|
# 2676| for (size_t i = 0; i < nr_words; i++) {
# 2677|-> uint32_t value = bswap ? bswap_32(orig[i]) : orig[i];
# 2678| if (i & 1)
# 2679| bitmap[i >> 1] |= (uint64_t) value << 32;
Error: COMPILER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c: scope_hint: In function 'drgn_program_is_irq_regs'
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:2724:61: warning[-Wmaybe-uninitialized]: 'nr_cpus' may be used uninitialized
# 2724 | for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) {
# | ~~~~~~~~~~~~~~~~^~~~~~~~~
drgn-0.0.33+247.g99b98ae1/libdrgn/linux_kernel.c:2716:24: note: 'nr_cpus' was declared here
# 2716 | size_t nr_cpus;
# | ^~~~~~~
# 2722| VECTOR(uint64_vector, addresses);
# 2723| uint64_t regs_ptr;
# 2724|-> for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) {
# 2725| uint64_t word = cpumask[word_index];
# 2726| unsigned int i;
Error: COMPILER_WARNING (CWE-704):
drgn-0.0.33+247.g99b98ae1/libdrgn/object.c: scope_hint: In function 'drgn_object_read_c_string'
drgn-0.0.33+247.g99b98ae1/libdrgn/object.c:1081:27: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1081 | p = memchr(buf, 0, len);
# | ^
# 1079| value_size = drgn_object_size(obj);
# 1080| len = min(value_size, (uint64_t)max_size);
# 1081|-> p = memchr(buf, 0, len);
# 1082| if (p)
# 1083| len = p - buf;
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c:209:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'address_mask'
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c:35: included_from: Included from here.
# 207| if (err)
# 208| return err;
# 209|-> if (size == 0 || address > address_mask)
# 210| return NULL;
# 211| uint64_t max_address = address + min(size - 1, address_mask - address);
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word'
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c:1977:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
drgn-0.0.33+247.g99b98ae1/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word'
# 1975| if (err)
# 1976| return err;
# 1977|-> if (is_64_bit) {
# 1978| uint64_t tmp;
# 1979| err = drgn_program_read_memory(prog, &tmp, address, sizeof(tmp),
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1958:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/python3.14/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.14/cpython/abstract.h:92:6: note: in expansion of macro 'PyList_Check'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1951:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.14/cpython/abstract.h:92:24: note: in expansion of macro 'PyList_GET_SIZE'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1951:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.14/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.14/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.14/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.14/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.14/cpython/abstract.h:92:24: note: in expansion of macro 'PyList_GET_SIZE'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1951:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.14/Python.h:37: included_from: Included from here.
/usr/include/python3.14/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.14/cpython/tupleobject.h:19:13: note: in expansion of macro 'PyTuple_Check'
/usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.14/cpython/abstract.h:97:53: note: in expansion of macro 'PyTuple_GET_ITEM'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1956:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.14/cpython/abstract.h:97:53: note: in expansion of macro 'PyTuple_GET_ITEM'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1956:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
# 1956| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1957| return NULL;
# 1958|-> pcs[i] = pc.uvalue;
# 1959| }
# 1960|
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1958:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc_array(size, 8)'
/usr/include/python3.14/Python.h:82: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/python/drgnpy.h:10: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:4: included_from: Included from here.
/usr/include/python3.14/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.14/cpython/abstract.h:92:6: note: in expansion of macro 'PyList_Check'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1951:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.14/listobject.h:48: included_from: Included from here.
/usr/include/python3.14/Python.h:100: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.14/cpython/abstract.h:92:24: note: in expansion of macro 'PyList_GET_SIZE'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1951:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.14/Python.h:20: included_from: Included from here.
/usr/include/python3.14/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.14/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.14/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.14/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.14/cpython/abstract.h:92:24: note: in expansion of macro 'PyList_GET_SIZE'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1951:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.33+247.g99b98ae1/libdrgn/hash_table.h:35: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/python/drgnpy.h:18: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/type.h:15: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/object.h:20: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.h:28: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/program.h:21: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/python/drgnpy.h:20: included_from: Included from here.
/usr/include/python3.14/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.14/cpython/tupleobject.h:19:13: note: in expansion of macro 'PyTuple_Check'
/usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.14/cpython/abstract.h:97:53: note: in expansion of macro 'PyTuple_GET_ITEM'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1956:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.14/cpython/abstract.h:97:53: note: in expansion of macro 'PyTuple_GET_ITEM'
drgn-0.0.33+247.g99b98ae1/libdrgn/python/program.c:1956:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
# 1956| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1957| return NULL;
# 1958|-> pcs[i] = pc.uvalue;
# 1959| }
# 1960|
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.c: scope_hint: In function 'serialize_bits'
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*(unsigned char (*)[9])(&tmp[1])'
drgn-0.0.33+247.g99b98ae1/libdrgn/util.h:13: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h:21: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.c:7: 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:
drgn-0.0.33+247.g99b98ae1/libdrgn/register_state.h:23: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:27: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h:72:25: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to 'memcpy'
drgn-0.0.33+247.g99b98ae1/libdrgn/binary_search_tree.h:18: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/debug_info.h:21: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:15: included_from: Included from here.
/usr/include/unistd.h:226: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/cleanup.h:17: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:14: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:1091:9: note: in expansion of macro 'SWITCH_ENUM'
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/serialize.h: scope_hint: In function 'copy_lsbytes_fill'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:11: included_from: Included from here.
/usr/include/string.h:47:14: note: the behavior of 'memcpy' is undefined for overlapping buffers
# 70| if (dst_little_endian) {
# 71| if (src_little_endian) {
# 72|-> memcpy(d, s, size);
# 73| } else {
# 74| for (size_t i = 0; i < size; i++)
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c: scope_hint: In function 'drgn_stack_trace_append_frame'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:53:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array'
drgn-0.0.33+247.g99b98ae1/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array'
# 51| new_capacity = 2 * (*capacity);
# 52| struct drgn_stack_trace *new_trace =
# 53|-> realloc((*trace),
# 54| offsetof(struct drgn_stack_trace,
# 55| frames[new_capacity]));
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.33+247.g99b98ae1/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder'
drgn-0.0.33+247.g99b98ae1/libdrgn/symbol.c:452:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
drgn-0.0.33+247.g99b98ae1/libdrgn/symbol.h:15: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/symbol.c:12: included_from: Included from here.
drgn-0.0.33+247.g99b98ae1/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.33+247.g99b98ae1/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
# 450| // static lifetimes helps avoid unnecessary copying.
# 451| for (size_t i = 0; i < num_syms; i++) {
# 452|-> size_t string_index = (size_t)symbols[i].name;
# 453| symbols[i].name = &names[string_index];
# 454| symbols[i].name_lifetime = DRGN_LIFETIME_STATIC;