We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001957b commit bef1fc9Copy full SHA for bef1fc9
src/lib/libdwarf/dwarf_elf_load_headers.c
@@ -233,6 +233,9 @@ generic_ehdr_from_32(dwarf_elf_object_access_internals_t *ep,
233
ehdr->ge_shnum_extended = TRUE;
234
} else {
235
ehdr->ge_shnum_in_shnum = TRUE;
236
+ if (!ehdr->ge_shnum) {
237
+ return DW_DLV_NO_ENTRY;
238
+ }
239
if (ehdr->ge_shnum < 3) {
240
*errcode = DW_DLE_TOO_FEW_SECTIONS;
241
return DW_DLV_ERROR;
@@ -299,6 +302,9 @@ generic_ehdr_from_64(dwarf_elf_object_access_internals_t* ep,
299
302
300
303
301
304
305
306
307
308
309
310
0 commit comments