mirror of
https://github.com/upx/upx.git
synced 2024-12-12 06:56:07 +00:00
Tweak unoptimizeReloc again
modified: packer.cpp
This commit is contained in:
parent
4ae3a8b2b0
commit
6871c2fc0a
@ -1030,14 +1030,14 @@ unsigned Packer::unoptimizeReloc(upx_byte **in, upx_byte *image,
|
||||
acc_ua_swab32s(image + jc);
|
||||
if ((unsigned long)(p - (image + jc)) < 4) {
|
||||
// data must not overlap control
|
||||
p = 4+ image + jc;
|
||||
p = (4 - 1) + image + jc; // -1: 'for' also increments
|
||||
}
|
||||
}
|
||||
else if (bits == 64) {
|
||||
set_be64(image + jc, get_le64(image + jc));
|
||||
if ((unsigned long)(p - (image + jc)) < 8) {
|
||||
// data must not overlap control
|
||||
p = 8+ image + jc;
|
||||
p = (8 - 1) + image + jc; // -1: 'for' also increments
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user