]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] Revert unnecessary zlib_inflate/inftrees.c fix
authorLinus Torvalds <torvalds@osdl.org>
Wed, 17 Aug 2005 20:19:24 +0000 (21:19 +0100)
committerChris Wright <chrisw@osdl.org>
Mon, 29 Aug 2005 16:55:12 +0000 (09:55 -0700)
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: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
lib/zlib_inflate/inftrees.c

index c5f66fbb0dd0b427a355b76c378786705b3ec6bd..874950ec48582e4b85c48ba6f1be7cb1f04cc659 100644 (file)
@@ -141,7 +141,7 @@ static int huft_build(
   {
     *t = NULL;
     *m = 0;
-    return Z_DATA_ERROR;
+    return Z_OK;
   }