Skip to content

Commit 5d3c21a

Browse files
authored
huff0: Do not check max size when reading table. (#586)
Affects reading zstd dictionaries. This is only really needed when compressing anyway. Fixes #585
1 parent ca0e0b4 commit 5d3c21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

huff0/decompress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const use8BitTables = true
3535
// If no Scratch is provided a new one is allocated.
3636
// The returned Scratch can be used for encoding or decoding input using this table.
3737
func ReadTable(in []byte, s *Scratch) (s2 *Scratch, remain []byte, err error) {
38-
s, err = s.prepare(in)
38+
s, err = s.prepare(nil)
3939
if err != nil {
4040
return s, nil, err
4141
}

0 commit comments

Comments
 (0)