diff options
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); |