Hi Bernd!

after fixing a memory corruption in HTMLHELP [1],

"The memory corruption happened in openZipFile() by overwriting
data segment elements following zipfile, especially the UTF conversion
tables. zipfile stores an absolute path, so it was changed to
zipfile[MAXPATH] instead zipfile[MAXFILE], as MAXFILE=8 and MAXPATH=255"

That is quite a difference, an 8 byte buffer for path names which need 255 :-o

I need to publish a new binary. I noticed that the APACK [2] compressed
file is 53067 bytes, while the UPX compressed file is 55292 bytes, so ~4% better

So instead of 103.6 sectors, you get almost 108 sectors. If cluster
size is at most 4 kB, there will be a measurable difference in disk
usage. Seems low priority to me :-)

UPX 5.02 settings  : --8086 --best
APACK 1.00 settings: -1 -x

Would the APACKed file also work on 8086? Does HTMLHELP in general?

I tend to stick to UPX, preferably the UPX-UCL variant.

Thanks for finding the bug in HTMLHELP! Must have been there for years? :-o

[1]: https://gitlab.com/FreeDOS/base/htmlhelp/-/commit/4bea55b2d45b8cd4d3ba263a463391d09a75c1ee



_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to