Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_aarch64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_aarch64' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_aarch64.c:529:1: warning[-Wanalyzer-malloc-leak]: leak of 'it' drgn-0.0.33+187.g2c8e1f6d/libdrgn/register_state.h:15: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/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): [#def2] drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_arm.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_arm' drgn-0.0.33+187.g2c8e1f6d/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): [#def3] drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c:347:24: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(24)' # 345| it->pt_levels = pt_levels_radix_4k; # 346| else # 347|-> return drgn_error_create(DRGN_ERROR_OTHER, "unknown page size"); # 348| # 349| DRGN_OBJECT(tmp, prog); Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn_internal.h:21: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c:11: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c:349:21: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(24)' drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2604:28: note: in definition of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2604:28: note: in definition of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2604:28: note: in definition of macro 'DRGN_OBJECT' # 347| return drgn_error_create(DRGN_ERROR_OTHER, "unknown page size"); # 348| # 349|-> DRGN_OBJECT(tmp, prog); # 350| # 351| // Only BOOK3S CPU family is supported, not BOOK3E. Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] drgn-0.0.33+187.g2c8e1f6d/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): [#def6] drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_s390x.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_s390x' drgn-0.0.33+187.g2c8e1f6d/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): [#def7] drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_x86_64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_x86_64' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_x86_64.c:570:1: warning[-Wanalyzer-malloc-leak]: leak of 'it' # 568| *ret = &it->it; # 569| return NULL; # 570|-> } # 571| # 572| static void linux_kernel_pgtable_iterator_destroy_x86_64(struct pgtable_iterator *_it) Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:16: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:357:32: warning[-Wanalyzer-malloc-leak]: leak of 'decls.<U9460>._data' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/array.h:14: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:15: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:350:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:535:42: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:535:42: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 355| if (unlikely(pos >= bb->end)) { # 356| oob: # 357|-> return binary_buffer_error_at(bb, bb->pos, # 358| "expected ULEB128 number"); # 359| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:376:24: warning[-Wanalyzer-malloc-leak]: leak of 'decls.<U9460>._data' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:350:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:535:42: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:535:42: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'binary_buffer_next_uleb128' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 374| if (byte & 0x7e) { # 375| overflow: # 376|-> return binary_buffer_error_at(bb, bb->pos, # 377| "ULEB128 number overflows unsigned 64-bit integer"); # 378| } Error: GCC_ANALYZER_WARNING (CWE-590): [#def10] drgn-0.0.33+187.g2c8e1f6d/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+187.g2c8e1f6d/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-401): [#def11] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-malloc-leak]: leak of 'dst' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c: scope_hint: In function 'drgn_object_read_reference' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:35: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/type.h:19: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.h:20: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:15: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:815:9: note: in expansion of macro 'SWITCH_ENUM' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:13: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c: scope_hint: In function 'drgn_object_read_reference' # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def12] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'addr32' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_load_addresses' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c:10: included_from: Included from here. # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def13] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'cleanup_entries' drgn-0.0.33+187.g2c8e1f6d/libdrgn/orc_info.c: scope_hint: In function 'drgn_module_parse_orc' # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def14] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'current_module' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_proc_kallsyms' # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def15] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'data' drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_symtab.c: scope_hint: In function 'load_gnu_debugdata_file' # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def16] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'entries' drgn-0.0.33+187.g2c8e1f6d/libdrgn/orc_info.c: scope_hint: In function 'copy_builtin_orc_buffers' # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def17] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'it' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64' # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def18] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'path' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'depmod_index_init' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.h:30: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:25: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/string_builder.h:69:31: note: in definition of macro 'STRING_BUILDER' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'depmod_index_init' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:8: included_from: Included from here. # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def19] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:25:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'pc_offsets' drgn-0.0.33+187.g2c8e1f6d/libdrgn/orc_info.c: scope_hint: In function 'copy_builtin_orc_buffers' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_search_tree.h:18: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.h:21: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/orc_info.c:13: included_from: Included from here. # 23| static inline void freep(void *p) # 24| { # 25|-> free(*(void **)p); # 26| } # 27| Error: GCC_ANALYZER_WARNING (CWE-457): [#def20] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:32:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '<unknown>' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_section_addresses_live' # 30| static inline void fclosep(FILE **fp) # 31| { # 32|-> if (*fp) # 33| fclose(*fp); # 34| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def21] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:40:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '<unknown>' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_build_id_live' # 38| static inline void closep(int *fd) # 39| { # 40|-> if (*fd >= 0) # 41| close(*fd); # 42| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def22] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:40:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'fd' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_add_provided_file' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:40: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:5348:9: note: in expansion of macro 'drgn_log_debug' # 38| static inline void closep(int *fd) # 39| { # 40|-> if (*fd >= 0) # 41| close(*fd); # 42| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def23] drgn-0.0.33+187.g2c8e1f6d/libdrgn/cleanup.h:49:17: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_section_addresses_live' # 47| { # 48| if (*dirp) # 49|-> closedir(*dirp); # 50| } # 51| Error: COMPILER_WARNING: [#def24] drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:40: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_file_internal' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:1719:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 1719 | drgn_error_log_debug(prog, err, ""); # | ^~ drgn-0.0.33+187.g2c8e1f6d/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__) # | ^~~~~~~~~~~ # 1717| if (err) { # 1718| if (!drgn_error_is_fatal(err)) { # 1719|-> drgn_error_log_debug(prog, err, ""); # 1720| drgn_error_destroy(err); # 1721| err = NULL; Error: COMPILER_WARNING: [#def25] drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_vdso_in_core' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:1822:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 1822 | drgn_error_log_debug(prog, err, ""); # | ^~ drgn-0.0.33+187.g2c8e1f6d/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__) # | ^~~~~~~~~~~ # 1820| if (err) { # 1821| if (!drgn_error_is_fatal(err)) { # 1822|-> drgn_error_log_debug(prog, err, ""); # 1823| drgn_error_destroy(err); # 1824| err = NULL; Error: COMPILER_WARNING: [#def26] drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_files_by_gnu_debuglink' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:2276:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 2276 | drgn_error_log_debug(prog, err, ""); # | ^~ drgn-0.0.33+187.g2c8e1f6d/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__) # | ^~~~~~~~~~~ # 2274| || (err = binary_buffer_next_u32(&buffer.bb, &crc))) { # 2275| if (!drgn_error_is_fatal(err)) { # 2276|-> drgn_error_log_debug(prog, err, ""); # 2277| drgn_error_destroy(err); # 2278| err = NULL; Error: GCC_ANALYZER_WARNING (CWE-401): [#def27] drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2606:9: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(24)' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c:349:9: note: in expansion of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c:349:9: note: in expansion of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/arch_ppc64.c:349:9: note: in expansion of macro 'DRGN_OBJECT' # 2604| struct drgn_object obj \ # 2605| __attribute__((__cleanup__(drgn_object_deinit))) = \ # 2606|-> drgn_object_initializer(prog) # 2607| struct drgn_object drgn_object_initializer(struct drgn_program *prog); # 2608| Error: GCC_ANALYZER_WARNING (CWE-401): [#def28] drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2606:9: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:822:9: note: in expansion of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:822:9: note: in expansion of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:822:9: note: in expansion of macro 'DRGN_OBJECT' # 2604| struct drgn_object obj \ # 2605| __attribute__((__cleanup__(drgn_object_deinit))) = \ # 2606|-> drgn_object_initializer(prog) # 2607| struct drgn_object drgn_object_initializer(struct drgn_program *prog); # 2608| Error: GCC_ANALYZER_WARNING (CWE-476): [#def29] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:378:61: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_namespace_impl._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/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): [#def30] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:979:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'code' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 977| if ((err = binary_buffer_next_uleb128(&buffer->bb, &code))) # 978| return err; # 979|-> if (code == 0) # 980| return &drgn_stop; # 981| if (code != uint32_vector_size(decls) + 1) { Error: GCC_ANALYZER_WARNING (CWE-457): [#def31] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:996:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tag' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:350:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:535:42: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:535:42: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:351:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_abbrev_decl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 994| uint8_t die_flags; # 995| bool should_index = true; # 996|-> switch (tag) { # 997| #define X(name) case DW_TAG_##name: die_flags = DRGN_DWARF_INDEX_##name; break; # 998| DRGN_DWARF_INDEX_TAGS Error: GCC_ANALYZER_WARNING (CWE-457): [#def32] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1153:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'form' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'read_indirect_insn' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/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): [#def33] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1198:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'code' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 1196| if ((err = binary_buffer_next_uleb128(&buffer->bb, &code))) # 1197| return err; # 1198|-> if (code == 0) { # 1199| if (buffer->depth > 1) { # 1200| buffer->depth--; Error: GCC_ANALYZER_WARNING (CWE-457): [#def34] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1281:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 1279| return err; # 1280| sibling: # 1281|-> if (tmp > cu->len) { # 1282| return binary_buffer_error(&buffer->bb, # 1283| "DW_AT_sibling is out of bounds"); Error: GCC_ANALYZER_WARNING (CWE-457): [#def35] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1344:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 1342| return err; # 1343| specification: # 1344|-> if (tmp >= cu->len) { # 1345| return binary_buffer_error(&buffer->bb, # 1346| "reference is out of bounds"); Error: GCC_ANALYZER_WARNING (CWE-457): [#def36] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1400:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'skip' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:521:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_first_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 1398| skip = insn; # 1399| skip: # 1400|-> if ((err = binary_buffer_skip(&buffer->bb, # 1401| skip))) # 1402| return err; Error: GCC_ANALYZER_WARNING (CWE-457): [#def37] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1559:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'code' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/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): [#def38] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1644:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/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): [#def39] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1697:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/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): [#def40] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1751:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'tmp' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/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: GCC_ANALYZER_WARNING (CWE-457): [#def41] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1807:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'skip' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:524:29: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:526:14: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:445:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:528:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:515:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:495:24: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:1176:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'index_cu_second_pass' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:58:41: note: in definition of macro 'unlikely' # 1805| skip = insn; # 1806| skip: # 1807|-> if ((err = binary_buffer_skip(&buffer->bb, # 1808| skip))) # 1809| return err; Error: COMPILER_WARNING: [#def42] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:2167:25: warning[-Wdeprecated-openmp]: 'master' construct deprecated since OpenMP 5.1, use 'masked' # 2167 | #pragma omp master # | ^~~ # 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: GCC_ANALYZER_WARNING (CWE-401): [#def43] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:2188:67: warning[-Wanalyzer-malloc-leak]: leak of '*dbinfo.dwarf.index_cus.<Uf0a0>._data' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:418:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:421:17: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:421:17: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update._omp_fn.0' # 2186| &partial_units0, # 2187| &partial_pos); # 2188|-> for (int i = 0; i < drgn_num_threads - 1; i++) { # 2189| drgn_dwarf_index_cus_merge(&dbinfo->dwarf.index_cus, # 2190| &threads[i].cus, Error: COMPILER_WARNING: [#def44] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:2220:25: warning[-Wdeprecated-openmp]: 'master' construct deprecated since OpenMP 5.1, use 'masked' # 2220 | #pragma omp master # | ^~~ # 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: GCC_ANALYZER_WARNING (CWE-401): [#def45] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:2237:33: warning[-Wanalyzer-malloc-leak]: leak of '*dbinfo.dwarf.index_cu_lookup' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update._omp_fn.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:418:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:421:17: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:421:17: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_update._omp_fn.0' # 2235| lookup[i].index = i; # 2236| } # 2237|-> qsort(lookup, # 2238| drgn_dwarf_index_cu_vector_size(&dbinfo->dwarf.index_cus), # 2239| sizeof(lookup[0]), Error: COMPILER_WARNING: [#def46] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:2314:25: warning[-Wdeprecated-openmp]: 'master' construct deprecated since OpenMP 5.1, use 'masked' # 2314 | #pragma omp master # | ^~~ # 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: [#def47] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_handle_unknown_dwarf_opcode' drgn-0.0.33+187.g2c8e1f6d/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: [#def48] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:25: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_eval_dwarf_expression' drgn-0.0.33+187.g2c8e1f6d/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+187.g2c8e1f6d/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): [#def49] drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_file.c: scope_hint: In function 'apply_elf_relas' drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_file.c:358:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sym_value' drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_file.c:4: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_file.c: scope_hint: In function 'apply_elf_relas' drgn-0.0.33+187.g2c8e1f6d/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-457): [#def50] drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_file.c: scope_hint: In function 'drgn_elf_file_apply_relocations' drgn-0.0.33+187.g2c8e1f6d/libdrgn/elf_file.c:506:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'data' # 504| # 505| struct drgn_relocating_section relocating = { # 506|-> .buf = data->d_buf, # 507| .buf_size = data->d_size, # 508| .addr = sh_addrs[elf_ndxscn(scn)], Error: GCC_ANALYZER_WARNING (CWE-471): [#def51] drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:791:24: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:5348:9: note: in expansion of macro 'drgn_log_debug' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1283:17: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/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): [#def52] drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:825:47: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:5348:9: note: in expansion of macro 'drgn_log_debug' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1278:25: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/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): [#def53] drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1286:34: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:5348:9: note: in expansion of macro 'drgn_log_debug' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/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): [#def54] drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1288:66: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.h:57:29: note: in expansion of macro 'drgn_log' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:5348:9: note: in expansion of macro 'drgn_log_debug' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/cityhash.h: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:703:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c: scope_hint: In function 'load_debug_info_provided_table_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1207:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1591:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.c:4998:1: note: in expansion of macro 'DEFINE_HASH_TABLE' # 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-471): [#def55] drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1293:17: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl' drgn-0.0.33+187.g2c8e1f6d/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.33+187.g2c8e1f6d/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): [#def56] drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_expand_symbol' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c:255:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'len' drgn-0.0.33+187.g2c8e1f6d/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): [#def57] drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_load_addresses' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c:479:60: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'stext_idx' # 477| if (err) # 478| return err; # 479|-> uint64_t stext_abs = relative_base + addr32[stext_idx]; # 480| uint64_t stext_pcpu = absolute_percpu(relative_base, (int32_t)addr32[stext_idx]); # 481| if (stext_abs == loc->_stext) { Error: COMPILER_WARNING (CWE-457): [#def58] drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c:479:60: warning[-Wmaybe-uninitialized]: 'stext_idx' may be used uninitialized # 479 | uint64_t stext_abs = relative_base + addr32[stext_idx]; # | ^ drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_builtin_kallsyms' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c:475:25: note: 'stext_idx' was declared here # 475 | ssize_t stext_idx; # | ^~~~~~~~~ # 477| if (err) # 478| return err; # 479|-> uint64_t stext_abs = relative_base + addr32[stext_idx]; # 480| uint64_t stext_pcpu = absolute_percpu(relative_base, (int32_t)addr32[stext_idx]); # 481| if (stext_abs == loc->_stext) { Error: GCC_ANALYZER_WARNING (CWE-401): [#def59] drgn-0.0.33+187.g2c8e1f6d/libdrgn/kdump.c: scope_hint: In function 'drgn_program_set_kdump' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kdump.c:201:38: warning[-Wanalyzer-malloc-leak]: leak of 'memdup(*prog.<U5960>.<U58c0>.vmcoreinfo.raw, *prog.<U5960>.<U58c0>.vmcoreinfo.raw_size)' drgn-0.0.33+187.g2c8e1f6d/libdrgn/kdump.c: scope_hint: In function 'drgn_program_set_kdump' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_search_tree.h:18: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.h:21: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.h:21: included_from: Included from here. # 199| goto err; # 200| } # 201|-> kdump_blob_t *blob = kdump_blob_new(vmcoreinfo, prog->vmcoreinfo.raw_size); # 202| if (!blob) { # 203| free(vmcoreinfo); Error: GCC_ANALYZER_WARNING (CWE-457): [#def60] drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'depmod_index_find' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:875: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+187.g2c8e1f6d/libdrgn/linux_kernel.c:19: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:22: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:16: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:271:1: note: in expansion of macro 'DEFINE_NEXT_INT' # 873| &prefix_len))) # 874| return err; # 875|-> if (strncmp(name, prefix, prefix_len) != 0) # 876| goto not_found; # 877| name += prefix_len; Error: GCC_ANALYZER_WARNING (CWE-401): [#def61] drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'linux_kernel_loaded_module_iterator_create' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:2577:9: warning[-Wanalyzer-malloc-leak]: leak of 'it' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'linux_kernel_loaded_module_iterator_create' # 2575| linux_kernel_loaded_module_iterator_next); # 2576| it->module_list_iterations_remaining = MAX_MODULE_LIST_ITERATIONS; # 2577|-> drgn_object_init(&it->node, prog); # 2578| *ret = &it->it; # 2579| return NULL; Error: GCC_ANALYZER_WARNING (CWE-476): [#def62] drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'linux_cpu_present_mask' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:2664:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/array.h:14: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:21: included_from: Included from here. # 2662| # 2663| for (size_t i = 0; i < nr_words; i++) { # 2664|-> uint32_t value = bswap ? bswap_32(orig[i]) : orig[i]; # 2665| if (i & 1) # 2666| bitmap[i >> 1] |= (uint64_t) value << 32; Error: COMPILER_WARNING (CWE-457): [#def63] drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c: scope_hint: In function 'drgn_program_is_irq_regs' drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:2711:61: warning[-Wmaybe-uninitialized]: 'nr_cpus' may be used uninitialized # 2711 | for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) { # | ~~~~~~~~~~~~~~~~^~~~~~~~~ drgn-0.0.33+187.g2c8e1f6d/libdrgn/linux_kernel.c:2703:24: note: 'nr_cpus' was declared here # 2703 | size_t nr_cpus; # | ^~~~~~~ # 2709| VECTOR(uint64_vector, addresses); # 2710| uint64_t regs_ptr; # 2711|-> for (size_t word_index = 0; word_index * 64 < nr_cpus; word_index++) { # 2712| uint64_t word = cpumask[word_index]; # 2713| unsigned int i; Error: GCC_ANALYZER_WARNING (CWE-404): [#def64] drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.c: scope_hint: In function 'drgn_error_log' drgn-0.0.33+187.g2c8e1f6d/libdrgn/log.c:82:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end' # 80| va_list ap; # 81| va_start(ap, format); # 82|-> prog->log_fn(prog, prog->log_arg, level, format, ap, err); # 83| va_end(ap); # 84| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def65] drgn-0.0.33+187.g2c8e1f6d/libdrgn/memory_reader.c: scope_hint: In function 'drgn_program_search_memory_word_multi' drgn-0.0.33+187.g2c8e1f6d/libdrgn/memory_reader.c:936:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit' drgn-0.0.33+187.g2c8e1f6d/libdrgn/memory_reader.c: scope_hint: In function 'drgn_program_search_memory_word_multi' # 934| if (err) # 935| return err; # 936|-> if (is_64_bit) { # 937| return drgn_program_search_memory_u64_multi(prog, values, # 938| num_values, Error: GCC_ANALYZER_WARNING (CWE-401): [#def66] drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c: scope_hint: In function 'drgn_object_read_reference' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:703:31: warning[-Wanalyzer-malloc-leak]: leak of 'dst' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:815:9: note: in expansion of macro 'SWITCH_ENUM' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c: scope_hint: In function 'drgn_object_read_reference' # 701| return &drgn_enomem; # 702| } # 703|-> err = drgn_program_read_memory(drgn_object_program(obj), # 704| dst, obj->address, size, # 705| false); Error: COMPILER_WARNING (CWE-704): [#def67] drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c: scope_hint: In function 'drgn_object_read_c_string' drgn-0.0.33+187.g2c8e1f6d/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): [#def68] drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c: scope_hint: In function 'drgn_op_cmp_pointers' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:1985:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'rhs_value' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:2048:16: note: in expansion of macro 'CMP' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:2048:16: note: in expansion of macro 'CMP' drgn-0.0.33+187.g2c8e1f6d/libdrgn/object.c:2048:16: note: in expansion of macro 'CMP' # 1983| #define CMP(lhs, rhs) ({ \ # 1984| __auto_type _lhs = (lhs); \ # 1985|-> __auto_type _rhs = (rhs); \ # 1986| \ # 1987| (_lhs > _rhs ? 1 : _lhs < _rhs ? -1 : 0); \ Error: GCC_ANALYZER_WARNING (CWE-457): [#def69] drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c:209:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'address_mask' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment' drgn-0.0.33+187.g2c8e1f6d/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-775): [#def70] drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_set_core_dump_fd_internal' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c:340:48: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path, 0)' # 338| size_t vmcoreinfo_size = 0; # 339| bool have_nt_taskstruct = false, is_proc_kcore; # 340|-> bool have_vmcoreinfo = prog->vmcoreinfo.raw; # 341| bool had_vmcoreinfo = have_vmcoreinfo; # 342| Error: GCC_ANALYZER_WARNING (CWE-775): [#def71] drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_set_pid.part.0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c:785:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor '*prog.core_fd' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_set_pid.part.0' # 783| out_fd: # 784| prog->has_platform = had_platform; # 785|-> close(prog->core_fd); # 786| prog->core_fd = -1; # 787| return err; Error: GCC_ANALYZER_WARNING (CWE-457): [#def72] drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c:1917:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit' drgn-0.0.33+187.g2c8e1f6d/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word' # 1915| if (err) # 1916| return err; # 1917|-> if (is_64_bit) { # 1918| uint64_t tmp; # 1919| err = drgn_program_read_memory(prog, &tmp, address, sizeof(tmp), Error: GCC_ANALYZER_WARNING (CWE-476): [#def73] drgn-0.0.33+187.g2c8e1f6d/libdrgn/python/program.c:1936: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+187.g2c8e1f6d/libdrgn/python/program.c:1929:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.33+187.g2c8e1f6d/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+187.g2c8e1f6d/libdrgn/python/program.c:1929: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+187.g2c8e1f6d/libdrgn/python/program.c:1929: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/cpython/abstract.h:97:25: note: in expansion of macro 'PyList_GET_ITEM' drgn-0.0.33+187.g2c8e1f6d/libdrgn/python/program.c:1934:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM' # 1934| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc)) # 1935| return NULL; # 1936|-> pcs[i] = pc.uvalue; # 1937| } # 1938| Error: GCC_ANALYZER_WARNING (CWE-476): [#def74] drgn-0.0.33+187.g2c8e1f6d/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs' drgn-0.0.33+187.g2c8e1f6d/libdrgn/python/program.c:1936:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc_array(size, 8)' /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+187.g2c8e1f6d/libdrgn/python/program.c:1929: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+187.g2c8e1f6d/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+187.g2c8e1f6d/libdrgn/python/program.c:1929: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+187.g2c8e1f6d/libdrgn/python/program.c:1929:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.33+187.g2c8e1f6d/libdrgn/hash_table.h:35: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/python/drgnpy.h:18: included_from: Included from here. /usr/include/python3.14/cpython/abstract.h:97:25: note: in expansion of macro 'PyList_GET_ITEM' drgn-0.0.33+187.g2c8e1f6d/libdrgn/python/program.c:1934:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM' # 1934| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc)) # 1935| return NULL; # 1936|-> pcs[i] = pc.uvalue; # 1937| } # 1938| Error: GCC_ANALYZER_WARNING (CWE-457): [#def75] drgn-0.0.33+187.g2c8e1f6d/libdrgn/serialize.c: scope_hint: In function 'serialize_bits' drgn-0.0.33+187.g2c8e1f6d/libdrgn/serialize.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*(unsigned char (*)[9])(&tmp[1])' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:13: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/serialize.h:21: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/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 (CWE-401): [#def76] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_stack_trace_append_frame' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:53:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_search_tree.h:18: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.h:21: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/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-401): [#def77] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_get_initial_registers_from_prstatus' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:701:24: warning[-Wanalyzer-malloc-leak]: leak of 'trace' # 699| { # 700| if (!prog->platform.arch->prstatus_get_initial_registers) { # 701|-> return drgn_error_format(DRGN_ERROR_NOT_IMPLEMENTED, # 702| "core dump stack unwinding is not supported for %s architecture", # 703| prog->platform.arch->name); Error: GCC_ANALYZER_WARNING (CWE-401): [#def78] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:705:16: warning[-Wanalyzer-malloc-leak]: leak of 'trace' # 703| prog->platform.arch->name); # 704| } # 705|-> return prog->platform.arch->prstatus_get_initial_registers(prog, # 706| prstatus->str, # 707| prstatus->len, Error: GCC_ANALYZER_WARNING (CWE-401): [#def79] drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn_internal.h:21: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info_options.h:7: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/debug_info.h:23: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_get_initial_registers' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:822:21: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2604:28: note: in definition of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:823:9: note: in expansion of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2604:28: note: in definition of macro 'DRGN_OBJECT' drgn-0.0.33+187.g2c8e1f6d/libdrgn/drgn.h:2604:28: note: in definition of macro 'DRGN_OBJECT' # 820| struct drgn_error *err; # 821| # 822|-> DRGN_OBJECT(obj, prog); # 823| DRGN_OBJECT(tmp, prog); # 824| Error: GCC_ANALYZER_WARNING (CWE-401): [#def80] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_stack_trace_add_frames' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:960:15: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 958| Dwarf_Die *scopes; # 959| size_t num_scopes; # 960|-> err = drgn_module_find_dwarf_scopes(regs->module, pc, &bias, &scopes, # 961| &num_scopes); # 962| if (err) Error: GCC_ANALYZER_WARNING (CWE-401): [#def81] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:981:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 979| has_pc = true; # 980| } else { # 981|-> int r = dwarf_haspc(&scopes[i], pc); # 982| if (r < 0) { # 983| err = drgn_error_libdw(); Error: GCC_ANALYZER_WARNING (CWE-401): [#def82] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:981:33: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 979| has_pc = true; # 980| } else { # 981|-> int r = dwarf_haspc(&scopes[i], pc); # 982| if (r < 0) { # 983| err = drgn_error_libdw(); Error: GCC_ANALYZER_WARNING (CWE-401): [#def83] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:983:39: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 981| int r = dwarf_haspc(&scopes[i], pc); # 982| if (r < 0) { # 983|-> err = drgn_error_libdw(); # 984| goto out_scopes; # 985| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def84] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:990:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 988| if (has_pc) { # 989| Dwarf_Die *frame_scopes; # 990|-> switch (dwarf_tag(&scopes[i])) { # 991| case DW_TAG_subprogram: # 992| /* Error: GCC_ANALYZER_WARNING (CWE-401): [#def85] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:990:33: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 988| if (has_pc) { # 989| Dwarf_Die *frame_scopes; # 990|-> switch (dwarf_tag(&scopes[i])) { # 991| case DW_TAG_subprogram: # 992| /* Error: GCC_ANALYZER_WARNING (CWE-401): [#def86] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_program_stack_trace_from_pcs' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1376:25: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1364:42: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1364:42: note: in expansion of macro 'malloc_flexible_array' # 1374| for (size_t i = 0; i != pcs_size; ++i) { # 1375| struct drgn_register_state *regs = # 1376|-> drgn_register_state_create_impl(0, 0, false); # 1377| drgn_register_state_set_pc(prog, regs, pcs[i]); # 1378| Error: GCC_ANALYZER_WARNING (CWE-401): [#def87] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1377:17: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1364:42: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1364:42: note: in expansion of macro 'malloc_flexible_array' # 1375| struct drgn_register_state *regs = # 1376| drgn_register_state_create_impl(0, 0, false); # 1377|-> drgn_register_state_set_pc(prog, regs, pcs[i]); # 1378| # 1379| err = drgn_stack_trace_add_frames(&trace, &trace_capacity, regs); Error: GCC_ANALYZER_WARNING (CWE-401): [#def88] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_program_source_location' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1522:17: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 1520| # 1521| struct drgn_register_state *regs = # 1522|-> drgn_register_state_create_impl(0, 0, true); # 1523| drgn_register_state_set_pc(prog, regs, address); # 1524| err = drgn_stack_trace_add_frames(&trace, &trace_capacity, regs); Error: GCC_ANALYZER_WARNING (CWE-401): [#def89] drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1523:9: warning[-Wanalyzer-malloc-leak]: leak of 'trace' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c:1513:17: note: in expansion of macro 'malloc_flexible_array' # 1521| struct drgn_register_state *regs = # 1522| drgn_register_state_create_impl(0, 0, true); # 1523|-> drgn_register_state_set_pc(prog, regs, address); # 1524| err = drgn_stack_trace_add_frames(&trace, &trace_capacity, regs); # 1525| if (err) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def90] drgn-0.0.33+187.g2c8e1f6d/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder' drgn-0.0.33+187.g2c8e1f6d/libdrgn/symbol.c:452:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' drgn-0.0.33+187.g2c8e1f6d/libdrgn/symbol.h:15: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/symbol.c:12: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/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; Error: GCC_ANALYZER_WARNING (CWE-401): [#def91] drgn-0.0.33+187.g2c8e1f6d/libdrgn/symbol.h:46:9: warning[-Wanalyzer-malloc-leak]: leak of 'name' drgn-0.0.33+187.g2c8e1f6d/libdrgn/stack_trace.c: scope_hint: In function 'drgn_stack_frame_source_name' # 44| static inline void drgn_symbol_cleanup(struct drgn_symbol **p) # 45| { # 46|-> drgn_symbol_destroy(*p); # 47| } # 48| Error: GCC_ANALYZER_WARNING (CWE-401): [#def92] drgn-0.0.33+187.g2c8e1f6d/libdrgn/binary_buffer.h:22: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/kallsyms.c:7: included_from: Included from here. drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h: scope_hint: In function 'kallsyms_load_addresses' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array((long unsigned int)*kr.num_syms, 4)' # 93| size_t bytes; # 94| # 95|-> if (__builtin_mul_overflow(nmemb, size, &bytes)) { # 96| errno = ENOMEM; # 97| return NULL; Error: GCC_ANALYZER_WARNING (CWE-401): [#def93] drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h: scope_hint: In function 'copy_builtin_orc_buffers' drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array(num_entries, 4)' # 93| size_t bytes; # 94| # 95|-> if (__builtin_mul_overflow(nmemb, size, &bytes)) { # 96| errno = ENOMEM; # 97| return NULL; Error: GCC_ANALYZER_WARNING (CWE-401): [#def94] drgn-0.0.33+187.g2c8e1f6d/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array(num_entries, 6)' # 93| size_t bytes; # 94| # 95|-> if (__builtin_mul_overflow(nmemb, size, &bytes)) { # 96| errno = ENOMEM; # 97| return NULL; Error: GCC_ANALYZER_WARNING (CWE-401): [#def95] drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_cu_vector_resize' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:425:1: warning[-Wanalyzer-malloc-leak]: leak of '*dbinfo.dwarf.index_cus.<Uf0a0>._data' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:586:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:149:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_dwarf_index_cu_vector_resize' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:418:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:421:17: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:401:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:381:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:414:16: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/vector.h:421:17: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.33+187.g2c8e1f6d/libdrgn/dwarf_info.c:148:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' # 423| vector->_size = size; \ # 424| return true; \ # 425|-> } \ # 426| \ # 427| __attribute__((__unused__)) \
| analyzer-version-clippy | 1.93.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-159.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | python-drgn-0.0.33+187.g2c8e1f6d-1.20260208170520298579.pr596.187.g2c8e1f6d |
| store-results-to | /tmp/tmp65nbwop4/python-drgn-0.0.33+187.g2c8e1f6d-1.20260208170520298579.pr596.187.g2c8e1f6d.tar.xz |
| time-created | 2026-02-08 17:22:01 |
| time-finished | 2026-02-08 17:26:14 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmp65nbwop4/python-drgn-0.0.33+187.g2c8e1f6d-1.20260208170520298579.pr596.187.g2c8e1f6d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp65nbwop4/python-drgn-0.0.33+187.g2c8e1f6d-1.20260208170520298579.pr596.187.g2c8e1f6d.src.rpm' |
| tool-version | csmock-3.8.3.20260128.181932.g41af877-1.el9 |