Markus F.X.J. Oberhumer
08a37c9171
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
98846b3cbb
Remove AppVeyor CI.
2020-12-07 23:04:01 +01:00
John Reiser
830b2421df
Avoid complaint from "gcc -Wsign-conversion"
...
modified: compress_lzma.cpp
modified: compress_zlib.cpp
2020-12-06 15:22:58 -08:00
John Reiser
e73404e53c
Merge branch 'devel' of https://github.com/upx/upx into devel
2020-12-05 15:02:48 -08:00
John Reiser
653e7851d4
Merge pull request #432 from liamjm/mem_leak_issue_428
...
Migrate to MemBuffer to remove mem leak
2020-12-05 15:02:26 -08:00
John Reiser
db3c86d808
Use 'mb_' prefix on instances of MemBuffer
...
modified: pefile.cpp
modified: pefile.h
2020-12-05 13:53:14 -08:00
John Reiser
5ca0abe57b
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
John Reiser
cb9ee887c1
Merge branch 'devel' of https://github.com/upx/upx into devel
2020-12-05 10:33:26 -08:00
John Reiser
d9a247d0cf
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
ad20c18c35
Update CI.
2020-12-05 17:32:45 +01:00
Markus F.X.J. Oberhumer
7978b8066f
Remove Travis CI.
2020-12-05 06:29:57 +01:00
Markus F.X.J. Oberhumer
a92aca6506
Update GitHub CI.
2020-12-05 06:28:43 +01:00
Markus F.X.J. Oberhumer
3f30e411b0
Undo Makefile change in 9b0f523d00.
2020-12-03 18:16:11 +01:00
Markus F.X.J. Oberhumer
35ae7c1714
Add GitHub Actions CI.
2020-12-03 18:01:51 +01:00
Markus F.X.J. Oberhumer
159bec1cd4
Fix some warnings.
2020-12-03 03:10:12 +01:00
Markus F.X.J. Oberhumer
3da5f78901
Run clang-format.
2020-12-03 02:15:14 +01:00
Markus F.X.J. Oberhumer
22d6706de5
Avoid a clang-11 warning.
2020-12-03 02:14:47 +01:00
Markus F.X.J. Oberhumer
4575706985
docs: add a note about security considerations.
2020-12-03 02:10:05 +01:00
Markus F.X.J. Oberhumer
62ff95e308
Fix spelling of some constants.
2020-12-03 01:46:30 +01:00
Markus F.X.J. Oberhumer
92064c30ab
Avoid a MSVC warning.
2020-12-03 01:44:09 +01:00
Markus F.X.J. Oberhumer
231f07096f
Update submodules.
2020-12-03 01:27:05 +01:00
John Reiser
b19f5f3282
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
037e53f42c
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
1bdfa39b45
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
84174b9dd8
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
eb66470933
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
Liam Murphy
579847073b
tweak formatting to reduce diff
2020-11-26 03:00:21 +00:00
Liam Murphy
edb8eb1edc
migrate to MemBuffer class from New() to remove leak
2020-11-26 00:14:00 +00:00
John Reiser
d488122324
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
c691c1a196
headway vs size
...
https://github.com/upx/upx/issues/414
modified: packhead.cpp
2020-11-06 14:25:36 -08:00
John Reiser
20a0119a12
Merge pull request #416 from liamjm/packheader_more_checks
...
tweaks: some extra checks on lengths
2020-11-06 14:15:56 -08:00
John Reiser
5cf1aef9fe
Merge pull request #407 from Mattiwatti/ignore-bogus-tls-relocs
...
PE: only add a TLS relocation if tls_handler_offset_reloc != 0
2020-11-06 14:11:00 -08:00
John Reiser
216910263f
Merge pull request #413 from bitraid/pe-integrity
...
Require -f to pack a PE file that demands run-time integrity checking
2020-11-06 14:06:07 -08:00
John Reiser
b9fcbd9fbe
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
1faaba8f4c
omemmove exactly as much
...
Fix 14992260c60b8d6677a677a9cdfae98b11353df7; revealed by testsuite
modified: pefile.cpp
2020-11-05 15:05:52 -08:00
Liam Murphy
acfe5fd5be
rebase
2020-11-05 22:23:26 +00:00
Liam Murphy
835d26a6c4
fix build
2020-11-05 22:21:19 +00:00
Liam Murphy
b2c00aa637
tweaks: some extra checks on lengths
2020-11-05 22:03:47 +00:00
Liam Murphy
84c8e916f6
tweaks: some extra checks on lengths
2020-11-05 04:43:40 +00:00
bitraid
3e30839501
Only pack w/ -f PE files that force integrity check
2020-11-04 10:14:02 +02:00
John Reiser
a18ff44eaa
fillPackHeader more checks
...
https://github.com/upx/upx/issues/414
modified: packhead.cpp
2020-11-03 01:58:39 -08:00
John Reiser
e03310fcc6
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
14992260c6
Beware overlap when rebuildImports
...
Based on a hint from a little bird.
modified: pefile.cpp
2020-09-20 14:10:24 -07:00
Matthijs Lavrijsen
fd7102b14c
PE: only add a TLS relocation if tls_handler_offset_reloc != 0
2020-09-08 11:44:56 +02:00
John Reiser
107cd48c93
MSVC strikes again
...
modified: p_lx_elf.cpp
2020-09-05 19:19:11 -07:00
John Reiser
0a27bff517
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
John Reiser
6428292477
Merge pull request #335 from Mattiwatti/fix-loadconf-align
...
PE: fix load configuration directory alignment
2020-08-09 07:33:03 -07:00
John Reiser
fc1c1924ab
Merge pull request #399 from bitraid/no-cfg-pe
...
Don't pack Cotrol Flow Guard PE files
2020-08-09 07:12:39 -07:00
bitraid
c7c7eb6a14
Don't pack Cotrol Flow Guard PE files
2020-07-28 17:36:13 +03:00
John Reiser
ebe4d2b78f
0==e_shnum obviates testing of e_shoff
...
modified: p_lx_elf.cpp
2020-07-26 20:00:05 -07:00