summaryrefslogtreecommitdiff
path: root/src/format/elf/section.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/elf/section.c')
-rw-r--r--src/format/elf/section.c3
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;