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:
parent
12e5703541
commit
8a9b46d82f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user