Commit c231c7db30faf93419fc22d680f74d816bea70e2

Authored by Linus Torvalds
1 parent 7974b1cc78

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/zlib_inflate/inftrees.c
... ... @@ -141,7 +141,7 @@
141 141 {
142 142 *t = NULL;
143 143 *m = 0;
144   - return Z_DATA_ERROR;
  144 + return Z_OK;
145 145 }
146 146  
147 147