Commit Graph

250 Commits

Author SHA1 Message Date
jbonyun
06cf1df4f3 LZMA thread support (#95)
* default setting is to use one thead
* multiple threads can be set using the lzma options
* old behavior can be forced by defining BOOST_IOSTREAMS_LZMA_NO_MULTITHREADED
2019-05-28 19:49:25 -04:00
Guillermo Frontera
d6301d81a2 Fix processing of multi-stream files (#87)
* Fix processing of multi-stream files
* Added test for bzip2 multi-stream files.
* Fixed comments in bzip2 test

This fixes #86
2019-05-24 08:29:54 -04:00
Jacob Brown
a31d9de40c Fixed typo in test message in test/mapped_file_test.cpp 2019-03-25 08:11:28 -04:00
Konstantin Käfer
f1f7ad9f68 remove dependence on <typeinfo> header 2018-11-03 09:20:43 -04:00
James E. King III
5692d34219 clean up some coverity-identified issues, mostly uninitialized class members 2018-08-13 22:28:27 -04:00
James E. King III
d7f1b82682 Added CI framework
- travis with valgrind, cppcheck, ubsan, codecov, covscan (future)
      - appveyor with MSVC 2010 through 2017, cygwin 32/64, mingw 32/64
      - README, LICENSE, etc.

Additional fixes for cygwin builds to work
2018-07-30 09:14:56 -04:00
Edward Diener
7b5bf3663a
Merge pull request #53 from msuvajac/nonblocking_read
Fixed non-blocking adapter read() data overwrite and infinite loop.
2018-04-14 22:47:07 -04:00
Reimar Döffinger
78f4496235 Add zstd compression/decompression filter.
Implements trac issue #13356.
2018-03-24 19:55:17 +01:00
msuvajac
b51c1d005e Fixed non-blocking adapter read() data overwrite and infinite loop.
Non-blocking adapter read() wasn't tracking amount read properly which
could cause an infinite loop when underlying (infinite) source returns amounts
smaller than requested. Also amounts read previously were
overwritten by subsequent calls.
2018-03-02 11:37:50 +01:00
Reimar Döffinger
2c30bedbe0 Fix test when zlib or bzip2 not available.
Do not try to run tests when the dependencies
are not available.
Should fix the AppVeyor build.
2018-01-19 22:33:26 +01:00
Edward Diener
623c608793 Removed executable flag. 2017-09-16 07:15:09 -04:00
Julien Schueller
2fb542b8d5 lowercase win32 header to fix cross-compilation 2017-07-31 22:25:52 +02:00
Reimar Döffinger
dbfdee7515 Clarify origin and authors of recently added files.
As git history isn't useful in this case, it might be good
to add more details in the header instead.
2017-07-26 10:42:52 +02:00
Reimar Döffinger
282b1edd76 Add lzma compressor and decompressor filters.
Needs lzma.jam file in tools/build module.
See also trac ticket 7534.
The code has been around in random places since some time,
I only added tests and build system updates and
minor fixes for issues those tests discovered.
2017-07-25 16:21:30 +02:00
Reimar Döffinger
b9a61eaa0d Fix endless loop when writing to file exceeds quota.
See also issue 2557.
2017-07-03 19:31:00 +02:00
Edward Diener
16e05f4a68 Added temp_file include. 2016-12-10 12:33:04 -05:00
Edward Diener
d595901ae4 Merge branch 'bugfix/10561' of https://github.com/jlodos/iostreams into develop_test 2016-12-10 08:15:32 -05:00
Edward Diener
7cbbfa57af Updated file descriptor code and tests 2016-12-07 01:43:17 -05:00
Edward Diener
bfa6b063a5 Merge pull request #29 from ErisExchange/eris-bugfix
Do not check length_ before computing CRC.
2016-12-03 19:35:55 -05:00
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
Jorge Lodos
d248dcd9b4 Add dual seek-able test. 2016-02-07 22:28:22 -06:00
Jorge Lodos
ec09583209 Bugfix in test_seekable_... functions and new dual_seekable_test function. 2016-02-07 22:24:51 -06:00
Marcel Raad
9e31b98833 Fix MSVC compiler warnings
- silenced narrowing conversion warnings with explicit casts
- fixed a variable shadowing warning by removing an unused variable
2015-09-17 13:08:11 +02: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
Alex Henrie
61ba23892f Correct spelling of "suppress" 2015-02-07 01:59:21 -07:00
Stephen Kelly
6d11f179dd Remove obsolete MSVC check from pragma guard
git grep -h -B1 "^#\s*pragma once" | grep -v pragma | sort | uniq

is now clean.

[SVN r85952]
2013-09-26 13:02:51 +00:00
Daniel James
b7a15c51ac Detab
[SVN r84551]
2013-05-30 08:28:24 +00:00
Daniel James
9b1e0ce0d1 Fix C++11 array ambiguity in iostreams tests.
[SVN r84509]
2013-05-26 14:16:44 +00:00
Daniel James
c7d5cdae5b Fix tee_test on C++03 compilers.
The constructor from std::string is apparently a C++11 feature.

[SVN r84163]
2013-05-06 10:29:00 +00:00
Steven Watanabe
6d3920cfd0 Fix ambiguity with C++11 std::array.
[SVN r83506]
2013-03-20 16:31:15 +00:00
Steven Watanabe
a509f5feba Make tee work correctly for std::streams. Fixes #8315.
[SVN r83505]
2013-03-20 15:45:41 +00:00
Marshall Clow
ef38e18a1f Added test for fix for Bug #6576; thanks to Boris
[SVN r79936]
2012-08-08 19:48:28 +00: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
Jürgen Hunold
634e39df42 Fix: remove obsolete test using removed Boost.Filesystem V2
[SVN r78216]
2012-04-27 06:49:28 +00:00
Jürgen Hunold
df7ae7c3e6 Fix: use official Boost.Filesystem API.
[SVN r78191]
2012-04-25 13:41:38 +00:00
Daniel James
4df5255bf0 Iostreams: Fix test for latest Boost.Test changes.
[SVN r76973]
2012-02-11 12:34:30 +00:00
Jonathan Turkanis
762c47f94e applied patches from #5908
[SVN r76301]
2012-01-04 04:46:42 +00:00
Gennadiy Rozental
b18b68152f eliminated unit_test_framework and BOOST_MESSAGE
[SVN r74728]
2011-10-05 09:43:29 +00:00
Daniel James
0ef8087040 Iostreams: Support filesystem3 paths. Refs #4485.
Based on Zhuo Qiang's patch with added tests and support
for `operator=`.

I also used `codecvt_type` to detect `filesystem3::path`
instead of `string_type`. Using `string_type` made
`filesystem2::path` ambiguous because it has both
`string_type` and `external_string_type` members. 

The member types are a bit arbitrary, but a more precise
distinction would probably also be more expensive.



[SVN r72382]
2011-06-03 23:29:59 +00:00
Steven Watanabe
1a2de8bd5d Fix flush regression. Fixes #4590.
[SVN r68779]
2011-02-11 16:18:33 +00:00
Daniel James
076986ff48 Fix inspect issues.
[SVN r63762]
2010-07-08 20:48:30 +00:00
Daniel James
e438cff79d Fix headers.
[SVN r63448]
2010-06-30 12:04:02 +00:00
Daniel James
598fd35927 Repeat the new file descriptor tests for the three different classes.
[SVN r63435]
2010-06-29 15:20:11 +00:00
Daniel James
df5b5e6650 Some more windows fixes for my recent iostreams changes.
[SVN r63434]
2010-06-29 15:03:37 +00:00
Daniel James
944cd0d024 Fix call to unique_path on windows. Refs #2325.
[SVN r63433]
2010-06-29 14:30:29 +00:00
Daniel James
04d9e47c57 Try to improve file_descriptor's ownership policies. Refs #3517
* Deprecate the old 'close_on_exit' constructors.
* Introduce new constructors from file handle, taking either
  `never_close_handle` or `close_handle`.
* Close current file handle when opening a new file handle,
  if it would have been closed in the destructor.

[SVN r63430]
2010-06-29 14:15:13 +00:00
Daniel James
581486bcf0 Use unique_path instead of tmpnam. Refs #2325.
[SVN r63429]
2010-06-29 14:13:52 +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