summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/format/elf/elf.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 566ba21..6535040 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+15-10-13 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/format/elf/elf.c:
+ Do not load ELF files as DWARF information.
+
15-10-10 Cyrille Bagard <nocbos@gmail.com>
* plugins/ropgadgets/select.c:
diff --git a/src/format/elf/elf.c b/src/format/elf/elf.c
index f485dbc..ea520b9 100644
--- a/src/format/elf/elf.c
+++ b/src/format/elf/elf.c
@@ -102,6 +102,9 @@ FormatMatchStatus elf_is_matching(GBinContent *content, GExeFormat *parent, void
bool status; /* Bilan des accès mémoire */
char magic[4]; /* Idenfiant standard */
+ if (parent != NULL)
+ return FMS_UNKNOWN;
+
init_vmpa(&addr, 0, VMPA_NO_VIRTUAL);
status = g_binary_content_read_raw(content, &addr, 4, (bin_t *)magic);