Markus F.X.J. Oberhumer
c69b4561fb
src: initialize some fields to suppress harmless valgrind errors
2024-04-24 12:36:22 +02:00
Markus F.X.J. Oberhumer
9d26713b1a
Add experimental (and undocumented) --help-verbose and --help-short options.
2024-04-21 14:20:18 +02:00
Markus F.X.J. Oberhumer
24f3824524
CI updates and minor cleanups
2024-04-01 20:31:05 +02:00
Markus F.X.J. Oberhumer
5d649f83ec
all: assorted cleanups
2024-01-24 20:53:14 +01:00
Markus F.X.J. Oberhumer
47fc230893
all: welcome 2024
2024-01-03 17:47:25 +01:00
Markus F.X.J. Oberhumer
d8be2ed276
src/pefile.cpp: cleanup reloc handling and add more checks
2023-10-14 19:24:44 +02:00
Markus F.X.J. Oberhumer
632c7c4826
all: assorted cleanups; introduce undocumented '--sysinfo' option
2023-10-05 03:51:27 +02:00
Markus F.X.J. Oberhumer
38d6cb090c
src/packer.cpp: fix bug in constructor introduced during cleanup
...
Introduced in 10e759f1f1
2023-09-05 21:09:17 +02:00
Markus F.X.J. Oberhumer
8975e2a6b5
src: create util/cxxlib.h
2023-08-16 10:05:59 +02:00
Markus F.X.J. Oberhumer
394cd77bec
all: cleanups
2023-08-16 01:06:52 +02:00
Markus F.X.J. Oberhumer
10e759f1f1
src: minor cleanups
2023-08-11 13:32:53 +02:00
Markus F.X.J. Oberhumer
777d4f5279
src: refactoring: create packhead.h and move some methods
2023-08-11 03:57:20 +02:00
Markus F.X.J. Oberhumer
c65c882ecc
src: class Packer decomposition, introduce PackerBase
2023-08-10 20:40:27 +02:00
Markus F.X.J. Oberhumer
161d20e614
CI: update
2023-07-24 14:47:32 +02:00
Markus F.X.J. Oberhumer
828f4a63bf
src: add some "explicit"; cleanups
2023-07-16 07:37:31 +02:00
Markus F.X.J. Oberhumer
682a1e97e4
src: add assert_noexcept()
2023-07-08 12:06:27 +02:00
Markus F.X.J. Oberhumer
5d2c74008e
all: cmake and noexcept updates
2023-06-23 14:13:08 +02:00
Markus F.X.J. Oberhumer
1ff0d137ab
all: misc updates
2023-06-13 16:42:14 +02:00
Markus F.X.J. Oberhumer
75e87a58da
src: rework mem_clear()
2023-06-09 18:20:06 +02:00
Markus F.X.J. Oberhumer
19e84fea62
all: yet more minor updates
2023-06-09 14:12:05 +02:00
Markus F.X.J. Oberhumer
ebf0f2f68a
all: more minor cleanups
2023-05-27 22:58:07 +02:00
Markus F.X.J. Oberhumer
09bd1d8c40
all: misc updates
2023-05-19 13:21:26 +02:00
Markus F.X.J. Oberhumer
15484aa296
all: more cleanups
...
Changes include:
- extract headers.h from conf.h
- use "byte" in some more places
- unify "const" coding style
- pefile.cpp: make sort order deterministic
- simplify some other pefile.cpp code
- CI updates
2023-03-18 21:27:34 +01:00
Markus F.X.J. Oberhumer
a627648249
all: assorted cleanups and updates
...
Changes include:
- add a bunch of "noexcept", mostly to operators and forceinline
- use "uchar"
- use "charptr"
- rename options_t to Options
- add ptr_check_no_overlap()
- rewrite p_exe.cpp, NFCI
- clang-format help.cpp
- spelling fixes
2023-03-15 00:19:55 +01:00
Markus F.X.J. Oberhumer
e1edc5f50a
src: use 'byte' instead of 'upx_byte'; NFCI
2023-02-21 19:27:23 +01:00
Markus F.X.J. Oberhumer
4a8efd2e2f
src: rework optimizeReloc handling; cleanups
2023-02-21 15:19:24 +01:00
Markus F.X.J. Oberhumer
b8d9c2b755
all: assorted updates and cleanups
2023-02-05 17:20:32 +01:00
Markus F.X.J. Oberhumer
0653bb5a72
src: some xspan cleanups
2023-01-30 11:03:11 +01:00
John Reiser
39442e6282
initLoader() 4th parameter allows larger output size
...
modified: packer.cpp
modified: packer.h
2023-01-05 15:28:12 -08:00
Markus F.X.J. Oberhumer
dd1d5a92d2
all: welcome 2023
2023-01-01 19:49:30 +01:00
Markus F.X.J. Oberhumer
e2b86a49db
src: fix recently introduced bug in unoptimzeReloc
2022-10-06 14:09:45 +02:00
Markus F.X.J. Oberhumer
c75d7a685d
src: major cleanups, introduce new eXtended Span class
...
- initial minimally invasive eXtended Span implementation
- rename ptr_diff to ptr_diff_bytes
- move some files to util subdir
- lots of cleanups
- start using the new checked pointers - this needs some real-world testing
2022-09-16 13:26:13 +02:00
Markus F.X.J. Oberhumer
4318cc22ee
src: cleanup option handling, add testcases; fixes #587
2022-09-16 13:26:13 +02:00
Markus F.X.J. Oberhumer
c69fcfff9d
src: doctest: start work on using doctest
2022-09-16 13:26:13 +02:00
Markus F.X.J. Oberhumer
d001a63bce
Welcome 2022.
2022-09-04 04:24:39 +02:00
Markus F.X.J. Oberhumer
5f9c50cd3e
clang-format
2022-08-10 23:29:43 +02:00
John Reiser
e7ca5c54ff
Fix --brute for p_lx_elf.cpp, which compresses multiple pieces
...
Force all pieces to use the same de-compressor.
(Future: allow each PT_LOAD to choose its own.)
Has minor wobbles due to page alignment, and size of de-compressor.
64-bit only for now.
https://github.com/upx/upx/issues/570
https://github.com/upx/upx/issues/297
modified: p_lx_elf.cpp
modified: p_unix.cpp
modified: packer.cpp
modified: packer.h
2022-03-22 11:46:25 -07:00
John Reiser
663d6b466b
WIP: clarify compressWithFilters; reduce size of obuf for PackLinuxElf64
...
modified: p_lx_elf.cpp
modified: packer.cpp
modified: packer.h
2022-03-21 13:49:46 -07:00
John Reiser
2e64a277f8
Fix headway during optimizeReloc()
...
Later: "Assertion `(soxrelocs == 0) == !has_oxrelocs' failed."
https://github.com/upx/upx/issues/552
modified: packer.cpp
modified: packer.h
modified: pefile.cpp
2021-12-31 10:27:58 -08:00
John Reiser
ea567a8b14
Check when optimizeRelocs()
...
https://github.com/upx/upx/issues/513
modified: packer.h
modified: packer.cpp
modified: pefile.cpp
modified: p_wcle.cpp
modified: p_tmt.cpp
2021-12-29 16:57:52 -08:00
bitraid
c5cc83d424
Fix unoptimizeReloc() to process all relocs
2021-04-21 23:06:55 +03:00
Markus F.X.J. Oberhumer
f6ff5a2805
Cleanups: start working on -Wsuggest-override, add some "final". NFCI.
2021-03-28 21:19:29 +02:00
John Reiser
23f63e4196
WIP unpacking ELF shared library
...
modified: Makefile
modified: lzma-sdk
modified: p_lx_elf.cpp
modified: p_lx_elf.h
modified: p_mach.cpp
modified: p_unix.cpp
modified: p_unix.h
modified: packer.cpp
modified: packer.h
modified: stub/arm64-linux.elf-fold.h
modified: stub/src/arm64-linux.elf-fold.S
modified: stub/tmp/arm64-linux.elf-fold.map
2021-01-15 14:11:09 -08:00
John Reiser
ed3f45953e
Try not to run off the end of selfrel_fixups.
...
https://github.com/upx/upx/issues/455
modified: p_wcle.cpp
modified: packer.cpp
2021-01-17 19:21:32 -08:00
Markus F.X.J. Oberhumer
d86d5314ba
Modernize libc usage: more cleanups.
2021-01-05 22:03:29 +01:00
Markus F.X.J. Oberhumer
700c8730cf
Modernize libc usage: stop using `off_t`, use modern printf.
...
C++ 14 is here, and old versions of MSVC and MSVCRT have
haunted us long enough.
2021-01-05 18:52:05 +01:00
Markus F.X.J. Oberhumer
2575eef3c0
clang-format more files.
...
"Gofmt's style is nobody's favourite, but gofmt is everybody's favourite."
- Rob Pike
2021-01-04 20:26:31 +01:00
Markus F.X.J. Oberhumer
f962afe146
Various cosmetic updates and refactors. NFCI.
2021-01-04 17:20:57 +01:00
Markus F.X.J. Oberhumer
d045b7f223
Update bele.h to better work with modern compilers.
2021-01-02 16:45:58 +01:00
Markus F.X.J. Oberhumer
9131d5216f
Welcome 2021.
2021-01-01 20:39:22 +01:00