Mika T. Lindqvist
767c4c9478
Honor deflateReset promise to reset the header.
...
This corrects the code to match the documentation in zlib.h.
However, note that this may break code out there that assumed the
incorrect persistence of the header across resets.
2026-09-20 20:39:44 -07:00
Mark Adler
ec63cd60eb
Fix one more truncated stream detection bug.
...
This fixes a false negative that has been there since 1.2.4.
2026-09-20 20:24:20 -07:00
Mark Adler
930cdf0770
Restore the proper detection of truncated gzip streams.
...
Part of this was lost in 1.3.2.
2026-09-20 19:37:08 -07:00
Mark Adler
a82e0db392
Move BLOCKED definition after errno.h include.
2026-09-20 18:59:44 -07:00
Darren Carreras
a05eacf0bd
Fix bug where a complete gzip stream can be reported as truncated.
2026-09-20 18:26:23 -07:00
Mark Adler
6ed77c4885
Leave the stream position unchanged when gzseek() fails.
2026-09-20 18:01:14 -07:00
Mark Adler
6995c67bd4
Avoid signed-overflow undefined behaviors in gzseek.
2026-09-20 17:41:22 -07:00
Brandon Barrante
b31d984470
Fix bug in successive gzwrite SEEK_CURs losing zero fill.
...
Also avoids an incorrect gztell report after a deferred fill.
2026-09-20 13:58:55 -07:00
Vollstrecker
98095f8292
CMake: Avoid USE_FILE32API if MSVC.
2026-09-20 08:35:19 -07:00
Vollstrecker
4296ab67ea
CMake: Add prefix to puff tests.
2026-09-20 08:32:39 -07:00
Vollstrecker
2f0a85edb9
CMake: Correct minizip symbol.
2026-09-20 08:32:13 -07:00
Vollstrecker
6b5ad87bd3
CMake: Move minizip genex to the correct places.
2026-09-20 08:30:24 -07:00
Vollstrecker
c352fa05f0
CMake: Fix prefixing symbols.
2026-09-20 08:28:12 -07:00
Vollstrecker
b66f482d65
CMake: Fix minizip config.
2026-09-20 08:27:33 -07:00
Vollstrecker
acf5b3769a
CMake: Fix install of minizip pkgconfig.
2026-09-20 08:26:32 -07:00
Vollstrecker
dd79f1871b
CMake: Fix installation of public headers.
2026-09-20 08:18:22 -07:00
Vollstrecker
2b5c6fc88d
CMake: Fix genex expressions in CMakeLists.txt.
2026-09-20 08:17:48 -07:00
Vollstrecker
05fa094c34
CMake: Avoid coverage-test when cross-compiling.
2026-09-20 08:15:59 -07:00
Vollstrecker
9bace80a77
CMake: Improve formatting, long lines broken into readable chunks.
2026-09-20 08:13:14 -07:00
Vollstrecker
e5374a85e8
CMake: Update component note in README-cmake.md.
...
thanks to @tbeu
Co-authored-by: tbeu <tbeu@users.noreply.github.com >
2026-09-20 08:08:08 -07:00
Mark Adler
d81c2d7eb7
Honor gzprintf's all-or-nothing-written contract when blocked.
2026-09-16 19:44:59 -07:00
Mark Adler
813dac5dcb
Avoid use of EAGAIN or EWOULDBLOCK if not defined.
2026-09-16 17:55:36 -07:00
Mark Adler
7235b0a581
Remedy another missing return statement in gzwrite.c.
2026-09-16 17:39:49 -07:00
Mark Adler
df84af25dc
Fix buffer overflow bug in non-blocking gzwrite.
...
This addresses CVE-2026-85091.
2026-09-16 17:21:03 -07:00
Mark Adler
bbc2ccf3d0
Remedy missing return statement in gzwrite.c.
2026-06-19 16:50:46 -07:00
Mark Adler
e3dc0a85b7
Avoid undefined behavior in gzwrite.c.
...
Adding to NULL is undefined.
2026-06-01 02:11:27 -07:00
Vollstrecker
bb0c497580
CMake: Avoid coverage testing when cross-compiling.
2026-06-01 02:11:27 -07:00
Vollstrecker
d491f4a609
CMake: Fix tests with pre-3.24 cmake updates.
2026-06-01 02:11:27 -07:00
Vollstrecker
25e021a3e5
CMake: Avoid running integration tests when not installing.
2026-06-01 02:11:27 -07:00
Vollstrecker
629d8cba6b
Remove redundant cmake runs in testing.
2026-06-01 02:11:27 -07:00
Vollstrecker
8be6629344
CMake: Avoid masking a slash in REPLACE.
2026-06-01 02:11:27 -07:00
Vollstrecker
6672d10306
CMake: Fix broken link_helper.
2026-06-01 02:11:27 -07:00
Vollstrecker
160de9bf5f
CMake: Fix DLL details when building with cmake.
2026-06-01 02:11:27 -07:00
Vollstrecker
3e8969d1b9
CMake: Avoid test in tests.
2026-06-01 02:11:27 -07:00
Vollstrecker
13c70daa4a
CMake: Fix Ada configuration.
2026-06-01 02:11:27 -07:00
Vollstrecker
6d3b776155
CMake: Move minizip tests into test directory.
2026-06-01 02:11:27 -07:00
Vollstrecker
2da4816791
CMake: Move iostream3 tests into test directory.
2026-06-01 02:11:27 -07:00
Vollstrecker
c95cdea223
CMake: Move blast tests into test directory.
2026-06-01 02:11:27 -07:00
Vollstrecker
bcf22eeb0f
CMake: Move Ada tests to test directory.
2026-06-01 02:11:27 -07:00
Vollstrecker
1110699c0f
CMake: Enable Ada to compile in different directories.
2026-06-01 02:11:27 -07:00
Vollstrecker
4fd956f9bf
CMake: Avoid resource conflict in blast tests.
2026-06-01 02:11:27 -07:00
Vollstrecker
6de84ae0b0
CMake: Fix Ada test.dep-graph.
2026-06-01 01:59:26 -07:00
Vollstrecker
979a56e9a9
CMake: Fix zlib test-dep-graph.
2026-06-01 01:58:57 -07:00
Vollstrecker
6a0e00f094
CMake: Fix puff-test-dep-graph.
2026-06-01 01:58:41 -07:00
Vollstrecker
7ccaebcfcb
CMake: Fix minizip test-dep-graph.
2026-06-01 01:58:26 -07:00
Vollstrecker
213ea4dc91
CMake: Correct the iostream3_add_subdirectory test dependency.
2026-06-01 00:20:00 -07:00
Vollstrecker
f8444a951f
CMake: Correct the name of blast_testStatic.
2026-06-01 00:19:31 -07:00
Vollstrecker
90d5bd8a13
CMake: Prefix targets and tests with zlib_ when not standalone.
2026-06-01 00:19:01 -07:00
Vollstrecker
ace35f66d6
CMake: Break long lines for readability.
2026-06-01 00:18:35 -07:00
Vollstrecker
582b8efd5f
CMake: Remove unnecessary make_directory calls.
2026-06-01 00:18:05 -07:00