tree 536393958baecd245a6a7ba424df9e5c9e0bfba4
parent 2213071bca68c474796465212d3ac3a4454a84b7
author Marcelo Tosatti <[EMAIL PROTECTED]> Thu, 18 Aug 2005 21:44:34 -0300
committer Marcelo Tosatti <[EMAIL PROTECTED]> Thu, 18 Aug 2005 21:44:34 -0300

Revert unnecessary zlib_inflate/inftress.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 <[EMAIL PROTECTED]>

 lib/zlib_inflate/inftrees.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/zlib_inflate/inftrees.c b/lib/zlib_inflate/inftrees.c
--- a/lib/zlib_inflate/inftrees.c
+++ b/lib/zlib_inflate/inftrees.c
@@ -140,7 +140,7 @@ uIntf *v;               /* working area:
     *t = (inflate_huft *)Z_NULL;
     *m = 0;
-    return Z_DATA_ERROR;
+    return Z_OK;
To unsubscribe from this list: send the line "unsubscribe git-commits-24" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to