1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/compress
Matthew Dempsky 5cc8561333 compress/flate: reject invalid Huffman bit sizes
If the requested coding bit sizes don't result in a full binary tree,
then reject the input as invalid.

Exception: We still need to allow degenerate Huffman codings with a
single 1-bit code to be compatible with zlib and files compressed with
Go's compress/flate package.

Update #10426.

Change-Id: I171b98d12e65b4deb9f4031cd802407ebb5e266c
Reviewed-on: https://go-review.googlesource.com/8922
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2015-04-16 07:34:04 +00:00
..
bzip2 all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
flate compress/flate: reject invalid Huffman bit sizes 2015-04-16 07:34:04 +00:00
gzip compress/gzip: allow stopping at end of first stream 2014-10-20 22:03:46 -04:00
lzw all: use golang.org/x/... import paths 2014-11-10 09:15:57 +11:00
testdata build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
zlib compress/flate: add Reset() to allow reusing large buffers to compress multiple buffers 2014-10-20 12:58:02 +11:00