Task #71563 - python-drgn-0.0.32+193.g09e38e7b-1.20250917204224041999.pr547.193.g09e38e7b/scan-results.err
back to task #71563download
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_aarch64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_aarch64'
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_aarch64.c:441:14: warning[-Wanalyzer-malloc-leak]: leak of 'it'
drgn-0.0.32+193.g09e38e7b/libdrgn/register_state.h:15: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_aarch64.c:14: included_from: Included from here.
# 439| }
# 440|
# 441|-> *ret = &it->it;
# 442| return NULL;
# 443| }
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_arm.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_arm'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_s390x.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_s390x'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/arch_x86_64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_x86_64'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/cfi.h: scope_hint: In function 'drgn_get_stack_trace.part.0'
drgn-0.0.32+193.g09e38e7b/libdrgn/binary_search_tree.h:18: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.h:21: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/stack_trace.c:12: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/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:
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c:39: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_file_internal'
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c:1643:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1643 | drgn_error_log_debug(prog, err, "");
# | ^~
drgn-0.0.32+193.g09e38e7b/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__)
# | ^~~~~~~~~~~
# 1641| if (err) {
# 1642| if (!drgn_error_is_fatal(err)) {
# 1643|-> drgn_error_log_debug(prog, err, "");
# 1644| drgn_error_destroy(err);
# 1645| err = NULL;
Error: COMPILER_WARNING:
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_vdso_in_core'
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c:1746:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1746 | drgn_error_log_debug(prog, err, "");
# | ^~
drgn-0.0.32+193.g09e38e7b/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__)
# | ^~~~~~~~~~~
# 1744| if (err) {
# 1745| if (!drgn_error_is_fatal(err)) {
# 1746|-> drgn_error_log_debug(prog, err, "");
# 1747| drgn_error_destroy(err);
# 1748| err = NULL;
Error: COMPILER_WARNING:
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_files_by_gnu_debuglink'
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.c:2200:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2200 | drgn_error_log_debug(prog, err, "");
# | ^~
drgn-0.0.32+193.g09e38e7b/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__)
# | ^~~~~~~~~~~
# 2198| || (err = binary_buffer_next_u32(&buffer.bb, &crc))) {
# 2199| if (!drgn_error_is_fatal(err)) {
# 2200|-> drgn_error_log_debug(prog, err, "");
# 2201| drgn_error_destroy(err);
# 2202| err = NULL;
Error: COMPILER_WARNING:
drgn-0.0.32+193.g09e38e7b/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_handle_unknown_dwarf_opcode'
drgn-0.0.32+193.g09e38e7b/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:
drgn-0.0.32+193.g09e38e7b/libdrgn/dwarf_info.c:25: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/dwarf_info.c: scope_hint: In function 'drgn_eval_dwarf_expression'
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:825:47: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1278:25: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:472:22: note: declared here
# 823| { \
# 824| if (chunk->outbound_overflow_count != UINT8_MAX) \
# 825|-> chunk->outbound_overflow_count++; \
# 826| } \
# 827| \
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1286:34: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:30: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.32+193.g09e38e7b/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:472:22: note: declared here
# 1284| hosted_overflow_count_inc);\
# 1285| } \
# 1286|-> chunk->tags[first_empty] = hp.second; \
# 1287| if (table##_vector_policy) { \
# 1288| *table##_vector_item(&chunk->items[first_empty]) = \
Error: GCC_ANALYZER_WARNING (CWE-471):
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1293:17: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1326:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1331:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1309:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1315:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1321:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1263:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1274:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
drgn-0.0.32+193.g09e38e7b/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:771:23: note: in expansion of macro 'ctz'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:472:22: note: declared here
# 1291| sizeof(*entry)); \
# 1292| } else { \
# 1293|-> memcpy(&chunk->items[first_empty], entry, sizeof(*entry)); \
# 1294| } \
# 1295| table##_adjust_size_and_first_after_insert(table, chunk, first_empty); \
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.32+193.g09e38e7b/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_expand_symbol'
drgn-0.0.32+193.g09e38e7b/libdrgn/kallsyms.c:255:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'len'
drgn-0.0.32+193.g09e38e7b/libdrgn/binary_buffer.h:22: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/kallsyms.c:7: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_builtin_kallsyms'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_build_id_live'
drgn-0.0.32+193.g09e38e7b/libdrgn/linux_kernel.c:1638:39: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
# 1636| return &drgn_enomem;
# 1637| }
# 1638|-> _cleanup_closedir_ DIR *dir = opendir(path);
# 1639| if (!dir) {
# 1640| if (errno == ENOENT) {
Error: GCC_ANALYZER_WARNING (CWE-401):
drgn-0.0.32+193.g09e38e7b/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_section_addresses_live'
drgn-0.0.32+193.g09e38e7b/libdrgn/linux_kernel.c:1834:39: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
# 1832| return &drgn_enomem;
# 1833| }
# 1834|-> _cleanup_closedir_ DIR *dir = opendir(path);
# 1835| if (!dir)
# 1836| return drgn_error_create_os("opendir", errno, path);
Error: CPPCHECK_WARNING (CWE-476):
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:64:51: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&siblings_path, "r")'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:64:51: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&siblings_path, "r")'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1221:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:562:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1200:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1670:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1223:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1210:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:1686:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
drgn-0.0.32+193.g09e38e7b/libdrgn/program.c:197:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'address_mask'
drgn-0.0.32+193.g09e38e7b/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
drgn-0.0.32+193.g09e38e7b/libdrgn/program.c:35: included_from: Included from here.
# 195| if (err)
# 196| return err;
# 197|-> if (size == 0 || address > address_mask)
# 198| return NULL;
# 199| uint64_t max_address = address + min(size - 1, address_mask - address);
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.32+193.g09e38e7b/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word'
drgn-0.0.32+193.g09e38e7b/libdrgn/program.c:1903:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
# 1901| if (err)
# 1902| return err;
# 1903|-> if (is_64_bit) {
# 1904| uint64_t tmp;
# 1905| err = drgn_program_read_memory(prog, &tmp, address, sizeof(tmp),
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:1695: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+193.g09e38e7b/libdrgn/python/program.c:1688:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/program.c:1688: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+193.g09e38e7b/libdrgn/python/program.c:1688:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.14/Python.h:36: included_from: Included from here.
# 1693| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1694| return NULL;
# 1695|-> pcs[i] = pc.uvalue;
# 1696| }
# 1697|
Error: GCC_ANALYZER_WARNING (CWE-476):
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:1695: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+193.g09e38e7b/libdrgn/python/program.c:1688:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/program.c:1688: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+193.g09e38e7b/libdrgn/python/program.c:1688:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
# 1693| if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1694| return NULL;
# 1695|-> pcs[i] = pc.uvalue;
# 1696| }
# 1697|
Error: GCC_ANALYZER_WARNING (CWE-457):
drgn-0.0.32+193.g09e38e7b/libdrgn/serialize.c: scope_hint: In function 'serialize_bits'
drgn-0.0.32+193.g09e38e7b/libdrgn/serialize.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*(unsigned char (*)[9])(&tmp[1])'
drgn-0.0.32+193.g09e38e7b/libdrgn/util.h:13: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/serialize.h:21: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder'
drgn-0.0.32+193.g09e38e7b/libdrgn/symbol.c:452:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
drgn-0.0.32+193.g09e38e7b/libdrgn/symbol.h:15: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/symbol.c:12: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/hash_table.h:35: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/python/drgnpy.h:18: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:4: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/util.h: scope_hint: In function 'Program_load_module_debug_info'
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/drgnpy.h:10: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:1331: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+193.g09e38e7b/libdrgn/python/program.c:1331:30: note: in expansion of macro 'PyTuple_GET_SIZE'
drgn-0.0.32+193.g09e38e7b/libdrgn/type.h:15: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/object.h:20: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/debug_info.h:28: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/libdrgn/program.h:21: included_from: Included from here.
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/program.c:1340:34: note: in expansion of macro 'PyTuple_GET_ITEM'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/util.h: scope_hint: In function 'Program_set_enabled_symbol_finders'
drgn-0.0.32+193.g09e38e7b/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array(count, 8)'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864: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+193.g09e38e7b/libdrgn/python/program.c:823:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/program.c:823:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864: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+193.g09e38e7b/libdrgn/python/program.c:823:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864: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+193.g09e38e7b/libdrgn/python/program.c:829:45: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c: scope_hint: In function 'Program_set_enabled_symbol_finders'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864: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+193.g09e38e7b/libdrgn/python/program.c:829:45: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
drgn-0.0.32+193.g09e38e7b/libdrgn/python/program.c:864:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
drgn-0.0.32+193.g09e38e7b/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):
drgn-0.0.32+193.g09e38e7b/libdrgn/util.h: scope_hint: In function 'Program_stack_trace_from_pcs'
drgn-0.0.32+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/program.c:1688: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+193.g09e38e7b/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+193.g09e38e7b/libdrgn/python/program.c:1688: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+193.g09e38e7b/libdrgn/python/program.c:1688: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+193.g09e38e7b/libdrgn/python/program.c:1693:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
drgn-0.0.32+193.g09e38e7b/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;