Skip to content

Commit

Permalink
Revert unnecessary zlib_inflate/inftrees.c fix
Browse files Browse the repository at this point in the history
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]>

Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Linus Torvalds committed Aug 17, 2005
1 parent 7974b1c commit c231c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zlib_inflate/inftrees.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int huft_build(
{
*t = NULL;
*m = 0;
return Z_DATA_ERROR;
return Z_OK;
}


Expand Down

0 comments on commit c231c7d

Please sign in to comment.