diff options
Diffstat (limited to 'src/format/elf')
-rw-r--r-- | src/format/elf/section.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/format/elf/section.c b/src/format/elf/section.c index 60bd67a..5307928 100644 --- a/src/format/elf/section.c +++ b/src/format/elf/section.c @@ -270,6 +270,9 @@ const char *extract_name_from_elf_string_section(const GElfFormat *format, const result = (const char *)g_binary_content_get_raw_access(content, &pos, 1); + if (result == NULL) + return NULL; + if ((phys + strlen(result)) > last) return NULL; |