Commit Graph

  • 9131d5216f Welcome 2021. Markus F.X.J. Oberhumer 2021-01-01 20:39:22 +01:00
  • fb14a7991d Fix Makefile breakage in previous commit. Markus F.X.J. Oberhumer 2020-12-15 02:15:34 +01:00
  • ff53862dab Extract upx_main() for compilation with -DWITH_GUI. Markus F.X.J. Oberhumer 2020-12-14 22:10:07 +01:00
  • 49245a20c5 Update Makefile and compiler checks so that users don't inadvertently change mandatory compiler flags. Markus F.X.J. Oberhumer 2020-12-14 20:53:54 +01:00
  • 13bc031163 Check DT_REL/DT_RELA, DT_RELSZ/DT_RELASZ John Reiser 2020-12-11 13:38:18 -08:00
  • 0c18c1c35c Include --lzma as a compression tuning option in --help. John Reiser 2020-12-11 12:34:38 -08:00
  • 63dc19ce25 -std=c++14 John Reiser 2020-12-11 11:38:38 -08:00
  • 6871c2fc0a Tweak unoptimizeReloc again John Reiser 2020-12-10 19:56:02 -08:00
  • 4ae3a8b2b0 Revert useless "fast exit" check from b2c00aa637. Markus F.X.J. Oberhumer 2020-12-08 07:13:11 +01:00
  • f2e562b5de Update CI. Markus F.X.J. Oberhumer 2020-12-08 06:22:10 +01:00
  • f7e2266c3f Start using some C++ 14 features. Markus F.X.J. Oberhumer 2020-12-08 05:40:17 +01:00
  • 361a3056cb Update submodules. Markus F.X.J. Oberhumer 2020-12-08 05:40:07 +01:00
  • ca0437556d Start using "noexcept". Markus F.X.J. Oberhumer 2020-12-08 00:45:41 +01:00
  • 51899957a9 Require C++ 14. Finally! Markus F.X.J. Oberhumer 2020-12-07 23:05:13 +01:00
  • 7b0b760d78 src/Makefile: add -Wsign-compare to warning flags to better match MSVC. Markus F.X.J. Oberhumer 2020-12-07 23:04:37 +01:00
  • 4f5866b5a7 Remove AppVeyor CI. Markus F.X.J. Oberhumer 2020-12-07 23:04:01 +01:00
  • a6b5033cf1 Fix overlap detection for PE unoptimizeReloc() John Reiser 2020-12-10 19:31:56 -08:00
  • a6296ecd67 Avoid complaint from "gcc -Wsign-conversion" John Reiser 2020-12-06 15:22:58 -08:00
  • bb1df15958 Use 'mb_' prefix on instances of MemBuffer John Reiser 2020-12-05 13:53:14 -08:00
  • 249431f45f tweak formatting to reduce diff Liam Murphy 2020-11-26 03:00:21 +00:00
  • cbe129795e migrate to MemBuffer class from New() to remove leak Liam Murphy 2020-11-26 00:14:00 +00:00
  • 2a135e245b Prefer MemBuffer instead of New()+delete John Reiser 2020-12-05 13:44:19 -08:00
  • 05a0b3557a Update CI. Markus F.X.J. Oberhumer 2020-12-05 14:04:46 +01:00
  • c7cfe8b608 Remove Travis CI. Markus F.X.J. Oberhumer 2020-12-05 06:29:57 +01:00
  • 8d3e1d28a7 Update GitHub CI. Markus F.X.J. Oberhumer 2020-12-05 04:37:30 +01:00
  • 7841e15583 Prefer MemBuffer instead of New()+delete John Reiser 2020-12-05 10:31:55 -08:00
  • dd164fbc86 Undo Makefile change in 9b0f523d00. Markus F.X.J. Oberhumer 2020-12-03 18:16:11 +01:00
  • 23fe02e84a Add GitHub Actions CI. Markus F.X.J. Oberhumer 2020-12-03 13:58:38 +01:00
  • 94e72238f2 Fix some warnings. Markus F.X.J. Oberhumer 2020-12-03 03:10:12 +01:00
  • 8f7ac520eb Run clang-format. Markus F.X.J. Oberhumer 2020-12-03 02:15:14 +01:00
  • bd193201b2 Avoid a clang-11 warning. Markus F.X.J. Oberhumer 2020-12-03 02:14:47 +01:00
  • 8ced672d24 docs: add a note about security considerations. Markus F.X.J. Oberhumer 2020-12-03 02:10:05 +01:00
  • f218812858 Fix spelling of some constants. Markus F.X.J. Oberhumer 2020-12-03 01:46:30 +01:00
  • 8a7b980fc0 Avoid a MSVC warning. Markus F.X.J. Oberhumer 2020-12-03 01:44:09 +01:00
  • 385c9877f8 Update submodules. Markus F.X.J. Oberhumer 2020-12-03 01:27:05 +01:00
  • 10df93536e Yet another attempt to suppress MSVC C4245 John Reiser 2020-11-29 00:01:22 -08:00
  • 6cad27896f Another attempt to suppress MSVC C4245 John Reiser 2020-11-28 23:53:49 -08:00
  • 052392d97b Attempt workaround for MSVC C4245 signed/unsigned mismatch in template 'argument' John Reiser 2020-11-28 20:23:01 -08:00
  • ce6b5a0688 Fix MSVC warning C4245: signed/unsigned mismatch in prototype matching John Reiser 2020-11-28 19:45:54 -08:00
  • 1879185e42 Check Mach_command.cmdsize John Reiser 2020-11-28 10:56:28 -08:00
  • a928a08f9d ptrTEXT in PackMachBase<T>::canUnpack() John Reiser 2020-11-06 19:14:18 -08:00
  • 1805cb6857 headway vs size John Reiser 2020-11-06 14:25:36 -08:00
  • 6ce625b535 fix build Liam Murphy 2020-11-05 22:21:19 +00:00
  • 4702f12818 tweaks: some extra checks on lengths Liam Murphy 2020-11-05 04:43:40 +00:00
  • 4f3054f07d PE: only add a TLS relocation if tls_handler_offset_reloc != 0 Matthijs Lavrijsen 2020-09-08 11:44:56 +02:00
  • 0d7bd52e21 Only pack w/ -f PE files that force integrity check bitraid 2020-10-31 19:53:33 +02:00
  • c3466f579c fillPackHeader: revise and add yet more checks John Reiser 2020-11-06 13:53:29 -08:00
  • 7c105d7af5 omemmove exactly as much John Reiser 2020-11-05 15:05:52 -08:00
  • 924b229afb fillPackHeader more checks John Reiser 2020-11-03 01:58:39 -08:00
  • 890d66ecf0 Avoid overlap when rebuild relocs. John Reiser 2020-09-20 15:08:39 -07:00
  • 143049922b Beware overlap when rebuildImports John Reiser 2020-09-20 14:10:24 -07:00
  • e6ccef2cf1 MSVC strikes again John Reiser 2020-09-05 19:19:11 -07:00
  • be61e9f584 Fix 64-bit ET_EXEC John Reiser 2020-09-04 10:21:14 -07:00
  • 89d0fda9fa Make PE load config directory address dword aligned Mattiwatti 2020-01-21 16:03:40 +01:00
  • 6a85bab5da Don't pack Cotrol Flow Guard PE files bitraid 2020-07-28 17:36:13 +03:00
  • c1a55b063e 0==e_shnum obviates testing of e_shoff John Reiser 2020-07-26 20:00:05 -07:00
  • 77c914bce5 Check de-compressed SHT_SYMTAB John Reiser 2020-07-25 09:28:02 -07:00
  • cc60f03b2e Check Shdr more John Reiser 2020-07-25 08:19:45 -07:00
  • cc9ccdbbd1 Check .sh_offset and .sh_size in SHT_DYNAMIC and SHT_STRNDX John Reiser 2020-07-25 07:41:43 -07:00
  • 9dfc8f573c Avoid 0==nbucket John Reiser 2020-07-23 05:44:18 -07:00
  • 4e2fdb464a Defend against bad PT_DYNAMIC John Reiser 2020-07-23 05:09:52 -07:00
  • 73b854874e Defend against junk PT_DYNAMIC John Reiser 2020-07-23 04:14:34 -07:00
  • 0016512df1 Unpack: Phdrs must be within expansion of first compressed block John Reiser 2020-07-22 19:34:27 -07:00
  • 527139978a DT_HASH chains might be trimmed (64-bit, too) John Reiser 2020-06-08 12:37:53 -07:00
  • 47bc68fa6b DT_HASH chains might be trimmed John Reiser 2020-06-07 19:35:49 -07:00
  • 972b670a64 Set .b_extra for hdr, especially for Mach-o for 'go'. John Reiser 2020-06-06 17:11:32 -07:00
  • d7c416f243 More DPRINTF debugging John Reiser 2020-06-06 17:10:53 -07:00
  • 3ace7a0468 Documentation only John Reiser 2020-06-06 15:32:45 -07:00
  • d305023f5e Sync testsuite checksums for "ELF pageholes" feature John Reiser 2020-05-30 13:56:12 -07:00
  • 963392a5ae De-compress (upx -d) for ELF pageholes John Reiser 2020-05-30 13:54:11 -07:00
  • 2f453acf5d use UPX_RSIZE_MAX_MEM John Reiser 2020-05-28 15:45:07 -07:00
  • 4ae1576726 Mach-o LC_SEGMENTs not monotonic in file (__DWARF for 'go') John Reiser 2020-05-30 02:54:09 -07:00
  • 17bd0b3248 Don't use --strip-reloc with -d bitraid 2020-04-13 21:38:22 +03:00
  • a1ad1aee99 Use "python2" instead of "python". Markus F.X.J. Oberhumer 2020-05-23 20:07:23 +02:00
  • a817ed0692 uintptr_t for MSVC John Reiser 2020-05-23 11:02:46 -07:00
  • 828a6cf07b invert_pt_dynamic() more checking John Reiser 2020-05-23 10:51:03 -07:00
  • 962c35aa08 More checking of DT_GNU_HASH and DT_HASH tables John Reiser 2020-05-23 10:04:38 -07:00
  • b327645e64 More checking of DT_GNU_HASH and DT_HASH tables John Reiser 2020-05-23 09:41:41 -07:00
  • e1b42616a2 workaround: MIPS.r3000 early uClibc forgot memset(,0,) of local array John Reiser 2020-05-26 14:49:25 -07:00
  • f96638c42a MIPS32 works: ELF layout for page holes John Reiser 2020-05-25 14:13:01 -07:00
  • 6272152dfe phdr[C_BASE].p_memsz for ET_EXEC John Reiser 2020-05-25 14:11:46 -07:00
  • 030a200c08 clarity; no functional change John Reiser 2020-05-25 14:07:58 -07:00
  • 994da63b4d DPRINTF the munmap John Reiser 2020-05-25 14:05:58 -07:00
  • 2315bff280 powerpc64 works: ELF layout for page holes John Reiser 2020-05-23 11:18:32 -07:00
  • 98dddf93d8 powerpc32 works: ELF layout for page holes John Reiser 2020-05-23 08:00:35 -07:00
  • fd2939e18d i386 works: ELF layout for page holes John Reiser 2020-05-15 16:05:26 -07:00
  • 80c27e0822 arm.v4a works: ELF layout for page holes John Reiser 2020-05-14 15:10:40 -07:00
  • b463f24eda arm64 works: ELF layout for page holes John Reiser 2020-05-10 09:18:06 -07:00
  • 2a849444db un-debug John Reiser 2020-05-09 09:46:51 -07:00
  • 69e106c0c5 unmap C_TEXT John Reiser 2020-05-09 09:45:02 -07:00
  • 926481dace ELF layout for page holes when runtime PAGE_SIZE < .p_align John Reiser 2020-05-09 08:05:05 -07:00
  • a3b2cde58d max_bucket versus symbias John Reiser 2020-04-17 17:09:47 -07:00
  • 30f37d2cc6 DT_GNU_HASH check the buckets John Reiser 2020-04-17 16:49:54 -07:00
  • c4d61dd9fe --preserve-build-id for ET_EXEC John Reiser 2020-04-17 16:17:29 -07:00
  • 210870f840 invert_pt_dynamic() DT_GNU_HASH trims hash array for Rust and Android John Reiser 2020-04-15 17:29:03 -07:00
  • 4cb4bd38eb check_pt_dynamic() checks PT_DYNAMIC.p_memsz John Reiser 2020-04-15 14:24:05 -07:00
  • 58c6d19f7c unpack() checks PT_DYNAMIC.p_filesz John Reiser 2020-04-15 14:12:06 -07:00
  • f99ae94747 More checking .e_shstrndx John Reiser 2020-04-15 13:44:35 -07:00
  • 6868ca7953 getElfSections concentrates on _Shdr[.e_shstrndx] John Reiser 2020-04-15 13:29:01 -07:00
  • 87a5a4ef32 WIP but should concentrate on section .e_shstrndx instead. John Reiser 2020-04-15 13:13:45 -07:00