python-drgn-0.0.30+122.g4b5dedbe-1.20250328153118669145.pr487.122.g4b5dedbe

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_aarch64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_aarch64'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_aarch64.c:406:14: warning[-Wanalyzer-malloc-leak]: leak of 'it'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/register_state.h:15: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_arm.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_arm'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_ppc64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_ppc64'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_s390x.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_s390x'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_x86_64.c: scope_hint: In function 'linux_kernel_pgtable_iterator_create_x86_64'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/arch_x86_64.c:544:14: warning[-Wanalyzer-malloc-leak]: leak of 'it'
#  542|   	if (!it)
#  543|   		return &drgn_enomem;
#  544|-> 	*ret = &it->it;
#  545|   	return NULL;
#  546|   }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def6]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/cfi.h:182:17: warning[-Wanalyzer-free-of-non-heap]: 'free' of '&drgn_empty_cfi_row_impl' which points to memory not on the heap
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/cfi.h: scope_hint: In function 'drgn_get_stack_trace.part.0'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/binary_search_tree.h:18: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.h:21: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/stack_trace.c:12: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c:38: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_file_internal'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c:1657:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1657 |                         drgn_error_log_debug(prog, err, "");
#      |                                                         ^~
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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__)
#      |                                                                  ^~~~~~~~~~~
# 1655|   	if (err) {
# 1656|   		if (!drgn_error_is_fatal(err)) {
# 1657|-> 			drgn_error_log_debug(prog, err, "");
# 1658|   			drgn_error_destroy(err);
# 1659|   			err = NULL;

Error: COMPILER_WARNING: [#def8]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_vdso_in_core'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c:1757:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 1757 |                         drgn_error_log_debug(prog, err, "");
#      |                                                         ^~
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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__)
#      |                                                                  ^~~~~~~~~~~
# 1755|   	if (err) {
# 1756|   		if (!drgn_error_is_fatal(err)) {
# 1757|-> 			drgn_error_log_debug(prog, err, "");
# 1758|   			drgn_error_destroy(err);
# 1759|   			err = NULL;

Error: COMPILER_WARNING: [#def9]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c: scope_hint: In function 'drgn_module_try_files_by_gnu_debuglink'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.c:2191:57: warning[-Wformat-zero-length]: zero-length gnu_printf format string
# 2191 |                         drgn_error_log_debug(prog, err, "");
#      |                                                         ^~
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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__)
#      |                                                                  ^~~~~~~~~~~
# 2189|   	    || (err = binary_buffer_next_u32(&buffer.bb, &crc))) {
# 2190|   		if (!drgn_error_is_fatal(err)) {
# 2191|-> 			drgn_error_log_debug(prog, err, "");
# 2192|   			drgn_error_destroy(err);
# 2193|   			err = NULL;

