1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Cleanup minor bug in unpack ET_EXE

modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser 2017-03-31 12:42:14 -07:00
parent 12e5703541
commit 8a9b46d82f

View File

@ -3733,6 +3733,7 @@ void PackLinuxElf64::unpack(OutputFile *fo)
else { // main executable
// Decompress each PT_LOAD.
bool first_PF_X = true;
phdr = phdri;
for (unsigned j=0; j < u_phnum; ++phdr, ++j) {
if (PT_LOAD64==get_te32(&phdr->p_type)) {
unsigned const filesz = get_te64(&phdr->p_filesz);
@ -4353,6 +4354,7 @@ void PackLinuxElf32::unpack(OutputFile *fo)
else { // main executable
// Decompress each PT_LOAD.
bool first_PF_X = true;
phdr = phdri;
for (unsigned j=0; j < u_phnum; ++phdr, ++j) {
if (PT_LOAD32==get_te32(&phdr->p_type)) {
unsigned const filesz = get_te32(&phdr->p_filesz);