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
@@ -204,10 +204,10 @@ Idx Name Size VMA LMA File off Algn Flags
199 LXPTI140 00000000 00000000 00000000 00001ba9 2**0 CONTENTS, READONLY
200 LXPTI141 00000000 00000000 00000000 00001ba9 2**0 CONTENTS, READONLY
201 LXPTI150 0000000d 00000000 00000000 00001ba9 2**0 CONTENTS, READONLY
202 ctok32.00 00000009 00000000 00000000 00001bb6 2**0 CONTENTS, RELOC, READONLY
203 ctok32.10 0000000e 00000000 00000000 00001bbf 2**0 CONTENTS, RELOC, READONLY
204 ctok32.20 00000021 00000000 00000000 00001bcd 2**0 CONTENTS, RELOC, READONLY
205 ctok32.30 00000007 00000000 00000000 00001bee 2**0 CONTENTS, RELOC, READONLY
202 ctok32.00 00000007 00000000 00000000 00001bb6 2**0 CONTENTS, RELOC, READONLY
203 ctok32.10 0000000e 00000000 00000000 00001bbd 2**0 CONTENTS, RELOC, READONLY
204 ctok32.20 00000020 00000000 00000000 00001bcb 2**0 CONTENTS, RELOC, READONLY
205 ctok32.30 0000000a 00000000 00000000 00001beb 2**0 CONTENTS, RELOC, READONLY
206 ctok32.40 00000005 00000000 00000000 00001bf5 2**0 CONTENTS, RELOC, READONLY
207 LXPTI160 00000002 00000000 00000000 00001bfa 2**0 CONTENTS, READONLY
208 LXPTI200 00000000 00000000 00000000 00001bfc 2**0 CONTENTS, READONLY
@@ -804,11 +804,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