Error: GCC_ANALYZER_WARNING (CWE-471): [#def10]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:817:47: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1318:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1323:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1301:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1313:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1255:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1266:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1270:25: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:464:22: note: declared here
#  815|   {										\
#  816|   	if (chunk->outbound_overflow_count != UINT8_MAX)			\
#  817|-> 		chunk->outbound_overflow_count++;				\
#  818|   }										\
#  819|   										\

Error: GCC_ANALYZER_WARNING (CWE-471): [#def11]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1278:34: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1318:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1323:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1301:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1313:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1255:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1266:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:30: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:763:23: note: in expansion of macro 'ctz'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:464:22: note: declared here
# 1276|   							   hosted_overflow_count_inc);\
# 1277|   	}									\
# 1278|-> 	chunk->tags[first_empty] = hp.second;					\
# 1279|   	if (table##_vector_policy) {						\
# 1280|   		*table##_vector_item(&chunk->items[first_empty]) =		\

Error: GCC_ANALYZER_WARNING (CWE-471): [#def12]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1285:17: warning[-Wanalyzer-write-to-const]: write to 'const' object 'hash_table_empty_chunk_header'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1318:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1323:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1301:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1307:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1313:24: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1255:12: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1266:36: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/bitops.h:108:24: note: in expansion of macro 'builtin_bitop_impl'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/bitops.h:41:16: note: in expansion of macro 'generic_bitop'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:763:23: note: in expansion of macro 'ctz'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'int_set_insert_searched'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:464:22: note: declared here
# 1283|   		       sizeof(*entry));						\
# 1284|   	} else {								\
# 1285|-> 		memcpy(&chunk->items[first_empty], entry, sizeof(*entry));	\
# 1286|   	}									\
# 1287|   	table##_adjust_size_and_first_after_insert(table, chunk, first_empty);	\

Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_expand_symbol'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/kallsyms.c:255:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'len'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/binary_buffer.h:22: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/kallsyms.c:7: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def14]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/kallsyms.c:479:60: warning[-Wmaybe-uninitialized]: 'stext_idx' may be used uninitialized
#  479 |                 uint64_t stext_abs = relative_base + addr32[stext_idx];
#      |                                                            ^
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_builtin_kallsyms'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def15]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_build_id_live'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/linux_kernel.c:1387:39: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
# 1385|   		return &drgn_enomem;
# 1386|   	}
# 1387|-> 	_cleanup_closedir_ DIR *dir = opendir(path);
# 1388|   	if (!dir) {
# 1389|   		if (errno == ENOENT) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/linux_kernel.c: scope_hint: In function 'kernel_module_set_section_addresses_live'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/linux_kernel.c:1582:39: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
# 1580|   		return &drgn_enomem;
# 1581|   	}
# 1582|-> 	_cleanup_closedir_ DIR *dir = opendir(path);
# 1583|   	if (!dir)
# 1584|   		return drgn_error_create_os("opendir", errno, path);

Error: CPPCHECK_WARNING (CWE-476): [#def17]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def18]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def19]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def20]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def21]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:64:51: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&siblings_path, "r")'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def22]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:64:51: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&siblings_path, "r")'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1213:1: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c: scope_hint: In function 'drgn_num_online_cpu_cores'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:554:32: note: in definition of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1192:1: note: in expansion of macro 'HASH_TABLE_SEARCH_IMPL'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1655:1: note: in expansion of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1215:16: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1202:38: note: in definition of macro 'DEFINE_HASH_TABLE_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:1671:1: note: in expansion of macro 'DEFINE_HASH_SET_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/openmp.c:15:1: note: in expansion of macro 'DEFINE_HASH_SET'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def23]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.c:214:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'address_mask'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.c: scope_hint: In function 'drgn_program_add_memory_segment'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.c:35: included_from: Included from here.
#  212|   	if (err)
#  213|   		return err;
#  214|-> 	if (size == 0 || address > address_mask)
#  215|   		return NULL;
#  216|   	uint64_t max_address = address + min(size - 1, address_mask - address);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.c: scope_hint: In function 'drgn_program_read_word'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.c:1915:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'is_64_bit'
# 1913|   	if (err)
# 1914|   		return err;
# 1915|-> 	if (is_64_bit) {
# 1916|   		uint64_t tmp;
# 1917|   		err = drgn_program_read_memory(prog, &tmp, address, sizeof(tmp),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1712:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/Python.h:36: included_from: Included from here.
# 1710|   		if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1711|   			return NULL;
# 1712|-> 		pcs[i] = pc.uvalue;
# 1713|   	}
# 1714|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1712:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc_array(size, 8)'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
# 1710|   		if (!index_converter(PySequence_Fast_GET_ITEM(pypcseq, i), &pc))
# 1711|   			return NULL;
# 1712|-> 		pcs[i] = pc.uvalue;
# 1713|   	}
# 1714|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def27]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/serialize.c: scope_hint: In function 'serialize_bits'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/serialize.c:137:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '&*(unsigned char (*)[9])(&tmp[1])'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h:13: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/serialize.h:21: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def28]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/symbol.c:452:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/symbol.h:15: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/symbol.c:12: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def29]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/hash_table.h:35: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/drgnpy.h:18: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:4: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h: scope_hint: In function 'Program_load_module_debug_info'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array((long unsigned int)PyTuple_GET_SIZE(args), 8)'
/usr/include/python3.13/tupleobject.h:39: included_from: Included from here.
/usr/include/python3.13/Python.h:88: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/drgnpy.h:10: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1373:30: note: in expansion of macro 'PyTuple_GET_SIZE'
/usr/include/python3.13/Python.h:19: included_from: Included from here.
/usr/include/python3.13/cpython/tupleobject.h:22:28: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.13/Python.h:72: included_from: Included from here.
/usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro 'Py_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1373:30: note: in expansion of macro 'PyTuple_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/type.h:15: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/object.h:20: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/debug_info.h:28: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/program.h:21: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/drgnpy.h:20: included_from: Included from here.
/usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/cpython/tupleobject.h:17:13: note: in expansion of macro 'PyTuple_Check'
/usr/include/python3.13/cpython/tupleobject.h:27:38: note: in expansion of macro '_PyTuple_CAST'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1382:34: note: in expansion of macro 'PyTuple_GET_ITEM'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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): [#def30]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h: scope_hint: In function 'Program_set_enabled_type_finders'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array(count, 8)'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:837:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c: scope_hint: In function 'Program_set_enabled_type_finders'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:837:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:837:24: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:736:7: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:843:45: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c: scope_hint: In function 'Program_set_enabled_type_finders'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
/usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/cpython/tupleobject.h:17:13: note: in expansion of macro 'PyTuple_Check'
/usr/include/python3.13/cpython/tupleobject.h:27:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.13/abstract.h:736:53: note: in expansion of macro 'PyTuple_GET_ITEM'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:843:45: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:876:1: note: in expansion of macro 'DEFINE_PROGRAM_FINDER_METHODS'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h: scope_hint: In function 'Program_set_enabled_type_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): [#def31]
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h: scope_hint: In function 'Program_stack_trace_from_pcs'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/util.h:95:13: warning[-Wanalyzer-malloc-leak]: leak of 'malloc_array(size, 8)'
/usr/include/python3.13/listobject.h:25:5: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/abstract.h:731:6: note: in expansion of macro 'PyList_Check'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/listobject.h:48: included_from: Included from here.
/usr/include/python3.13/Python.h:89: included_from: Included from here.
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c: scope_hint: In function 'Program_stack_trace_from_pcs'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/cpython/listobject.h:31:26: note: in expansion of macro '_PyList_CAST'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/cpython/listobject.h:35:12: note: in expansion of macro 'Py_SIZE'
/usr/include/python3.13/abstract.h:731:24: note: in expansion of macro 'PyList_GET_SIZE'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1705:23: note: in expansion of macro 'PySequence_Fast_GET_SIZE'
/usr/include/python3.13/tupleobject.h:27:18: note: in expansion of macro 'PyType_FastSubclass'
/usr/include/python3.13/cpython/tupleobject.h:17:13: note: in expansion of macro 'PyTuple_Check'
/usr/include/python3.13/cpython/tupleobject.h:27:38: note: in expansion of macro '_PyTuple_CAST'
/usr/include/python3.13/abstract.h:736:53: note: in expansion of macro 'PyTuple_GET_ITEM'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/libdrgn/python/program.c:1710:38: note: in expansion of macro 'PySequence_Fast_GET_ITEM'
python-drgn-0.0.30+122.g4b5dedbe-build/drgn-0.0.30+122.g4b5dedbe/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;

Scan Properties

analyzer-version-clippy1.85.1
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-144.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namepython-drgn-0.0.30+122.g4b5dedbe-1.20250328153118669145.pr487.122.g4b5dedbe
store-results-to/tmp/tmpwuagkfoe/python-drgn-0.0.30+122.g4b5dedbe-1.20250328153118669145.pr487.122.g4b5dedbe.tar.xz
time-created2025-03-28 15:48:57
time-finished2025-03-28 15:50:50
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpwuagkfoe/python-drgn-0.0.30+122.g4b5dedbe-1.20250328153118669145.pr487.122.g4b5dedbe.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpwuagkfoe/python-drgn-0.0.30+122.g4b5dedbe-1.20250328153118669145.pr487.122.g4b5dedbe.src.rpm'
tool-versioncsmock-3.8.0-1.el9