Skip to content
Snippets Groups Projects
Commit 6e5ca4f1 authored by Linus Torvalds's avatar Linus Torvalds Committed by Chris Wright
Browse files

[PATCH] 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>

Cc: Sergey Vlasov <vsu@altlinux.ru>
Cc: Tavis Ormandy <taviso@gentoo.org>
Cc: Tim Yamin <plasmaroo@gentoo.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
parent 4b45a636
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ static int huft_build(
{
*t = NULL;
*m = 0;
return Z_DATA_ERROR;
return Z_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment