From 660aee6d221f056cb9d6f91e668bfafba45c0b3d Mon Sep 17 00:00:00 2001 From: John Reiser Date: Fri, 25 Feb 2022 09:23:55 -0800 Subject: [PATCH] More checking for unpack of tampered Elf_Phdr https://github.com/upx/upx/issues/562 modified: p_elf_enum.h modified: p_lx_elf.cpp --- src/p_elf_enum.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_elf_enum.h b/src/p_elf_enum.h index b37c4b3d..bddd433f 100644 --- a/src/p_elf_enum.h +++ b/src/p_elf_enum.h @@ -92,6 +92,7 @@ PT_INTERP = 3, /* Name of program interpreter */ PT_NOTE = 4, /* Auxiliary information (esp. OpenBSD) */ PT_PHDR = 6 /* Entry for header table itself */ + , PT_NUM = 8 /* Number of defined types in low range */ , PT_GNU_STACK = 0x6474e551 /* Indicates stack executability */ };