httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46146] New: deflate_in_filter fails to inflate if CRC/length bytes are not in available stream
Date Tue, 04 Nov 2008 21:48:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46146

           Summary: deflate_in_filter fails to inflate if CRC/length bytes
                    are not in available stream
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_deflate
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: greenreaper@hotmail.com


The code intended to inflate gzipped content bodies appears to have an
unimplemented edge case which I believe renders it unusable for most scenarios.

The problem is in the code to verify decompressed data by comparing the CRC
value and length with that provided by the client in the last eight bytes of
the request. If the gzip stream has been completely decompressed but the
verification bytes are still on the wire, it looks like the decompression will
fail as if the CRC or length were invalid:

  /* Is the remaining 8 bytes already in the avail stream? */
  if (ctx->stream.avail_in >= 8) {
    ...
  }
  else {
    /* FIXME: We need to grab the 8 verification bytes
    * from the wire! */
  inflateEnd(&ctx->stream);
  return APR_EGENERAL;
}

I'm trying to get some traction on implementing gzipped bodies in Firefox (
https://bugzilla.mozilla.org/show_bug.cgi?id=463089 ), but I'm unlikely to get
anywhere if the only server which supports it fails on valid requests that
happen to be a certain length.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message