diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:14:19 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:14:19 (GMT) |
commit | dbb5a81c38ccbdefafc2abe3bd1e266a7fc42bc2 (patch) | |
tree | de1b90292e08154d26d4b58cb896d6d7be534b1f /plugins/readelf | |
parent | 47480a98d3c5c058755f3206765730dbfbf3ecef (diff) |
Took into account that some instruction creations may fail.
Diffstat (limited to 'plugins/readelf')
-rw-r--r-- | plugins/readelf/strtab.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/readelf/strtab.c b/plugins/readelf/strtab.c index 7cdb4c9..dc022cf 100644 --- a/plugins/readelf/strtab.c +++ b/plugins/readelf/strtab.c @@ -24,6 +24,7 @@ #include "strtab.h" +#include <assert.h> #include <ctype.h> @@ -101,6 +102,7 @@ static void parse_elf_string_table(GElfFormat *format, GPreloadInfo *info, const advance_vmpa(&pos, i); instr = g_raw_instruction_new_array(content, MDS_8_BITS, end - i, &pos, MDS_UNDEFINED); + assert(instr != NULL); g_raw_instruction_mark_as_string(G_RAW_INSTRUCTION(instr), true); |