John Reiser
4ec866594b
Mixing python3 strings with bytes requires .encode and .decode
...
modified: stub/scripts/bin2h.py
modified: stub/scripts/brandelf.py
modified: stub/scripts/gpp_inc.py
modified: stub/scripts/xstrip.py
2025-10-10 08:38:59 -07:00
John Reiser
a3d5a0a7b8
Replace 'has_key' with 'in'
...
modified: src/stub/scripts/bin2h.py
modified: src/stub/scripts/xstrip.py
modified: src/stub/src/arch/i086/cleanasm.py
2025-10-08 14:35:13 -07:00
John Reiser
3a61782f12
no more PYTHON2
...
modified: src/stub/Makefile
2025-10-08 14:18:52 -07:00
John Reiser
36271c3244
python (python3) replaces python2
...
https://github.com/upx/upx/issues/868
Thanks to 'tansy' for the patches to *.py .
modified: .github/workflows/ci.yml
modified: src/stub/scripts/bin2h.py
modified: src/stub/scripts/brandelf.py
modified: src/stub/scripts/gpp_inc.py
modified: src/stub/scripts/xstrip.py
modified: src/stub/src/arch/i086/cleanasm.py
modified: src/stub/src/arch/i086/wdis2gas.py
2025-10-08 08:32:24 -07:00
Markus F.X.J. Oberhumer
3c3caaa567
CI updates
2025-10-07 22:00:31 +02:00
Markus F.X.J. Oberhumer
12d1c6bbda
CI updates
2025-09-30 20:38:33 +02:00
Markus F.X.J. Oberhumer
466ceb4a1f
CI updates
2025-09-18 12:03:48 +02:00
John Reiser
3b71139426
WIP Propagate CETCOMPAT flag for PeFile.
...
https://github.com/upx/upx/issues/909
modified: pefile.cpp
modified: pefile.h
2025-09-13 15:50:01 -07:00
Markus F.X.J. Oberhumer
b11f043d64
CI updates
2025-09-10 11:11:51 +02:00
John Reiser
aef93548f9
Fix memfd_create in shared libraries on amd64 Linux < kernel 6.3
...
https://github.com/upx/upx/issues/929
modified: stub/src/amd64-linux.elf-so_fold.S
plus generated .h .dump
2025-09-09 14:58:00 -07:00
John Reiser
26ca21f6cb
arm.v4a: cancel_sigsegv
...
modified: misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: src/stub/src/arm.v4a-linux.elf-entry.S
modified: src/stub/src/arm.v4a-linux.elf-fold.S
plus generated .h .dump .map
2025-08-21 06:19:21 -07:00
Markus F.X.J. Oberhumer
404fb48668
CI updates
2025-08-21 00:21:15 +02:00
John Reiser
e85e8bec5d
New option --catch-sigsegv on amd64, arm64, arm.v4a
...
Catch SIGSEGV during de-compression, and print state info
("auto debug") using /proc/self/maps and gdb.
This was motivated by suspicion of unreliable hardware
which triggered "Heisenbugs": a crash which cannot be reproduced.
If SIGSGV occurs without the "auto debug" info, then that
implies an error user code after de-compression, often when
user code accesses /proc/self/exe, which is not the un-compressed file.
modified: misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: src/help.cpp
modified: src/main.cpp
modified: src/options.h
modified: src/p_lx_elf.cpp
modified: src/stub/Makefile
modified: src/stub/src/amd64-linux.elf-entry.S
modified: src/stub/src/amd64-linux.elf-fold.S
modified: src/stub/src/arm.v4a-linux.elf-entry.S
modified: src/stub/src/arm.v4a-linux.elf-fold.S
modified: src/stub/src/arm64-linux.elf-entry.S
modified: src/stub/src/arm64-linux.elf-fold.S
plus generated .h .dump .map
2025-08-19 12:25:33 -07:00
John Reiser
4530e5c264
Fix upxfd_create for stubs on PowerPC64
...
https://github.com/upx/upx/issues/925
modified: misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: src/stub/src/powerpc64-linux.elf-fold.S
plus generated .h
2025-08-16 16:00:11 -07:00
Markus F.X.J. Oberhumer
1188d2933b
SIGSEGV: handle and pretty-print on arm64-linux
2025-08-10 09:55:12 +02:00
Markus F.X.J. Oberhumer
4e88556c94
SIGSEGV: handle and pretty-print on amd64-linux
2025-08-10 09:39:29 +02:00
Markus F.X.J. Oberhumer
5d30472ee2
CI updates
2025-08-04 16:05:44 +02:00
Markus F.X.J. Oberhumer
9866b9bca9
SIGSEGV: handle and pretty-print on amd64-linux
2025-08-01 00:49:27 +02:00
John Reiser
bbb886ae4d
gcc 14.2.1-3 lax on signed-vs-unsigned compare
...
modified: p_lx_elf.cpp
2025-07-25 07:14:33 -07:00
John Reiser
b52d3e0772
Detect DT_HASH chain out-of-bounds
...
https://issues.oss-fuzz.com/u/1/issues/430110068
modified: p_lx_elf.cpp
2025-07-24 11:09:58 -07:00
Markus F.X.J. Oberhumer
ae6d5303ba
CI updates
2025-07-25 03:07:51 +02:00
Markus F.X.J. Oberhumer
518712c613
CI updates
2025-07-21 12:26:30 +02:00
Markus F.X.J. Oberhumer
c0c08c9f43
all: post-release version bump
2025-07-20 15:59:04 +02:00
Markus F.X.J. Oberhumer
c4113b6bd6
all: prepare for release
2025-07-20 14:41:25 +02:00
John Reiser
945d9157fa
PowerPC64 editing error affecting -fPIE
...
https://github.com/upx/upx/issues/918
modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: stub/src/powerpc64-linux.elf-fold.S
plus generated powerpc64*-linux.elf-fold.h
2025-07-05 18:10:46 -07:00
Markus F.X.J. Oberhumer
915bfbd82e
CI updates
2025-07-05 22:23:13 +02:00
Markus F.X.J. Oberhumer
7e4e6a3cb1
CI updates
2025-06-26 11:30:46 +02:00
John Reiser
e8c49a2c35
Prevent SIGSEGV on de-compress of modified PE file
...
https://github.com/upx/upx/issues/863
modified: pefile.cpp
2025-05-13 10:51:59 -07:00
Markus F.X.J. Oberhumer
d2e9db7112
CI updates
2025-05-10 13:55:49 +02:00
John Reiser
b728b0e021
buildLinuxLoader needs more space
...
for shlib + lzma + Android
https://github.com/upx/upx/issues/913
modified: p_lx_elf.cpp
2025-05-07 13:52:58 -07:00
John Reiser
a1ef410509
ELF DT_DYNSYM: fix checking of symbol table
...
Particularly JNI_OnLoad
https://github.com/upx/upx/issues/914
modified: p_lx_elf.cpp
2025-05-07 17:02:56 -07:00
Markus F.X.J. Oberhumer
52dde5789e
all: post-release version bump
2025-05-06 14:01:35 +02:00
Markus F.X.J. Oberhumer
730c6ce6c5
all: prepare for release
2025-05-06 12:19:16 +02:00
Markus F.X.J. Oberhumer
5ed1d5b2b3
src/stub: fix ET_DYN with non-zero PT_LOAD[0].p_vaddr
2025-05-01 20:42:39 +02:00
Markus F.X.J. Oberhumer
23c70ec447
src/stub: fix ET_DYN with non-zero PT_LOAD[0].p_vaddr
2025-05-01 20:37:36 +02:00
Markus F.X.J. Oberhumer
e29e73a4e4
src/help.cpp: mention --fileinfo
2025-05-01 20:33:34 +02:00
Markus F.X.J. Oberhumer
27289a7589
src/stub: flush datacache before msync
2025-04-29 17:53:33 +02:00
Markus F.X.J. Oberhumer
e509bb87e9
src/stub: flush datacache before msync
2025-04-29 17:44:47 +02:00
Markus F.X.J. Oberhumer
b5789fb321
src: minor cleanups
2025-04-21 14:04:27 +02:00
Markus F.X.J. Oberhumer
a468b92e3a
PowerPC Psync flush datacache before msync
2025-04-20 15:06:58 +02:00
John Reiser
ddf0b50c6d
PowerPC Psync flush datacache before msync
...
https://github.com/upx/upx/issues/907
modified: stub/src/powerpc-linux.elf-fold.S
modified: stub/src/powerpc64-linux.elf-fold.S
2025-04-20 14:55:06 +02:00
Markus F.X.J. Oberhumer
3af2b21869
CI updates
2025-04-11 09:41:08 +02:00
Markus F.X.J. Oberhumer
c4bfebeceb
CI updates
2025-04-10 20:04:34 +02:00
Markus F.X.J. Oberhumer
d23484b9db
CI updates
2025-04-09 11:32:13 +02:00
John Reiser
071579b5b6
Cleanup after broken tools
...
zig/powerpc64le/musl newly undefined openat64; adjacent literal strings
in C source were not concatenated; comment introduced by double slash
did not ignore backslash in rest of line
modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: stub/src/mipsel.r3000-linux.elf-fold.S
modified: stub/src/powerpc-linux.elf-entry.S
modified: stub/src/powerpc-linux.elf-fold.S
modified: stub/src/powerpc64-linux.elf-entry.S
modified: stub/src/powerpc64-linux.elf-fold.S
modified: stub/src/upxfd_linux.c
2025-03-21 13:25:02 -07:00
John Reiser
ff9d577e46
O_DIRECTORY is architecture-dependent
...
https://github.com/upx/upx/issues/902
modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: stub/src/arm64-linux.elf-entry.S
modified: stub/src/arm64-linux.elf-fold.S
modified: stub/src/powerpc64-linux.elf-fold.S
modified: stub/src/upxfd_android.c
modified: stub/src/upxfd_linux.c
plus generated .h .map .dump
2025-03-21 10:54:27 -07:00
John Reiser
a25c20ee0b
M_LZMA with hi parameter bytes confused --ultra-brute
...
https://github.com/upx/upx/issues/900
modified: packhead.cpp
modified: p_lx_elf.cpp
2025-03-20 09:48:00 -07:00
John Reiser
ff75a462a4
Fighting over .e_shentsize
...
modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: p_lx_elf.cpp
2025-03-18 13:48:19 -07:00
John Reiser
e0b6ff1924
More checking in unpack()
...
https://github.com/upx/upx/issues/898
modified: p_lx_elf.cpp
2025-03-18 08:40:08 -07:00
John Reiser
1c5fae74e0
Fix recovery of readlink() when /proc/self/exe is missing
...
https://github.com/upx/upx/issues/897
modified: ../misc/testsuite/upx_testsuite_1-expected_sha256sums.sh
modified: stub/src/arm.v4a-linux.elf-fold.S
plus generated .h
2025-03-16 12:37:57 -07:00