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
@@ -83,10 +83,10 @@ Idx Name Size VMA LMA File off Algn Flags
78 LZMA_DEC20 00000a86 00000000 00000000 00000fa0 2**0 CONTENTS, READONLY
79 LZMA_DEC30 0000001a 00000000 00000000 00001a26 2**0 CONTENTS, READONLY
80 LZCKLLT9 00000003 00000000 00000000 00001a40 2**0 CONTENTS, READONLY
81 ctok32.00 00000009 00000000 00000000 00001a43 2**0 CONTENTS, RELOC, READONLY
82 ctok32.10 0000000e 00000000 00000000 00001a4c 2**0 CONTENTS, RELOC, READONLY
83 ctok32.20 00000021 00000000 00000000 00001a5a 2**0 CONTENTS, RELOC, READONLY
84 ctok32.30 00000007 00000000 00000000 00001a7b 2**0 CONTENTS, RELOC, READONLY
81 ctok32.00 00000007 00000000 00000000 00001a43 2**0 CONTENTS, RELOC, READONLY
82 ctok32.10 0000000e 00000000 00000000 00001a4a 2**0 CONTENTS, RELOC, READONLY
83 ctok32.20 00000020 00000000 00000000 00001a58 2**0 CONTENTS, RELOC, READONLY
84 ctok32.30 0000000a 00000000 00000000 00001a78 2**0 CONTENTS, RELOC, READONLY
85 ctok32.40 00000005 00000000 00000000 00001a82 2**0 CONTENTS, RELOC, READONLY
86 LZCALLT9 00000001 00000000 00000000 00001a87 2**0 CONTENTS, READONLY
87 CALLTR00 0000000e 00000000 00000000 00001a88 2**0 CONTENTS, RELOC, READONLY
@@ -467,11 +467,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