gzip: fix bug in unpack EOB check
commit79f88bd1e54d6042fbe50c212f836920fa208e56
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Oct 2017 08:02:54 +0000 (16 01:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Oct 2017 08:03:45 +0000 (16 01:03 -0700)
treee4e25411e571e770675dfb86f7646589eaa47d60
parent5d0ae40d0767f0783e796813f6099ae0168f6dd4
gzip: fix bug in unpack EOB check

Problem reported by Vidar Holen (Bug#28861).
* NEWS: Mention fix.
* tests/unpack-valid: New test.
* tests/Makefile.am (TESTS): Add it.
* unpack.c (build_tree): Report an error if Huffman tree has
too few leaves.
* unpack.c (unpack): Fix check for EOB.
Remove now-unnecessary check for code out of range.
NEWS
tests/Makefile.am
tests/unpack-valid [new file with mode: 0755]
unpack.c