bug#28861: Unpack support broken in 1.8 by bad end-of-block check

2017-10-16 Thread Vidar Holen
y. One possible fix is below. It adds back the `len == max_len` check and verifies that the Huffman tree is complete. A complete Huffman tree cannot contain unused prefixes, so this eliminates the code out of bounds check. Regards, Vidar Holen diff --git a/unpack.c b/unpack.c index c1a3684..

bug#29648: BUG in zless and similar scripts?

2017-12-12 Thread Vidar Holen
${var:+value} and ${var+value} differ in how they handle the case when var="" (i.e. defined, and assigned the empty string). In this case, the check verifies that LESSMETACHARS is set (even if it's set to the empty string), so it seems correct as is. On Tue, Dec 12, 2017 at 4:58 PM, Paul Eggert