Bug in unfilter on x86* when region ends in 32-bit displacement.

https://github.com/upx/upx/issues/43
	modified:   stub/src/arch/amd64/bxx.S
	modified:   stub/src/arch/i386/macros.S
	plus all the stubs that use them
This commit is contained in:
John Reiser
2016-12-31 09:51:40 -08:00
committed by Markus F.X.J. Oberhumer
parent fdce705e55
commit ba9118aa58
44 changed files with 8782 additions and 8672 deletions
@@ -148,10 +148,10 @@ Idx Name Size VMA LMA File off Algn Flags
143 LXMRU057 00000006 00000000 00000000 00001a13 2**0 CONTENTS, READONLY
144 LXMRU058 00000001 00000000 00000000 00001a19 2**0 CONTENTS, READONLY
145 LXUNF035 00000006 00000000 00000000 00001a1a 2**0 CONTENTS, READONLY
146 ctok32.00 00000009 00000000 00000000 00001a20 2**0 CONTENTS, RELOC, READONLY
147 ctok32.10 0000000e 00000000 00000000 00001a29 2**0 CONTENTS, RELOC, READONLY
148 ctok32.20 00000021 00000000 00000000 00001a37 2**0 CONTENTS, RELOC, READONLY
149 ctok32.30 00000007 00000000 00000000 00001a58 2**0 CONTENTS, RELOC, READONLY
146 ctok32.00 00000007 00000000 00000000 00001a20 2**0 CONTENTS, RELOC, READONLY
147 ctok32.10 0000000e 00000000 00000000 00001a27 2**0 CONTENTS, RELOC, READONLY
148 ctok32.20 00000020 00000000 00000000 00001a35 2**0 CONTENTS, RELOC, READONLY
149 ctok32.30 0000000a 00000000 00000000 00001a55 2**0 CONTENTS, RELOC, READONLY
150 ctok32.40 00000005 00000000 00000000 00001a5f 2**0 CONTENTS, RELOC, READONLY
151 CALLTR00 00000010 00000000 00000000 00001a64 2**0 CONTENTS, RELOC, READONLY
152 CTCLEVE1 00000005 00000000 00000000 00001a74 2**0 CONTENTS, RELOC, READONLY
@@ -620,11 +620,13 @@ OFFSET TYPE VALUE
RELOCATION RECORDS FOR [ctok32.20]:
OFFSET TYPE VALUE
00000005 R_386_PC8 ctok32.40
00000009 R_386_PC8 ctok32.40
0000000a R_386_PC8 ctok32.40
00000010 R_386_PC8 ctok32.40
RELOCATION RECORDS FOR [ctok32.30]:
OFFSET TYPE VALUE
00000006 R_386_PC8 ctok32.10
00000004 R_386_PC8 ctok32.40
00000009 R_386_PC8 ctok32.10
RELOCATION RECORDS FOR [ctok32.40]:
OFFSET TYPE VALUE