Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams] Possible bug in gzip_decompressor?
From: Gavin Band (gavinband_at_[hidden])
Date: 2012-06-18 04:55:19


On 18 May 2012 03:59, Nat Goodspeed <nat_at_[hidden]> wrote:

> On May 17, 2012, at 7:57 AM, Gavin Band <gavinband_at_[hidden]> wrote:
>
> *Change #2*: at libs/iostreams/src/zlib.cpp:153: change "crc_imp_ = 0;"
> to "crc_ = crc_imp_ = 0;"
> Rationale: without this change, an empty block of data does not
> re-initialise the member variable crc_ of zlib_base. This causes an
> exception on line 447 of boost/iostreams/filter/gzip.hpp.
>
> Could someone take a look at this and let me know if this change is really
> appropriate? (Or perhaps I'm doing something wrong.) I can create a bug
> report if desired.
>
>
> I'm not qualified to comment on your specific fix, but I often do see
> library authors requesting a Trac ticket - especially to attach a proposed
> patch. That way it doesn't depend on the author to remember a mail message.
>
>
>
Thanks for the reply. I have created ticket #6994 for Change #2 above.
Best,
Gavin.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net