Skip to content

Commit c231c7d

Browse files
author
Linus Torvalds
committed
Revert unnecessary zlib_inflate/inftrees.c fix
It turns out that empty distance code tables are not an error, and that a compressed block with only literals can validly have an empty table and should not be flagged as a data error. Some old versions of gzip had problems with this case, but it does not affect the zlib code in the kernel. Analysis and explanations thanks to Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7974b1c commit c231c7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/zlib_inflate/inftrees.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int huft_build(
141141
{
142142
*t = NULL;
143143
*m = 0;
144-
return Z_DATA_ERROR;
144+
return Z_OK;
145145
}
146146

147147

0 commit comments

Comments
 (0)