summaryrefslogtreecommitdiffstats
path: root/src/file_elf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-23 19:19:28 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-23 19:19:28 +0100
commitf46267b9202ac6bab7b6b94368ce388b4552ce80 (patch)
treec1fb60b0e2488b2505c9e129235aed1a2b9a7a50 /src/file_elf.c
parent4756038a07af11735dff320ffa9feab05127d977 (diff)
src/file_elf.c: fix header size (buggy commit 358269b5aeb979a5b9e858f0dbdaf3c19ec00f19)
Diffstat (limited to 'src/file_elf.c')
-rw-r--r--src/file_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_elf.c b/src/file_elf.c
index b48db4b..40b8b53 100644
--- a/src/file_elf.c
+++ b/src/file_elf.c
@@ -52,8 +52,8 @@ static int header_check_elf(const unsigned char *buffer, const unsigned int buff
static void register_header_check_elf(file_stat_t *file_stat)
{
- static const unsigned char elf_header16[4] = { 0x7f, 'E','L','F',0x01};
- static const unsigned char elf_header32[4] = { 0x7f, 'E','L','F',0x02};
+ static const unsigned char elf_header16[5] = { 0x7f, 'E','L','F',0x01};
+ static const unsigned char elf_header32[5] = { 0x7f, 'E','L','F',0x02};
register_header_check(0, elf_header16, sizeof(elf_header16), &header_check_elf, file_stat);
register_header_check(0, elf_header32, sizeof(elf_header32), &header_check_elf, file_stat);
}