Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3352: CRC not correctly computed on x64 during decompression of gzip archive
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-18 17:44:29
#3352: CRC not correctly computed on x64 during decompression of gzip archive
--------------------------------------+-------------------------------------
Reporter: thomas.suckow@⦠| Owner: turkanis
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: iostreams
Version: Boost Development Trunk | Severity: Problem
Keywords: x64 64bit gzip iostreams |
--------------------------------------+-------------------------------------
Comment(by thomas.suckow@â¦):
Line of fault is:
crc_ += value << (offset_ * 8);
in gzip.cpp
When the shift results in a large negative value, the 32bit crc should
roll over. But long on x64 is 64bit and the result is incorrect.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3352#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC