When building the static Huffman tables, it's vital to include the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Feb 2007 19:23:47 +0000 (19:23 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Feb 2007 19:23:47 +0000 (19:23 +0000)
commit1944b2cc36c196adc4ce313d1bd6a9aae5d90024
tree6c4f2ed743be5617a9582fc9a727c35fb7ff47f5
parent2e525c71c1939791198f23618c99c2a55a31ae26
When building the static Huffman tables, it's vital to include the
two unused entries at the end of the lit/len table (286 and 287),
because without them all the 9-bit codes are off by four. I can only
assume I hadn't noticed this before because no test file I've
compressed had both (a) contained byte values >= 0x90 and (b)
required a static block.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@7279 cda61777-01e9-0310-a592-d414129be87e
deflate.c