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

Remove nit from PackLinuxElf64::generateElfHdr [address sanitizer]

modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser 2021-03-05 16:33:25 -08:00 committed by Markus F.X.J. Oberhumer
parent 35555bfb8a
commit 0a1d24d1d9

View File

@ -3136,7 +3136,7 @@ PackLinuxElf64::generateElfHdr(
set_te64(&h2->phdr[C_TEXT].p_filesz, sizeof(*h2)); // + identsize;
h2->phdr[C_TEXT].p_memsz = h2->phdr[C_TEXT].p_filesz;
for (unsigned j=0; j < 4; ++j) {
for (unsigned j=0; j < phnum_o; ++j) {
if (PT_LOAD64==get_te32(&h3->phdr[j].p_type)) {
set_te64(&h3->phdr[j].p_align, page_size);
}