22 Commits

Author SHA1 Message Date
alandefreitas
0ed09e59d9 Fix zlib warnings
fix #2461
2022-06-22 15:06:23 -03:00
JackyYin
ca824f607c Update zlib from 1.2.11 to 1.2.12
fix #2439

Because there is a CVE issue impact zlib before 1.2.12,
update zlib to avoid any related problems.

Please check the link below for detailed CVE information:
https://access.redhat.com/security/cve/CVE-2018-25032
2022-06-03 17:43:42 -03:00
Richard Hodges
fae4c0e3c2 Parenthesise all uses of min() and max() 2021-03-16 10:02:47 +01:00
Vinnie Falco
9bb4adf21b Use regular throw in test 2019-12-08 08:31:39 -08:00
AeroStun
d895906bcc Refactor zlib tests and fix typo:
close #1744

* Fixed typo in enum name
* Added missing zlib error enumerator
* Marked caveat in zlib impl to avoid future confusion
* Created Compressor/Decompressor abstractions in Beast.zlib tests
* Applied abstractions on Beast.zlib tests
* Workaround Travis-CI' 10min silence timeout
* Add test for Beast.zlib's need_dict error
* Avoid breaking user-code dependant on deprecated enumerator interface

Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com>
2019-11-02 08:29:30 -07:00
AeroStun
5984212e77 Silence integer narrowing in inflate stream tests
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com>
2019-10-07 12:46:39 -07:00
Damian Jarek
2ce0a10a01 Add a known string to the inflate matrix
This makes coverage slightly more stable coverage and covers some
additional lines.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:39 -07:00
Damian Jarek
d1ff4405aa Add test for flush::trees with uncompressed strategy
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:39 -07:00
Damian Jarek
0b8c285bb7 Add test for flush::trees with fixed Huffman strategy
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:39 -07:00
Damian Jarek
3b585f660c Add excess data inflate test
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:39 -07:00
Damian Jarek
8ee65054a6 Add success test cases from zlib test suite
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:38 -07:00
Damian Jarek
b0aa3df714 Import more failure test cases from zlib test suite
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:38 -07:00
Damian Jarek
5937c06cd0 Add test for invalid inflate stream settings
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:38 -07:00
Damian Jarek
84bf4c5362 Add failure test cases from zlib's inflate test suite
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-10-07 12:46:38 -07:00
Vinnie Falco
6ada618c12 Check BOOST_NO_CXX11_THREAD_LOCAL 2019-02-21 11:09:02 -08:00
Vinnie Falco
c18f3f0ef1 Rename to _experimental directory 2018-11-12 06:52:39 -08:00
Vinnie Falco
0f3696f2ec Unit test framework is experimental 2018-11-11 13:56:05 -08:00
Vinnie Falco
387d68f336 Reorder define test macro params 2017-08-04 19:02:12 -07:00
Vinnie Falco
2567f49fb5 Rename test macros 2017-08-04 19:02:12 -07:00
Vinnie Falco
444ef321a5 Remove unused test header 2017-08-04 19:02:07 -07:00
Vinnie Falco
7b90ff852d Faster zlib tests 2017-07-31 19:02:48 -07:00
Vinnie Falco
809e822789 Refactor test build scripts 2017-07-29 00:26:05 -07:00