(unknown charset) Re: zlib issue

>>>>> "FC" == Fred Covely <fcovely@bcftech.com> writes:

  FC> Is anyone else have problems with sites that send back gzip
  FC> encoded data?

  FC> For example, if I do a simple HTTP Get on www.google.com accepting
  FC> gzip, I get no output.  I have traced this to htzip.c where the
  FC> call to the zlib function 'inflate' returns -3 (bad gzip format).
  FC> By various manueverings I can force it to accept the google zip
  FC> data, but I have been unable to make it work with 5.3.2.

  FC> FYI here is more detail on the work around.

  FC> The data that comes in from google is in gzip format and contains
  FC> the gzip header.  htzip.c seems to choke on the header piece, so I
  FC> borrowed a piece of code from zlib itself that reads past the
  FC> header before calling 'inflate'.  With that fix in libwww seems to
  FC> work fine.  I feel I am definitely missing something as I can't
  FC> believe others are not retrieving gzip encoded data.

Hi Fred,

Have you read the CERTŪ Advisory CA-2002-07 titled "Double Free Bug in
zlib Compression Library"?
   http://www.cert.org/advisories/CA-2002-07.html

While I'm not suggesting that this is the cause of the problem you're
seeing, it still may be advisable to review which version of zlib you're
using.

-- 
Phil   +----------------------------------------------------------+(\
     _/_)    YourAmigo Pty Ltd     http://www.YourAmigo.com/      |( \
  _/// /   _ =================  Phone Intl.: +61-8-8211-9211  _   |_) )_
 (((( (|  /_)             mailto:Phil.Nitschke@YourAmigo.com (_\  |/ /)))
  \\\\ \_/ / Address:                            <standard>   \ \_/ ////
   \      /    80 Gilbert Street, Adelaide      <disclaimers>  \      /
    )   _/     South Australia  5000  Australia    <apply>      \_   (
   /   /----------------------------------------------------------\   \
  /   /                                                            \   \

Received on Tuesday, 12 March 2002 20:22:35 UTC