Commit Graph

14 Commits

Author SHA1 Message Date
Joel Nordell
633e78e076 Do not check length_ before computing CRC.
This fixes a problem where the gzip_decompressor would fail the CRC
check when reading a multipart gzip file that had been written using
Z_FULL_FLUSH, and contains an empty part (with a 0 CRC).

Including a unit test that exposes the bug.
2016-07-12 17:59:44 -05:00
Jonathan Turkanis
e21ce6efba merged branch 'bugfix/warnings-2015-09-01' into develop; silenced numerous compiler warnings for msvc, gcc, and clang 2015-09-03 15:50:36 -04:00
Jonathan Turkanis
b8db28c0ac fix for bug #5237 2015-09-01 19:15:10 -06:00
Jonathan Turkanis
3e19a4d8b4 added template constructor to gzip_alloc to support conversion from related allocator types 2015-08-31 23:15:16 -06:00
Daniel James
f37811be02 Iostreams: Fix gzip test failures in C++0x gcc 4.4.
Was getting this error:

{{{
gzip_test.cpp: In function 'void header_test()':
gzip_test.cpp:134: error: narrowing conversion of '139' from 'const int' to 'const char' inside { }
gzip_test.cpp:134: error: narrowing conversion of '156' from 'int' to 'const char' inside { }
gzip_test.cpp:134: error: narrowing conversion of '243' from 'int' to 'const char' inside { }
}}}

Although it's only a warning in later versions of gcc.

[SVN r78385]
2012-05-08 20:06:39 +00:00
Jonathan Turkanis
762c47f94e applied patches from #5908
[SVN r76301]
2012-01-04 04:46:42 +00:00
Steven Watanabe
9fc89eaf00 Allow bzip2_decompressor to process multiple concatenated streams. Fixes #3853.
[SVN r63057]
2010-06-17 19:14:14 +00:00
Daniel James
5c0f4cc2f5 Gzip filter shouldn't require its source to be peekable. Refs #3723.
In a recent version, the gzip filter stopped working for array sources,
this is because it started to require them to be peekable, which they
aren't and can't be because the peek interface modifies the source,
which for an array source is immutable.

Looking at the implementation, gzip decompressor has an internal class
to emulate a peekable source, which calls the putback member on the
original source if it runs out of space (requiring the source to be
peekable). It shouldn't really need to do that so I changed it to throw
an exception instead.

If it does need to do that, we could change it to store the character
that was put back at the beginning of the string instead.

[SVN r60415]
2010-03-10 07:29:44 +00:00
Jonathan Turkanis
e5f1ed2f13 added support for archives with multiple members; added tests for metadata and for multiple members (fixes #1896)
[SVN r46001]
2008-05-31 22:53:58 +00:00
Jonathan Turkanis
ecbd2bd5e8 merged changes from iostreams_dev, revisions 42962-43059: updated copyright notices
[SVN r43061]
2008-02-02 22:10:46 +00:00
Jonathan Turkanis
4b7933c685 swicthed to filter/test.hpp
[SVN r29002]
2005-05-17 21:59:20 +00:00
Jonathan Turkanis
8f367f6f7a updated Boost.Test namespaces
[SVN r27570]
2005-03-08 02:25:34 +00:00
Jonathan Turkanis
81ace62bfb erged .hpp files into .cpp files
[SVN r27135]
2005-02-05 05:12:11 +00:00
Jonathan Turkanis
c0564c3c7c initial commitment
[SVN r26900]
2005-01-28 23:54:41 +00:00