summaryrefslogtreecommitdiff
path: root/plugins/readelf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-29 21:01:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-29 21:01:51 (GMT)
commitb8d5a539b1e6837f7395598a3fa25ef69650e885 (patch)
tree2fbf770b1aebf1b66a8ac87e2eeae4521775d092 /plugins/readelf
parent4f3f96c2c98ac507f4aa7c83e2393c5c1fdd3cdd (diff)
Handled areas which are not allocated in memory.
Diffstat (limited to 'plugins/readelf')
-rw-r--r--plugins/readelf/section.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/readelf/section.c b/plugins/readelf/section.c
index 9410f69..89b13c4 100644
--- a/plugins/readelf/section.c
+++ b/plugins/readelf/section.c
@@ -414,7 +414,8 @@ bool annotate_elf_section_header_table(GElfFormat *format, GtkStatusStack *statu
offset = ELF_HDR(format, *header, e_shoff);
- init_vmpa(&pos, offset, 0x9900);
+ if (!g_exe_format_translate_offset_into_vmpa(G_EXE_FORMAT(format), offset, &pos))
+ return false;
e_shnum = ELF_HDR(format, *header, e_shnum);