A real typo that caused an error in "upx -d" de-compressing

modified:   p_lx_elf.cpp
	modified:   ../.github/travis_testsuite_1-expected_sha256sums.sh
This commit is contained in:
John Reiser
2022-12-19 15:45:27 -08:00
committed by Markus F.X.J. Oberhumer
parent dd8c1d0441
commit 8ccffc40e3
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -5370,7 +5370,7 @@ void PackLinuxElf64::unpack(OutputFile *fo)
&& 0==get_te64(&phdri[1].p_offset)
&& 0==get_te64(&phdri[0].p_offset)
&& get_te64(&phdri[1].p_filesz) == get_te64(&phdri[1].p_memsz)) {
fi->seek(up4(get_te64(&phdr[1].p_memsz)), SEEK_SET); // past the loader
fi->seek(up4(get_te64(&phdri[1].p_memsz)), SEEK_SET); // past the loader
}
else if (is_shlib
|| (off_entry + up4(lsize) + ph.getPackHeaderSize() + sizeof(overlay_offset))