From 4f21d592f373b45cc8c4adc64d82ef2b9f5ff350 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 20 Sep 2019 16:18:51 +0200 Subject: [PATCH] Increase limit on number of ELF program / section headers --- formats/elf32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formats/elf32.c b/formats/elf32.c index 2299ea1..83bbf0a 100644 --- a/formats/elf32.c +++ b/formats/elf32.c @@ -32,8 +32,8 @@ static const uint8_t elf32_id[] = { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, ELFCLASS32 }; -#define MAX_PHDRS 32 -#define MAX_SHDRS 128 +#define MAX_PHDRS 128 +#define MAX_SHDRS 512 struct elf32_info { Elf32_Ehdr file_ehdr;