summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-10-13 18:39:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-10-13 18:39:23 (GMT)
commit37e5f1e071bd9eed59934f2ff242699035232f30 (patch)
tree8aaeb8039911ea455cb52eaf15e8961f4d23b7a8
parent8afd8490dcb695c5e1ab7c55d2305e6af7c97212 (diff)
Done not load ELF files as DWARF information.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@591 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-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);