zlib-ng/test
2025-05-27 14:45:11 +02:00
..
abi [abicheck] Regenerate ABI files for zlib 2025-01-27 12:37:45 +01:00
add-subdirectory-project Address deprecated cmake version warning. 2024-12-07 22:31:37 +01:00
benchmarks riscv: add crc32 optimization using zbc extension 2025-04-27 18:23:50 +02:00
cmake Prevent tests writing into the source directory. 2023-12-11 23:24:23 +01:00
CVE-2002-0059 Add test for CVE-2002-0059 2016-04-28 14:00:05 +02:00
CVE-2004-0797 Add test for CVE-2004-0797 2016-04-28 14:00:05 +02:00
CVE-2005-1849 Add test cases for CVE-2005-1849 and CVE-2005-2096 2016-04-28 14:00:05 +02:00
CVE-2005-2096 Add test for CVE-2004-0797 2016-04-28 14:00:05 +02:00
CVE-2018-25032 Added unit test against CVE-2018-25032 with default strategy. 2022-04-03 16:28:41 +02:00
data Spelling fixes 2021-05-16 13:20:15 +02:00
fuzz Remove late enable_language calls. 2025-04-14 23:17:47 +02:00
GH-361 deflate_medium: fix handling of overlapping matches 2019-07-18 10:50:06 +02:00
GH-364 longest_match: avoid using negative indices 2019-07-18 11:22:52 +02:00
GH-382 Added regression test for deflateEnd returning -3 when using deflate quick. #382 2020-06-16 16:08:41 +02:00
GH-751 Remove chunkmemset_3 and chunkmemset_6 on ARM/AArch64 as they need 3 chunks... 2020-09-19 09:52:01 +02:00
GH-979 Added GH-979 failure test case against for inflateBack. 2021-06-08 20:52:56 +02:00
GH-1600 Added unit test for inflate with Z_FINISH and no window. 2023-11-23 13:43:51 +01:00
pigz Fixed content already populated error in CMake scripts. #1327 2022-09-05 11:24:50 +02:00
.gitignore longest_match: avoid using negative indices 2019-07-18 11:22:52 +02:00
abicheck.md abicheck.sh: implement --refresh-if option as documented. 2022-04-04 09:25:01 +02:00
abicheck.sh Update zlib-ng ABI files. 2023-02-10 13:16:26 +01:00
CMakeLists.txt [FreeBSD] Define _XOPEN_SOURCE for gtest_zlib 2025-04-14 23:17:59 +02:00
example.c Make internal functions static in the test code. 2024-02-07 19:15:56 +01:00
gh1235.c Fix warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 2023-02-23 12:17:07 +01:00
infcover.c Fix typos (#1825) 2024-12-20 23:35:50 +01:00
Makefile.in zlib 1.3.1 2024-02-07 19:15:56 +01:00
minideflate.c Make internal functions static in the test code. 2024-02-07 19:15:56 +01:00
minigzip.c Make internal functions static in the test code. 2024-02-07 19:15:56 +01:00
pkgcheck.sh [CI] Don't try to use macOS 11 as it's no longer supported. 2024-09-20 13:08:00 +02:00
README.md Added unit test against CVE-2018-25032. 2022-04-03 16:28:41 +02:00
switchlevels.c Avoid unnecessary line continuations 2023-08-07 08:22:56 +02:00
test_adler32.cc Fix illegal instruction usage in Xeon Phi x200 processors 2024-05-19 12:25:01 +02:00
test_compare256_rle.cc Continued cleanup of old UNALIGNED_OK checks 2024-12-26 22:14:46 +01:00
test_compare256.cc Add AVX512 version of compare256 2025-04-14 23:28:38 +02:00
test_compress_bound.cc Fix casting warning/error in test_compress_bound.cc 2024-12-01 16:04:33 +01:00
test_compress_dual.cc Improve dual link test to compile against zlib. Previously we were only linking against it. 2022-06-24 15:15:36 +02:00
test_compress.cc Fix definition of z_size_t to match documentation of legacy zlib API. 2023-02-23 12:17:34 +01:00
test_cpu_features.h Allow disabling runtime CPU features detection in tests and benchmarks 2024-04-04 13:47:02 +02:00
test_crc32.cc Add large 1mb buffer test for crc32 hashing. 2025-05-27 14:45:11 +02:00
test_cve-2003-0107.cc Move CVE-2003-0107 test to Google Tests. 2022-03-13 07:41:12 +01:00
test_deflate_bound.cc Fix use after free in test_deflate_bound. 2023-04-28 00:28:06 +02:00
test_deflate_concurrency.cc Add a test for concurrently modifying deflate() input 2022-06-24 15:15:17 +02:00
test_deflate_copy.cc Implement unit testing using Google Test framework. 2022-03-13 07:41:12 +01:00
test_deflate_dict.cc Tell scan-build ASSERT_TRUE() behaves like assert(). 2022-12-29 11:03:31 +01:00
test_deflate_hash_head_0.cc Use named defines instead of hard coded numbers. 2023-02-18 20:30:55 +01:00
test_deflate_header.cc IBM zSystems DFLTCC: Do not update strm.adler for raw streams 2023-01-09 15:09:18 +01:00
test_deflate_params.cc Tell scan-build ASSERT_TRUE() behaves like assert(). 2022-12-29 11:03:31 +01:00
test_deflate_pending.cc Tell scan-build ASSERT_TRUE() behaves like assert(). 2022-12-29 11:03:31 +01:00
test_deflate_prime.cc Introduce ZLIBNG_ENABLE_TESTS 2022-11-01 13:25:19 +01:00
test_deflate_quick_bi_valid.cc Implement unit testing using Google Test framework. 2022-03-13 07:41:12 +01:00
test_deflate_quick_block_open.cc Use named defines instead of hard coded numbers. 2023-02-18 20:30:55 +01:00
test_deflate_tune.cc Implement unit testing using Google Test framework. 2022-03-13 07:41:12 +01:00
test_dict.cc Use actual compressed length 2024-05-20 21:42:31 +02:00
test_gzio.cc Enable warning C4242 and treat warnings as errors for Visual C++. 2024-08-22 16:47:59 +02:00
test_inflate_adler32.cc IBM Z DFLTCC: Fix updating strm.adler with inflate() 2022-09-26 20:10:10 +02:00
test_inflate_copy.cc Add back-and-forth inflateCopy() test 2024-05-21 16:27:53 +02:00
test_inflate_sync.cc Implement unit testing using Google Test framework. 2022-03-13 07:41:12 +01:00
test_large_buffers.cc Tell scan-build ASSERT_TRUE() behaves like assert(). 2022-12-29 11:03:31 +01:00
test_main.cc Allow disabling runtime CPU features detection in tests and benchmarks 2024-04-04 13:47:02 +02:00
test_raw.cc Use named defines instead of hard coded numbers. 2023-02-18 20:30:55 +01:00
test_shared_ng.h Introduce ZLIBNG_ENABLE_TESTS 2022-11-01 13:25:19 +01:00
test_shared.h Tell scan-build ASSERT_TRUE() behaves like assert(). 2022-12-29 11:03:31 +01:00
test_small_buffers.cc Implement unit testing using Google Test framework. 2022-03-13 07:41:12 +01:00
test_small_window.cc IBM zSystems DFLTCC: Support inflate with small window 2022-12-11 12:03:12 +01:00
test_version.cc Implement unit testing using Google Test framework. 2022-03-13 07:41:12 +01:00

Contents

Name Description
CVE-2003-0107 Buffer overflow in the gzprintf function, requires ZLIB_COMPAT
CVE-2002-0059 inflateEnd to release memory more than once
CVE-2004-0797 Error handling in inflate and inflateBack causes crash
CVE-2005-1849 inftrees.h bug causes crash
CVE-2005-2096 Buffer overflow when incomplete code description
CVE-2018-25032 Memory corruption when compressing if the input has many distant matches.
GH-361 Test case for overlapping matches
GH-364 Test case for switching compression levels
GH-382 Test case for deflateEnd returning -3 in deflate quick

Copying

Some of the files in test are licensed differently:

  • test/data/fireworks.jpeg is Copyright 2013 Steinar H. Gunderson, and is licensed under the Creative Commons Attribution 3.0 license (CC-BY-3.0). See https://creativecommons.org/licenses/by/3.0/ for more information.

  • test/data/paper-100k.pdf is an excerpt (bytes 92160 to 194560) from the paper “Combinatorial Modeling of Chromatin Features Quantitatively Predicts DNA Replication Timing in Drosophila” by Federico Comoglio and Renato Paro, which is licensed under the CC-BY license. See https://www.ploscompbiol.org/static/license for more information.

  • test/data/lcet10.txt is from Project Gutenberg. It does not have expired copyright, but is still in the public domain according to the license information. (https://www.gutenberg.org/ebooks/53).

  • test/GH-382/defneg3.dat was the smallest file generated by Nathan Moinvaziri that reproduced GH-382. It is licensed under the terms of the zlib license.