summaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-06-01 19:37:14 +0000
committerSimon Tatham <anakin@pobox.com>2012-06-01 19:37:14 +0000
commitea4654d03324dd4feba49d616cbf13b4d6b808c6 (patch)
treeca37d46073194792bb211aaab70ca89282bc3125 /deflate.h
parent7c09a2ba4b42aa86785e788a5c72cc1e628d7d9a (diff)
downloadhalibut-ea4654d03324dd4feba49d616cbf13b4d6b808c6.zip
halibut-ea4654d03324dd4feba49d616cbf13b4d6b808c6.tar.gz
halibut-ea4654d03324dd4feba49d616cbf13b4d6b808c6.tar.bz2
halibut-ea4654d03324dd4feba49d616cbf13b4d6b808c6.tar.xz
Make the Deflate decoder correctly handle the special case of a
dynamic block in which the backward-distances Huffman table contains no entries at all. (In this situation it's impossible to use the distance table, and therefore the block must contain nothing but Huffman-coded literals.) [originally from svn r9550]
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/deflate.h b/deflate.h
index 6f51407..140626f 100644
--- a/deflate.h
+++ b/deflate.h
@@ -151,6 +151,7 @@ int deflate_decompress_data(deflate_decompress_ctx *ctx,
A(DEFLATE_ERR_SMALL_HUFTABLE, "under-committed Huffman code space"), \
A(DEFLATE_ERR_LARGE_HUFTABLE, "over-committed Huffman code space"), \
A(DEFLATE_ERR_UNCOMP_HDR, "wrongly formatted header in uncompressed block"), \
+ A(DEFLATE_ERR_NODISTTABLE, "backward copy encoded in block without distances table"), \
A(DEFLATE_ERR_CHECKSUM, "incorrect data checksum"), \
A(DEFLATE_ERR_INLEN, "incorrect data length"), \
A(DEFLATE_ERR_UNEXPECTED_EOF, "unexpected end of data")