John Reiser
6871c2fc0a
Tweak unoptimizeReloc again
...
modified: packer.cpp
2020-12-10 19:56:02 -08:00
Markus F.X.J. Oberhumer
4ae3a8b2b0
Revert useless "fast exit" check from b2c00aa637
.
2020-12-08 07:13:11 +01:00
Markus F.X.J. Oberhumer
f2e562b5de
Update CI.
2020-12-08 06:22:10 +01:00
Markus F.X.J. Oberhumer
f7e2266c3f
Start using some C++ 14 features.
2020-12-08 05:40:17 +01:00
Markus F.X.J. Oberhumer
361a3056cb
Update submodules.
2020-12-08 05:40:07 +01:00
Markus F.X.J. Oberhumer
ca0437556d
Start using "noexcept".
2020-12-08 00:45:41 +01:00
Markus F.X.J. Oberhumer
51899957a9
Require C++ 14. Finally!
...
This is the default for gcc >= 6, clang >= 6 and MSVC >= 2019.
2020-12-07 23:05:13 +01:00
Markus F.X.J. Oberhumer
7b0b760d78
src/Makefile: add -Wsign-compare to warning flags to better match MSVC.
2020-12-07 23:04:37 +01:00
Markus F.X.J. Oberhumer
4f5866b5a7
Remove AppVeyor CI.
2020-12-07 23:04:01 +01:00
John Reiser
a6b5033cf1
Fix overlap detection for PE unoptimizeReloc()
...
https://github.com/upx/upx/issues/438
modified: packer.cpp
2020-12-10 19:31:56 -08:00
John Reiser
a6296ecd67
Avoid complaint from "gcc -Wsign-conversion"
...
modified: compress_lzma.cpp
modified: compress_zlib.cpp
2020-12-06 15:22:58 -08:00
John Reiser
bb1df15958
Use 'mb_' prefix on instances of MemBuffer
...
modified: pefile.cpp
modified: pefile.h
2020-12-05 13:53:14 -08:00
Liam Murphy
249431f45f
tweak formatting to reduce diff
2020-11-26 03:00:21 +00:00
Liam Murphy
cbe129795e
migrate to MemBuffer class from New() to remove leak
2020-11-26 00:14:00 +00:00
John Reiser
2a135e245b
Prefer MemBuffer instead of New()+delete
...
https://github.com/upx/upx/issues/428
modified: pefile.cpp
modified: pefile.h
2020-12-05 13:44:19 -08:00
Markus F.X.J. Oberhumer
05a0b3557a
Update CI.
2020-12-05 14:04:46 +01:00
Markus F.X.J. Oberhumer
c7cfe8b608
Remove Travis CI.
2020-12-05 06:29:57 +01:00
Markus F.X.J. Oberhumer
8d3e1d28a7
Update GitHub CI.
2020-12-05 04:37:30 +01:00
John Reiser
7841e15583
Prefer MemBuffer instead of New()+delete
...
https://github.com/upx/upx/issues/428
modified: p_lx_elf.cpp
modified: p_lx_elf.h
2020-12-05 10:31:55 -08:00
Markus F.X.J. Oberhumer
dd164fbc86
Undo Makefile change in 9b0f523d00
.
2020-12-03 18:16:11 +01:00
Markus F.X.J. Oberhumer
23fe02e84a
Add GitHub Actions CI.
2020-12-03 13:58:38 +01:00
Markus F.X.J. Oberhumer
94e72238f2
Fix some warnings.
2020-12-03 03:10:12 +01:00
Markus F.X.J. Oberhumer
8f7ac520eb
Run clang-format.
2020-12-03 02:15:14 +01:00
Markus F.X.J. Oberhumer
bd193201b2
Avoid a clang-11 warning.
2020-12-03 02:14:47 +01:00
Markus F.X.J. Oberhumer
8ced672d24
docs: add a note about security considerations.
2020-12-03 02:10:05 +01:00
Markus F.X.J. Oberhumer
f218812858
Fix spelling of some constants.
2020-12-03 01:46:30 +01:00
Markus F.X.J. Oberhumer
8a7b980fc0
Avoid a MSVC warning.
2020-12-03 01:44:09 +01:00
Markus F.X.J. Oberhumer
385c9877f8
Update submodules.
2020-12-03 01:27:05 +01:00
John Reiser
10df93536e
Yet another attempt to suppress MSVC C4245
...
https://github.com/upx/upx/issues/435
modified: pefile.cpp
2020-11-29 00:01:22 -08:00
John Reiser
6cad27896f
Another attempt to suppress MSVC C4245
...
https://github.com/upx/upx/issues/435
modified: pefile.cpp
2020-11-28 23:53:49 -08:00
John Reiser
052392d97b
Attempt workaround for MSVC C4245 signed/unsigned mismatch in template 'argument'
...
https://github.com/upx/upx/issues/435
modified: pefile.cpp
2020-11-28 20:23:01 -08:00
John Reiser
ce6b5a0688
Fix MSVC warning C4245: signed/unsigned mismatch in prototype matching
...
The type of the return value must match exactly the function prototype.
MSVC warning C4245: 'argument': conversion from 'int' to 'unsigned int', signed/unsigned mismatch
https://github.com/upx/upx/issues/435
modified: bele_policy.h
2020-11-28 19:45:54 -08:00
John Reiser
1879185e42
Check Mach_command.cmdsize
...
https://github.com/upx/upx/issues/426
Also use MemBuffer to avoid leaks that result from throw()
modified: p_mach.cpp
modified: p_mach.h
2020-11-28 10:56:28 -08:00
John Reiser
a928a08f9d
ptrTEXT in PackMachBase<T>::canUnpack()
...
https://github.com/upx/upx/issues/417
modified: p_mach.cpp
2020-11-06 19:14:18 -08:00
John Reiser
1805cb6857
headway vs size
...
https://github.com/upx/upx/issues/414
modified: packhead.cpp
2020-11-06 14:25:36 -08:00
Liam Murphy
6ce625b535
fix build
2020-11-05 22:21:19 +00:00
Liam Murphy
4702f12818
tweaks: some extra checks on lengths
2020-11-05 04:43:40 +00:00
Matthijs Lavrijsen
4f3054f07d
PE: only add a TLS relocation if tls_handler_offset_reloc != 0
2020-09-08 11:44:56 +02:00
bitraid
0d7bd52e21
Only pack w/ -f PE files that force integrity check
2020-10-31 19:53:33 +02:00
John Reiser
c3466f579c
fillPackHeader: revise and add yet more checks
...
https://github.com/upx/upx/issues/414
https://github.com/upx/upx/pull/415 revised
modified: packhead.cpp
2020-11-06 13:53:29 -08:00
John Reiser
7c105d7af5
omemmove exactly as much
...
Fix 14992260c60b8d6677a677a9cdfae98b11353df7; revealed by testsuite
modified: pefile.cpp
2020-11-05 15:05:52 -08:00
John Reiser
924b229afb
fillPackHeader more checks
...
https://github.com/upx/upx/issues/414
modified: packhead.cpp
2020-11-03 01:58:39 -08:00
John Reiser
890d66ecf0
Avoid overlap when rebuild relocs.
...
Based on a hint from a little bird.
modified: packer.cpp
2020-09-20 15:08:39 -07:00
John Reiser
143049922b
Beware overlap when rebuildImports
...
Based on a hint from a little bird.
modified: pefile.cpp
2020-09-20 14:10:24 -07:00
John Reiser
e6ccef2cf1
MSVC strikes again
...
modified: p_lx_elf.cpp
2020-09-05 19:19:11 -07:00
John Reiser
be61e9f584
Fix 64-bit ET_EXEC
...
https://github.com/upx/upx/issues/405
modified: p_lx_elf.cpp
modified: stub/src/amd64-linux.elf-main.c
modified: ../.github/travis_testsuite_1-expected_sha256sums.sh
modified: stub/amd64-linux.elf-fold.h
modified: stub/arm64-linux.elf-fold.h
modified: stub/powerpc64-linux.elf-fold.h
modified: stub/powerpc64le-linux.elf-fold.h
modified: stub/tmp/amd64-linux.elf-fold.map
modified: stub/tmp/arm64-linux.elf-fold.map
modified: stub/tmp/powerpc64-linux.elf-fold.map
modified: stub/tmp/powerpc64le-linux.elf-fold.map
2020-09-04 10:21:14 -07:00
Mattiwatti
89d0fda9fa
Make PE load config directory address dword aligned
2020-01-21 16:03:40 +01:00
bitraid
6a85bab5da
Don't pack Cotrol Flow Guard PE files
2020-07-28 17:36:13 +03:00
John Reiser
c1a55b063e
0==e_shnum obviates testing of e_shoff
...
modified: p_lx_elf.cpp
2020-07-26 20:00:05 -07:00
John Reiser
77c914bce5
Check de-compressed SHT_SYMTAB
...
https://github.com/upx/upx/issues/396
modified: p_lx_elf.cpp
2020-07-25 09:28:02 -07:00