summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/format')
-rw-r--r--src/format/elf/elf.c3
1 files changed, 3 insertions, 0 deletions
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);