Task #146070 - fixed.err
back to task #146070download
Error: GCC_ANALYZER_WARNING (CWE-688):
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2113:17: warning[-Wanalyzer-null-argument]: use of NULL 'map_files_segments.vector.<U8be0>._data' where non-null expected
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:40: included_from: Included from here.
drgn-0.3.0+4.ge7c27769/libdrgn/log.h:59:29: note: in expansion of macro 'drgn_log'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:5503:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+4.ge7c27769/libdrgn/log.h:59:29: note: in expansion of macro 'drgn_log'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:4813:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.3.0+4.ge7c27769/libdrgn/dwarf_info.h:26: included_from: Included from here.
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.h:26: included_from: Included from here.
drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:458:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:19: included_from: Included from here.
/usr/include/stdlib.h:998:13: note: argument 1 of 'qsort' must be non-null
# 2111| &dbinfo->num_map_files_segments);
# 2112| if (!segments->sorted) {
# 2113|-> qsort(dbinfo->map_files_segments,
# 2114| dbinfo->num_map_files_segments,
# 2115| sizeof(dbinfo->map_files_segments[0]),