Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] drgn-0.0.32+28.g64cde7b6/libdrgn/arch_aarch64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_aarch64' drgn-0.0.32+28.g64cde7b6/libdrgn/arch_aarch64.c:406:14: warning[-Wanalyzer-malloc-leak]: leak of 'it' drgn-0.0.32+28.g64cde7b6/libdrgn/register_state.h:15: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/arch_aarch64.c:14: included_from: Included from here. # 404| } # 405| # 406|-> *ret = &it->it; # 407| return NULL; # 408| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] drgn-0.0.32+28.g64cde7b6/libdrgn/arch_arm.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_arm' drgn-0.0.32+28.g64cde7b6/libdrgn/arch_arm.c:191:14: warning[-Wanalyzer-malloc-leak]: leak of 'it' # 189| if (!it) # 190| return &drgn_enomem; # 191|-> *ret = &it->it; # 192| return NULL; # 193| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] drgn-0.0.32+28.g64cde7b6/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64' drgn-0.0.32+28.g64cde7b6/libdrgn/arch_ppc64.c:380:14: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(24)' # 378| } # 379| # 380|-> *ret = &no_cleanup_ptr(it)->it; # 381| return NULL; # 382| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] drgn-0.0.32+28.g64cde7b6/libdrgn/arch_s390x.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_s390x' drgn-0.0.32+28.g64cde7b6/libdrgn/arch_s390x.c:282:14: warning[-Wanalyzer-malloc-leak]: leak of 'it' # 280| return &drgn_enomem; # 281| # 282|-> *ret = &it->it; # 283| return NULL; # 284| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] drgn-0.0.32+28.g64cde7b6/libdrgn/arch_x86_64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_x86_64' drgn-0.0.32+28.g64cde7b6/libdrgn/arch_x86_64.c:548:14: warning[-Wanalyzer-malloc-leak]: leak of 'it' # 546| if (!it) # 547| return &drgn_enomem; # 548|-> *ret = &it->it; # 549| return NULL; # 550| } Error: GCC_ANALYZER_WARNING (CWE-590): [#def6] drgn-0.0.32+28.g64cde7b6/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.32+28.g64cde7b6/libdrgn/cfi.h: scope_hint: In function 'drgn_get_stack_trace.part.0' drgn-0.0.32+28.g64cde7b6/libdrgn/binary_search_tree.h:18: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.h:21: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/stack_trace.c:12: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/stack_trace.c: scope_hint: In function 'drgn_get_stack_trace.part.0' # 180| { # 181| if (row->allocated_rules > 0) # 182|-> free(row); # 183| } # 184| Error: COMPILER_WARNING: [#def7] drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c:39: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_file_internal' drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c:1690:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 1690 | drgn_error_log_debug(prog, err, ""); # | ^~ drgn-0.0.32+28.g64cde7b6/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__) # | ^~~~~~~~~~~ # 1688| if (err) { # 1689| if (!drgn_error_is_fatal(err)) { # 1690|-> drgn_error_log_debug(prog, err, ""); # 1691| drgn_error_destroy(err); # 1692| err = NULL; Error: COMPILER_WARNING: [#def8] drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_vdso_in_core' drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c:1793:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 1793 | drgn_error_log_debug(prog, err, ""); # | ^~ drgn-0.0.32+28.g64cde7b6/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__) # | ^~~~~~~~~~~ # 1791| if (err) { # 1792| if (!drgn_error_is_fatal(err)) { # 1793|-> drgn_error_log_debug(prog, err, ""); # 1794| drgn_error_destroy(err); # 1795| err = NULL; Error: COMPILER_WARNING: [#def9] drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_files_by_gnu_debuglink' drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.c:2247:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 2247 | drgn_error_log_debug(prog, err, ""); # | ^~ drgn-0.0.32+28.g64cde7b6/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__) # | ^~~~~~~~~~~ # 2245| || (err = binary_buffer_next_u32(&buffer.bb, &crc))) { # 2246| if (!drgn_error_is_fatal(err)) { # 2247|-> drgn_error_log_debug(prog, err, ""); # 2248| drgn_error_destroy(err); # 2249| err = NULL; Error: COMPILER_WARNING: [#def10] drgn-0.0.32+28.g64cde7b6/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_handle_unknown_dwarf_opcode' drgn-0.0.32+28.g64cde7b6/libdrgn/dwarf_info.c:3837:59: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 3837 | drgn_error_log(log_level, ctx->prog, err, ""); # | ^~ # 3835| : "", # 3836| PACKAGE_BUGREPORT); # 3837|-> drgn_error_log(log_level, ctx->prog, err, ""); # 3838| drgn_error_destroy(err); # 3839| } Error: COMPILER_WARNING: [#def11] drgn-0.0.32+28.g64cde7b6/libdrgn/dwarf_info.c:25: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_eval_dwarf_expression' drgn-0.0.32+28.g64cde7b6/libdrgn/dwarf_info.c:4297:70: warning[-Wformat-zero-length]: zero-length gnu_printf format string # 4297 | drgn_error_log_debug(ctx->prog, err, ""); # | ^~ drgn-0.0.32+28.g64cde7b6/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__) # | ^~~~~~~~~~~ # 4295| "please upvote https://github.com/osandov/drgn/issues/337", # 4296| dw_op_str(opcode, op_buf)); # 4297|-> drgn_error_log_debug(ctx->prog, err, ""); # 4298| drgn_error_destroy(err); # 4299| } Error: GCC_ANALYZER_WARNING (CWE-471): [#def12] drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:825:47: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1278:25: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/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): [#def13] drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1286:34: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:30: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl' drgn-0.0.32+28.g64cde7b6/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/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): [#def14] drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1293:17: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl' drgn-0.0.32+28.g64cde7b6/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/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): [#def15] drgn-0.0.32+28.g64cde7b6/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_expand_symbol' drgn-0.0.32+28.g64cde7b6/libdrgn/kallsyms.c:255:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'len' drgn-0.0.32+28.g64cde7b6/libdrgn/binary_buffer.h:22: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/kallsyms.c:7: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/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: COMPILER_WARNING (CWE-457): [#def16] drgn-0.0.32+28.g64cde7b6/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.32+28.g64cde7b6/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_builtin_kallsyms' drgn-0.0.32+28.g64cde7b6/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): [#def17] drgn-0.0.32+28.g64cde7b6/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_build_id_live' drgn-0.0.32+28.g64cde7b6/libdrgn/linux_kernel.c:1551:39: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)' # 1549| return &drgn_enomem; # 1550| } # 1551|-> _cleanup_closedir_ DIR *dir = opendir(path); # 1552| if (!dir) { # 1553| if (errno == ENOENT) { Error: GCC_ANALYZER_WARNING (CWE-401): [#def18] drgn-0.0.32+28.g64cde7b6/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_section_addresses_live' drgn-0.0.32+28.g64cde7b6/libdrgn/linux_kernel.c:1747:39: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)' # 1745| return &drgn_enomem; # 1746| } # 1747|-> _cleanup_closedir_ DIR *dir = opendir(path); # 1748| if (!dir) # 1749| return drgn_error_create_os("opendir", errno, path); Error: CPPCHECK_WARNING (CWE-476): [#def19] drgn-0.0.32+28.g64cde7b6/libdrgn/memory_reader.c:34: error[ctunullpointer]: Null pointer dereference: entry # 32| drgn_memory_segment_to_key(const struct drgn_memory_segment *entry) # 33| { # 34|-> return entry->min_address; # 35| } # 36| Error: CPPCHECK_WARNING (CWE-476): [#def20] drgn-0.0.32+28.g64cde7b6/libdrgn/memory_reader.c:34: warning[nullPointer]: Possible null pointer dereference: entry # 32| drgn_memory_segment_to_key(const struct drgn_memory_segment *entry) # 33| { # 34|-> return entry->min_address; # 35| } # 36| Error: GCC_ANALYZER_WARNING (CWE-775): [#def21] drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:51:41: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen("/sys/devices/system/cpu/online", "r")' # 49| HASH_TABLE(int_set, cpus_seen); # 50| # 51|-> _cleanup_fclose_ FILE *online = fopen("/sys/devices/system/cpu/online", "r"); # 52| if (!online) # 53| return 0; Error: GCC_ANALYZER_WARNING (CWE-401): [#def22] drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:51:41: warning[-Wanalyzer-malloc-leak]: leak of 'fopen("/sys/devices/system/cpu/online", "r")' # 49| HASH_TABLE(int_set, cpus_seen); # 50| # 51|-> _cleanup_fclose_ FILE *online = fopen("/sys/devices/system/cpu/online", "r"); # 52| if (!online) # 53| return 0; Error: GCC_ANALYZER_WARNING (CWE-775): [#def23] drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:64:51: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&siblings_path, "r")' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores' # 62| snprintf(siblings_path, sizeof(siblings_path), SIBLINGS_FORMAT, # 63| cpu); # 64|-> _cleanup_fclose_ FILE *siblings = fopen(siblings_path, "r"); # 65| if (!siblings) # 66| continue; Error: GCC_ANALYZER_WARNING (CWE-401): [#def24] drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:64:51: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&siblings_path, "r")' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET' drgn-0.0.32+28.g64cde7b6/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores' # 62| snprintf(siblings_path, sizeof(siblings_path), SIBLINGS_FORMAT, # 63| cpu); # 64|-> _cleanup_fclose_ FILE *siblings = fopen(siblings_path, "r"); # 65| if (!siblings) # 66| continue; Error: GCC_ANALYZER_WARNING (CWE-457): [#def25] drgn-0.0.32+28.g64cde7b6/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment' drgn-0.0.32+28.g64cde7b6/libdrgn/program.c:190:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'address_mask' drgn-0.0.32+28.g64cde7b6/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment' drgn-0.0.32+28.g64cde7b6/libdrgn/program.c:35: included_from: Included from here. # 188| if (err) # 189| return err; # 190|-> if (size == 0 || address > address_mask) # 191| return NULL; # 192| uint64_t max_address = address + min(size - 1, address_mask - address); Error: GCC_ANALYZER_WARNING (CWE-457): [#def26] drgn-0.0.32+28.g64cde7b6/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word' drgn-0.0.32+28.g64cde7b6/libdrgn/program.c:1891:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit' # 1889| if (err) # 1890| return err; # 1891|-> if (is_64_bit) { # 1892| uint64_t tmp; # 1893| err = drgn_program_read_memory(prog, &tmp, address, sizeof(tmp), Error: GCC_ANALYZER_WARNING (CWE-476): [#def27] drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:1663: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.32+28.g64cde7b6/libdrgn/python/program.c:1656:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.32+28.g64cde7b6/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.32+28.g64cde7b6/libdrgn/python/program.c:1656: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.32+28.g64cde7b6/libdrgn/python/program.c:1656:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' /usr/include/python3.14/Python.h:36: included_from: Included from here. # 1661| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc)) # 1662| return NULL; # 1663|-> pcs[i] = pc.uvalue; # 1664| } # 1665| Error: GCC_ANALYZER_WARNING (CWE-476): [#def28] drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:1663: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.32+28.g64cde7b6/libdrgn/python/program.c:1656:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.32+28.g64cde7b6/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.32+28.g64cde7b6/libdrgn/python/program.c:1656: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.32+28.g64cde7b6/libdrgn/python/program.c:1656:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' # 1661| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc)) # 1662| return NULL; # 1663|-> pcs[i] = pc.uvalue; # 1664| } # 1665| Error: GCC_ANALYZER_WARNING (CWE-457): [#def29] drgn-0.0.32+28.g64cde7b6/libdrgn/serialize.c: scope_hint: In function 'serialize_bits' drgn-0.0.32+28.g64cde7b6/libdrgn/serialize.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*(unsigned char (*)[9])(&tmp[1])' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h:13: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/serialize.h:21: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/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-476): [#def30] drgn-0.0.32+28.g64cde7b6/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder' drgn-0.0.32+28.g64cde7b6/libdrgn/symbol.c:452:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' drgn-0.0.32+28.g64cde7b6/libdrgn/symbol.h:15: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/symbol.c:12: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.0.32+28.g64cde7b6/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): [#def31] drgn-0.0.32+28.g64cde7b6/libdrgn/hash_table.h:35: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/python/drgnpy.h:18: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:4: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/util.h: scope_hint: In function 'Program_load_module_debug_info' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array((long unsigned int)PyTuple_GET_SIZE(args), 8)' /usr/include/python3.14/tupleobject.h:39: included_from: Included from here. /usr/include/python3.14/Python.h:98: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/python/drgnpy.h:10: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:1324:30: note: in expansion of macro 'PyTuple_GET_SIZE' /usr/include/python3.14/Python.h:19: included_from: Included from here. /usr/include/python3.14/cpython/tupleobject.h:24:28: note: in expansion of macro '_PyTuple_CAST' /usr/include/python3.14/Python.h:81: included_from: Included from here. /usr/include/python3.14/cpython/tupleobject.h:25:12: note: in expansion of macro 'Py_SIZE' /usr/include/python3.14/cpython/tupleobject.h:25:12: note: in expansion of macro 'Py_SIZE' /usr/include/python3.14/cpython/tupleobject.h:25:12: note: in expansion of macro 'Py_SIZE' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:1324:30: note: in expansion of macro 'PyTuple_GET_SIZE' drgn-0.0.32+28.g64cde7b6/libdrgn/type.h:15: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/object.h:20: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/debug_info.h:28: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/program.h:21: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/libdrgn/python/drgnpy.h:20: included_from: Included from here. /usr/include/python3.14/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass' /usr/include/python3.14/cpython/tupleobject.h:19:13: note: in expansion of macro 'PyTuple_Check' /usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:1333:34: note: in expansion of macro 'PyTuple_GET_ITEM' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h: scope_hint: In function 'Program_load_module_debug_info' # 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): [#def32] drgn-0.0.32+28.g64cde7b6/libdrgn/util.h: scope_hint: In function 'Program_set_enabled_symbol_finders' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array(count, 8)' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' /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.32+28.g64cde7b6/libdrgn/python/program.c:816:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c: scope_hint: In function 'Program_set_enabled_symbol_finders' /usr/include/python3.14/cpython/abstract.h:92:24: note: in expansion of macro 'PyList_GET_SIZE' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:816:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' /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.32+28.g64cde7b6/libdrgn/python/program.c:816:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' /usr/include/python3.14/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass' /usr/include/python3.14/cpython/abstract.h:97:7: note: in expansion of macro 'PyList_Check' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:822:45: note: in expansion of macro 'PySequence_Fast_GET_ITEM' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c: scope_hint: In function 'Program_set_enabled_symbol_finders' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' /usr/include/python3.14/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass' /usr/include/python3.14/cpython/tupleobject.h:19:13: note: in expansion of macro 'PyTuple_Check' /usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST' /usr/include/python3.14/cpython/abstract.h:97:53: note: in expansion of macro 'PyTuple_GET_ITEM' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:822:45: note: in expansion of macro 'PySequence_Fast_GET_ITEM' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:857:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h: scope_hint: In function 'Program_set_enabled_symbol_finders' # 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): [#def33] drgn-0.0.32+28.g64cde7b6/libdrgn/util.h: scope_hint: In function 'Program_stack_trace_from_pcs' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of '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.32+28.g64cde7b6/libdrgn/python/program.c:1656: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:99: included_from: Included from here. drgn-0.0.32+28.g64cde7b6/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.32+28.g64cde7b6/libdrgn/python/program.c:1656: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.32+28.g64cde7b6/libdrgn/python/program.c:1656:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE' /usr/include/python3.14/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass' /usr/include/python3.14/cpython/tupleobject.h:19:13: note: in expansion of macro 'PyTuple_Check' /usr/include/python3.14/cpython/tupleobject.h:29:38: note: in expansion of macro '_PyTuple_CAST' /usr/include/python3.14/cpython/abstract.h:97:53: note: in expansion of macro 'PyTuple_GET_ITEM' drgn-0.0.32+28.g64cde7b6/libdrgn/python/program.c:1661:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM' drgn-0.0.32+28.g64cde7b6/libdrgn/util.h: scope_hint: In function 'Program_stack_trace_from_pcs' # 93| size_t bytes; # 94| # 95|-> if (__builtin_mul_overflow(nmemb, size, &bytes)) { # 96| errno = ENOMEM; # 97| return NULL;
analyzer-version-clippy | 1.88.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.1.1 |
analyzer-version-gcc-analyzer | 15.1.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-54.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.20250521.132812.g8eff701.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | python-drgn-0.0.32+28.g64cde7b6-1.20250627225739542981.pr512.28.g64cde7b6 |
store-results-to | /tmp/tmpmo5gaoxy/python-drgn-0.0.32+28.g64cde7b6-1.20250627225739542981.pr512.28.g64cde7b6.tar.xz |
time-created | 2025-06-27 23:10:18 |
time-finished | 2025-06-27 23:13:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmpmo5gaoxy/python-drgn-0.0.32+28.g64cde7b6-1.20250627225739542981.pr512.28.g64cde7b6.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpmo5gaoxy/python-drgn-0.0.32+28.g64cde7b6-1.20250627225739542981.pr512.28.g64cde7b6.src.rpm' |
tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |