|
#33
|
||||
|
||||
|
MPZ Wrapper v2
Changelog:
Code:
▪︎ Core rewrite — the C++/setjmp-coroutine wrapper was replaced with a portable C89 state-machine design: smaller, allocation-free on the hot path, and far easier to audit and maintain.
▪︎ Reliable DLL handling — MpzSlimmer.dll is loaded by absolute path from the executable's own directory, with PE bounds/signature validation of the patch site and hardened search-path handling (no DLL-hijack surface).
▪︎ Crash-safe codec execution — codec faults and unexpected failures are trapped and reported as clean errors instead of hanging or dying silently.
▪︎ Robust Win32 I/O — rewritten buffering, seeking and partial read/write handling, with uniform support for regular files and stdin/stdout pipes.
▪︎ Large-file (2 GB) protection — streams exceeding the codec's signed 32-bit limit are detected and rejected before any output is written.
▪︎ Configurable I/O buffer — buffer size is now selectable on the command line (clamped to a safe range) to trade throughput against memory use.
▪︎ Progress reporting — file-to-file operations display live progress; suppressed automatically for pipes.
▪︎ Improved CLI — explicit c / d modes, "-" for stdin/stdout, optional buffer size, and -h / --help.
▪︎ Security & build hardening — ASLR/DEP enforced, no RWX/self-modifying memory, and an embedded version resource + application manifest; together these cut antivirus false positives.
▪︎ Dual-toolchain build — compiles warning-clean under both MSVC (cl) and MinGW GCC/Clang from a single Makefile.
▪︎ General robustness — EOF, empty input, same-file in/out, and failure cleanup (incomplete output is removed) are now handled explicitly rather than relying on old coroutine side effects.
Compiled with: clang-14.2.0-mingw-w64msvcrt-12.0.0 Full credit to Eugene Shelwein for the original MPZ wrapper Last edited by Lord.Freddy; Yesterday at 23:25. |
| The Following 5 Users Say Thank You to Lord.Freddy For This Useful Post: | ||
DomoVoi_96 (26-09-2026), Dunnowho69 (26-09-2026), ScOOt3r (26-09-2026), Spinneret94 (Today), wrathma (Yesterday) | ||
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Support and Help on Game Compression Tools and Methods | Snake288 | Conversion Tutorials | 4 | 18-04-2020 06:30 |
| Help choosing an mp3 player | ikermalli | Media Players | 8 | 22-08-2010 23:15 |
| [REQ] Pac-Man World 2 Starforce 3 Crack (RLD Tools inside) | newone111 | PC Games | 48 | 21-03-2010 00:22 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |
| Daemon Tools Question | Overthere | PC Games | 11 | 16-06-2003 17:02 |