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..
${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