summaryrefslogtreecommitdiff
path: root/plugins/readelf
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/readelf')
-rw-r--r--plugins/readelf/strtab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/readelf/strtab.c b/plugins/readelf/strtab.c
index 9e625fd..f8ab2c7 100644
--- a/plugins/readelf/strtab.c
+++ b/plugins/readelf/strtab.c
@@ -70,6 +70,12 @@ static void parse_elf_string_table(GElfFormat *format, GPreloadInfo *info, const
copy_vmpa(&pos, get_mrange_addr(range));
data = g_binary_content_get_raw_access(content, &pos, length);
+ /**
+ * Si la section demandée est anormalement grande (cf. exemple de la suite de
+ * tests "tests/format/elf/oob_section_name.asm")...
+ */
+ if (data == NULL) return;
+
cut = true;
/* Boucle de parcours */