cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] broken servers send bad deflate streams

From: Dan Fandrich <>
Date: Tue, 25 Apr 2006 14:19:42 -0700

On Tue, Apr 25, 2006 at 01:36:03PM -0700, Paul Querna wrote:
> Attached is an alternative patch, that does go through the trouble of
> faking the header, and instead twists around with the window size
> toggles, and seems to fix all the test cases I have found.

The patch has a problem in that it resets the decompression and tries without
a header whenever the decompression fails, not just at the beginning of the
stream. It opens the possibility (a remote one, I'll admit) of corrupted
data getting through to the client without an error indication. Also, there
should be a comment explaining the server brokenness that this patch addresses.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-04-25