Fix valgrind error
https://travis-ci.org/upx/upx/jobs/218929378 modified: p_lx_elf.cpp
This commit is contained in:
+1
-1
@@ -2353,7 +2353,7 @@ PackLinuxElf32::generateElfHdr(
|
|||||||
set_te32(&h2->phdr[0].p_filesz, sizeof(*h2)); // + identsize;
|
set_te32(&h2->phdr[0].p_filesz, sizeof(*h2)); // + identsize;
|
||||||
h2->phdr[0].p_memsz = h2->phdr[0].p_filesz;
|
h2->phdr[0].p_memsz = h2->phdr[0].p_filesz;
|
||||||
|
|
||||||
for (unsigned j=0; j < 3; ++j) {
|
for (unsigned j=0; j < phnum_o; ++j) {
|
||||||
if (PT_LOAD32==get_te32(&h3->phdr[j].p_type)) {
|
if (PT_LOAD32==get_te32(&h3->phdr[j].p_type)) {
|
||||||
set_te32(&h3->phdr[j].p_align, page_size);
|
set_te32(&h3->phdr[j].p_align, page_size);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user