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


No differences found