[Debian GNUstep maintainers] Bug#1134346: Patch wrongly signals end of input; some failing LZH files

Ray Chason ray.chason at proton.me
Sun Apr 19 04:15:32 BST 2026


The implementations of the Huffman decoder in XADPrefixCode.m peek ahead some number of bits, and then skip over those bits that are actually part of the current symbol. In the case where

- the peek-ahead exceeds the end of input but
- the final read of the symbol does not,

the patched code wrongly raises the end of file exception.

The Hall of Fame CDROM can be found at https://archive.org/details/HallofFameCDROM . This has a number of LZH files. Many of them also fail to decode with the patched unar. This demonstrates the corresponding bug for the big-endian bit reader. About one fourth of the LZH files fail to decode with the patch, but decode successfully without the patch.

I have attached a list of files in the Hall of Fame CDROM that fail to decode, and one of the failing LZH files.

Sent with [Proton Mail](https://proton.me/mail/home) secure email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnustep-maintainers/attachments/20260419/dd9c30be/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unar-fail-2.zip
Type: application/zip
Size: 6970 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnustep-maintainers/attachments/20260419/dd9c30be/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boot.lzh
Type: application/x-lha
Size: 116 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnustep-maintainers/attachments/20260419/dd9c30be/attachment.lha>


More information about the pkg-GNUstep-maintainers mailing list