Static executable with 4 PT_LOAD has only ELF headers in first PT_LOAD
https://github.com/upx/upx/issues/615
This commit is contained in:
committed by
Markus F.X.J. Oberhumer
parent
81e11987a2
commit
c8a3acbba8
+1
-1
@@ -4448,7 +4448,7 @@ int PackLinuxElf64::pack2(OutputFile *fo, Filter &ft)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // main program, not shared library
|
else // main program, not shared library
|
||||||
if (hdr_u_len < (u64_t)x.size) {
|
if (hdr_u_len <= (u64_t)x.size) {
|
||||||
if (0 == nx) { // 1st PT_LOAD64 must cover Ehdr at 0==p_offset
|
if (0 == nx) { // 1st PT_LOAD64 must cover Ehdr at 0==p_offset
|
||||||
unsigned const delta = hdr_u_len;
|
unsigned const delta = hdr_u_len;
|
||||||
if (ft.id < 0x40) {
|
if (ft.id < 0x40) {
|
||||||
|
|||||||
Reference in New Issue
Block a user