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
@@ -69,10 +69,10 @@ Idx Name Size VMA LMA File off Algn Flags
64 LZMA_DEC20 00000a86 00000000 00000000 00000e51 2**0 CONTENTS, READONLY
65 LZMA_DEC30 0000001a 00000000 00000000 000018d7 2**0 CONTENTS, READONLY
66 LXCKLLT9 00000003 00000000 00000000 000018f1 2**0 CONTENTS, READONLY
67 ctok32.00 00000009 00000000 00000000 000018f4 2**0 CONTENTS, RELOC, READONLY
68 ctok32.10 0000000e 00000000 00000000 000018fd 2**0 CONTENTS, RELOC, READONLY
69 ctok32.20 00000021 00000000 00000000 0000190b 2**0 CONTENTS, RELOC, READONLY
70 ctok32.30 00000007 00000000 00000000 0000192c 2**0 CONTENTS, RELOC, READONLY
67 ctok32.00 00000007 00000000 00000000 000018f4 2**0 CONTENTS, RELOC, READONLY
68 ctok32.10 0000000e 00000000 00000000 000018fb 2**0 CONTENTS, RELOC, READONLY
69 ctok32.20 00000020 00000000 00000000 00001909 2**0 CONTENTS, RELOC, READONLY
70 ctok32.30 0000000a 00000000 00000000 00001929 2**0 CONTENTS, RELOC, READONLY
71 ctok32.40 00000005 00000000 00000000 00001933 2**0 CONTENTS, RELOC, READONLY
72 LXCALLT9 00000002 00000000 00000000 00001938 2**0 CONTENTS, READONLY
73 CALLTR00 0000000e 00000000 00000000 0000193a 2**0 CONTENTS, RELOC, READONLY
@@ -390,11 +390,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