summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-11-04 22:02:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-11-04 22:02:31 (GMT)
commit4bafbf79e8143941d744c9c47e6fc9216fcec47a (patch)
treee0dc679daaa255d289c84ab0630e42256ab7a58c /src/format
parent72da49fdf05285169a9465b34f7869dafc4715ec (diff)
Fixed some bugs and defined some first test cases.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@604 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-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;