Markus F.X.J. Oberhumer
cc5f684e33
Update testsuite checksums caused by version date bump.
2019-02-15 11:14:18 +01:00
Markus F.X.J. Oberhumer
b6646d319a
Bump tentative release date.
2019-02-15 11:12:07 +01:00
Markus F.X.J. Oberhumer
3667fa4e44
Welcome 2019.
2019-02-15 11:04:09 +01:00
John Reiser
d1c80154f6
SHT_NOTE with ~SHF_ALLOC; as for 'gold' linker version
...
https://github.com/upx/upx/issues/243
modified: p_lx_elf.cpp
2019-02-12 21:13:24 -08:00
John Reiser
3c2bfc742e
g++ -Wsign-compare is not as picky as MSVC warning C4018: '<': signed/unsigned mismatch
...
https://github.com/upx/upx/issues/247
modified: p_lx_elf.cpp
2019-02-09 08:04:58 -08:00
John Reiser
d60fef753f
check_pt_load(); u32_t, u64_t; (off_t) is not unsigned!
...
https://github.com/upx/upx/issues/247
modified: p_lx_elf.cpp
modified: p_lx_elf.h
2019-02-01 19:31:57 -08:00
John Reiser
70ed2d0d03
Allow Load Configuration directory > 256, with info().
...
https://github.com/upx/upx/issues/245
modified: pefile.cpp
2019-01-26 07:51:16 -08:00
John Reiser
716d203a78
Testsuite checksums
...
amd64-linux.elf
commit 6b500bc83ba9de15d9d45717d4fd449964f69c96
Date: Wed Aug 22 14:39:14 2018 -0700
arm-linux.elf, armeb-linux.elf:
commit 75c31dff1da437c75729e11c60801d7393bb86b4
Date: Thu Dec 13 20:10:57 2018 -0800
modified: .github/travis_testsuite_1-expected_sha256sums.sh
2018-12-31 11:08:53 -08:00
John Reiser
9719a7dd56
MSVC pettiness
...
https://github.com/upx/upx/issues/238
modified: p_lx_elf.cpp
2018-12-26 18:38:30 -08:00
John Reiser
c097233bf3
Stronger checks for DT_HASH, DT_GNU_HASH
...
https://github.com/upx/upx/issues/238
modified: p_lx_elf.cpp
2018-12-26 13:00:20 -08:00
John Reiser
69a583281f
MemBuffer::subref() for 64-bit offsets; better diagnosis for bad .e_shoff
...
https://github.com/upx/upx/issues/235 (POC14)
modified: mem.cpp
modified: mem.h
modified: p_lx_elf.cpp
2018-12-16 16:00:15 -08:00
John Reiser
8e90c9af2b
Corner cases for e_shnum vs e_shstrndx
...
modified: p_lx_elf.cpp
2018-12-16 15:36:51 -08:00
John Reiser
a784284b7f
Check user_init_off. Also remove '\n' from error messages.
...
https://github.com/upx/upx/issues/235 POC11
modified: p_lx_elf.cpp
2018-12-16 12:14:22 -08:00
John Reiser
0509edf08d
ElfXX_Sym.st_name is always 32 bits
...
modified: p_lx_elf.cpp
modified: p_lx_elf.h
2018-12-16 11:32:58 -08:00
John Reiser
7ca20f424f
Typos
...
modified: p_lx_elf.cpp
2018-12-15 21:17:26 -08:00
John Reiser
b74d51c2a8
More checking of e_shstrndx
...
https://github.com/upx/upx/issues/235 POC6
modified: p_lx_elf.cpp
2018-12-15 21:12:15 -08:00
John Reiser
58061cd121
Check .p_offset
...
https://github.com/upx/upx/issues/235 POC13
modified: p_lx_elf.cpp
2018-12-15 20:59:45 -08:00
John Reiser
b8f6be5389
More checking of DT_HASH and DT_GNU_HASH
...
https://github.com/upx/upx/issues/235 POC12
modified: p_lx_elf.cpp
2018-12-15 20:43:33 -08:00
John Reiser
7c766b3313
Check e_shstrndx and Shdr.st_name
...
https://github.com/upx/upx/issues/235 POC10
modified: p_lx_elf.cpp
2018-12-15 20:27:20 -08:00
John Reiser
91b81b587b
Abandon when outrageous Elf64_Dyn.d_tag
...
https://github.com/upx/upx/issues/235 POC8
modified: p_lx_elf.cpp
2018-12-15 19:35:13 -08:00
John Reiser
780a4347b8
Check DT_HASH and DT_GNU_HASH.
...
https://github.com/upx/upx/issues/235 POC2,POC4
Also cleanup checking of symbol number and .st_name
in POC1,POC3,POC5,POC7,POC9,POC11
modified: p_lx_elf.cpp
modified: p_lx_elf.h
2018-12-15 19:16:14 -08:00
John Reiser
606ad08dd1
Check symbol number and .st_name
...
https://github.com/upx/upx/issues/235 POC1,POC3,POC7,POC9
modified: p_elf_enum.h
modified: p_lx_elf.h
modified: p_lx_elf.cpp
2018-12-14 21:32:49 -08:00
John Reiser
75c31dff1d
Use THUMB 'ret' when in THUMB mode.
...
https://github.com/upx/upx/issues/236
https://github.com/upx/upx/issues/229
modified: src/arm.v4t-linux.shlib-init.S
modified: arm.v5t-linux.shlib-init.h
modified: tmp/arm.v5t-linux.shlib-init.bin.dump
2018-12-13 20:14:14 -08:00
John Reiser
473b90419f
Mach-o for 'rust' has intermixed LC_SEGMENT64 "__DWARF" with 0==.vmsize
...
https://github.com/upx/upx/issues/222
modified: p_mach.cpp
modified: stub/src/amd64-darwin.macho-main.c
modified: stub/src/amd64-darwin.macho-upxmain.c
also *-darwin.macho-fold.{h,map}
2018-10-13 21:06:37 -07:00
John Reiser
f88b85e126
MSVC error C4146: unary minus operator applied to unsigned type, result still unsigned
...
modified: p_lx_elf.cpp
2018-10-09 20:27:19 -07:00
John Reiser
b122f8e9d0
Optimize /proc/self/exe. Sync stubs.
...
See also commit 78b1da5c00be6e51b1f01427ca9c4f89cf916634 earlier today
for https://github.com/upx/upx/issues/225 .
modified: stub/src/arm.v4a-linux.elf-entry.S
modified: stub/src/arm.v4a-linux.elf-fold.S
also *.h, *.map, *.bin.dump
2018-10-09 20:11:34 -07:00
John Reiser
cb8b1595a1
Pay more attention to 0==.e_shnum
...
modified: p_lx_elf.cpp
2018-10-09 19:38:43 -07:00
John Reiser
1bee919276
cosmetic: developer quality-of-life
...
modified: packer.cpp
2018-10-09 19:35:03 -07:00
John Reiser
78b1da5c00
Avoid dcache==>icache trouble with mflg_data; heuristic cache_flush for 32-bit ARM
...
modified: arm.v4a-linux.elf-entry.S
modified: arm.v4a-linux.elf-fold.S
2018-10-09 19:24:50 -07:00
John Reiser
bb8239ccda
more DPRINTF
...
modified: amd64-linux.elf-main.c
2018-10-09 19:23:06 -07:00
John Reiser
2a594ad0a7
Better return value when de-compression method mismatches.
...
modified: arch/amd64/lzma_d.S
modified: arch/amd64/nrv2b_d.S
modified: arch/amd64/nrv2d_d.S
modified: arch/amd64/nrv2e_d.S
2018-10-07 10:15:48 -07:00
John Reiser
b05073550c
"pop %rcx", not %ecx
...
modified: amd64-darwin.macho-entry.S
modified: amd64-linux.elf-entry.S
2018-10-07 10:11:45 -07:00
John Reiser
37d6a34e58
MSVC is a nimrod. (All verions 10.0 through 14.1)
...
"(4074): error C4146: unary minus operator applied to unsigned type, result still unsigned"
So what? Many programmers are much better than the typical Microsoft coder.
The C standard GUARANTEES that unsigned arithmetic uses two's complement,
ignores overflow, and the result is what the hardware adder produces.
modified: p_lx_elf.cpp
2018-09-23 20:45:07 -07:00
John Reiser
4f0cba9bb6
/proc/self/exe mapping had wrong offset in stub for 32-bit ARM
...
https://github.com/upx/upx/issues/221
modified: stub/src/arm.v4a-linux.elf-entry.S
modified: stub/src/arm.v4a-linux.elf-fold.S
also arm*.*-linux.elf-*.{h,map}
2018-09-23 20:32:37 -07:00
John Reiser
4d1c754af9
Preserve Mach_segment_header.flags; fix non-PIE main programs on MacOS.
...
https://github.com/upx/upx/issues/222
modified: p_mach.cpp
modified: p_mach.h
modified: stub/src/amd64-darwin.macho-entry.S
also *.macho-*.h, *.macho-fold.map, amd64-darwin.macho-entry.bin.dump
2018-09-22 18:50:37 -07:00
John Reiser
c1cfde21d7
Map when .vmsize (not .filesize). More debugging DPRINTF;
...
modified: stub/src/amd64-darwin.macho-main.c
also *.macho-fold.h, *.macho-fold.map
2018-09-22 13:06:45 -07:00
John Reiser
bb1f9cdecd
Propagate pagezero_vmsize; fix overlay_offset.
...
modified: p_mach.cpp
2018-09-22 12:11:51 -07:00
John Reiser
b259b0ca28
Print failed syscalls to stderr
...
modified: stub/src/amd64-darwin.macho-fold.S
2018-09-22 12:09:22 -07:00
John Reiser
0051dfc84f
--android-shlib: Relocate ABS _edata etc.
...
https://github.com/upx/upx/issues/220
modified: p_lx_elf.cpp
modified: p_lx_elf.h
2018-09-16 15:10:40 -07:00
John Reiser
9f294e6ce5
Fix "upx -d" de-compression when input is compressed Android shlib.
...
https://github.com/upx/upx/issues/220
modified: p_lx_elf.cpp
2018-09-16 13:09:43 -07:00
John Reiser
153ea8be03
MSVC signed/unsigned
...
modified: p_mach.cpp
2018-09-11 21:13:27 -07:00
John Reiser
f3f7f97f8d
MSVC signed/unsigned
...
modified: p_mach.cpp
2018-09-09 15:58:24 -07:00
John Reiser
9bb6854e64
Fix stub for MacOS El Capitan, which has "pre-linked" /usr/bin/dyld
...
https://github.com/upx/upx/issues/218
https://github.com/Homebrew/homebrew-core/pull/31846
modified: src/amd64-darwin.macho-main.c
also *-darwin.mach-fold.{h,map}
2018-09-09 15:37:54 -07:00
John Reiser
4bba1e6cb7
Merge branch 'devel' of https://github.com/upx/upx into devel
2018-09-08 11:43:41 -07:00
John Reiser
597e8fe407
Fix de-compression for Mach-O files (MacOS)
...
https://github.com/upx/upx/issues/219
modified: p_mach.cpp
modified: p_mach.h
2018-09-08 11:41:38 -07:00
Markus F.X.J. Oberhumer
556c541ffb
Sync with latest upx-testsuite changes.
2018-09-06 13:57:15 +02:00
John Reiser
5963f18f7c
Merge branch 'devel' of https://github.com/upx/upx into devel
2018-09-04 20:54:21 -07:00
John Reiser
0dac6b7be3
MacOS de-compression (upx -d)
...
https://github.com/upx/upx/issues/218
modified: p_mach.cpp
2018-09-04 20:52:17 -07:00
Markus F.X.J. Oberhumer
296ede780b
Update Travis.
2018-08-29 15:13:46 +02:00
Markus F.X.J. Oberhumer
faaa19331a
Update Travis.
2018-08-27 16:43:21 +02:00