src/file_elf.c: fix header size (buggy commit 358269b5ae
)
This commit is contained in:
parent
4756038a07
commit
f46267b920
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue