]> git.ipfire.org Git - thirdparty/zlib-ng.git/log
thirdparty/zlib-ng.git
2 years agoAuto-detect wrapper when inflating and no window_bits specified.
Nathan Moinvaziri [Mon, 28 Feb 2022 17:00:26 +0000 (09:00 -0800)] 
Auto-detect wrapper when inflating and no window_bits specified.

2 years agoUpdated help usage with correct values for window_bits.
Nathan Moinvaziri [Sun, 27 Feb 2022 18:06:13 +0000 (10:06 -0800)] 
Updated help usage with correct values for window_bits.

2 years agoFixed wrong error name when calling inflate in minideflate.
Nathan Moinvaziri [Wed, 23 Feb 2022 20:07:01 +0000 (12:07 -0800)] 
Fixed wrong error name when calling inflate in minideflate.

2 years agoFixed failed tools tests when source directory is read-only.
Nathan Moinvaziri [Sat, 9 Apr 2022 04:43:54 +0000 (21:43 -0700)] 
Fixed failed tools tests when source directory is read-only.

2 years agoDisable LTO in CMake
Vladislav Shchapov [Mon, 4 Apr 2022 08:37:12 +0000 (13:37 +0500)] 
Disable LTO in CMake

2 years agoAdd test for issue #1235.
Mika Lindqvist [Wed, 6 Apr 2022 20:49:24 +0000 (23:49 +0300)] 
Add test for issue #1235.
* Test both compressBound() and deflateBound() as those share same code fragment.

2 years agoAdd one extra byte to return value of compressBound and deflateBound for small length...
Mika Lindqvist [Tue, 5 Apr 2022 21:04:45 +0000 (00:04 +0300)] 
Add one extra byte to return value of compressBound and deflateBound for small lengths due to shift returning 0.
* Treat 0 byte input as 1 byte input when calculating compressBound and deflateBound

2 years agoabicheck.sh: zlib-ng is a bash script, not a sh script, don't hardcode shell when...
Dan Kegel [Fri, 1 Apr 2022 19:42:28 +0000 (19:42 +0000)] 
abicheck.sh: zlib-ng is a bash script, not a sh script, don't hardcode shell when running configure

2 years agoRemove unistd.h include from gzguts.h which is already included from zconf.h via...
Nathan Moinvaziri [Sat, 26 Mar 2022 17:37:29 +0000 (10:37 -0700)] 
Remove unistd.h include from gzguts.h which is already included from zconf.h via zlib.h.

2 years agoUse HAVE instead of HAS for variable name for consistency.
Nathan Moinvaziri [Sat, 26 Mar 2022 15:47:01 +0000 (08:47 -0700)] 
Use HAVE instead of HAS for variable name for consistency.

2 years agoTest CVE-2018-25032 against the default level and levels 1 and 2.
Nathan Moinvaziri [Thu, 31 Mar 2022 17:04:49 +0000 (10:04 -0700)] 
Test CVE-2018-25032 against the default level and levels 1 and 2.

2 years agoAdded unit test against CVE-2018-25032 with default strategy.
Nathan Moinvaziri [Mon, 28 Mar 2022 14:53:55 +0000 (07:53 -0700)] 
Added unit test against CVE-2018-25032 with default strategy.

Co-authored-by: Eric Biggers <ebiggers@kernel.org>
2 years agoAdded unit test against CVE-2018-25032.
Nathan Moinvaziri [Sun, 27 Mar 2022 00:49:49 +0000 (17:49 -0700)] 
Added unit test against CVE-2018-25032.
Sample input from https://www.openwall.com/lists/oss-security/2022/03/26/1.

Co-authored-by: Tavis Ormandy <taviso@users.noreply.github.com>
2 years agoAdded missing -F argument for Z_FIXED strategy in minideflate.
Nathan Moinvaziri [Sun, 27 Mar 2022 00:26:16 +0000 (17:26 -0700)] 
Added missing -F argument for Z_FIXED strategy in minideflate.

2 years agoUpdate language around ABI compatibility with zlib. #1081
Nathan Moinvaziri [Mon, 21 Mar 2022 18:58:07 +0000 (11:58 -0700)] 
Update language around ABI compatibility with zlib. #1081

2 years agoFix a latent issue with chunkmemset
Adam Stylinski [Fri, 18 Mar 2022 00:22:56 +0000 (20:22 -0400)] 
Fix a latent issue with chunkmemset

It would seem that on some platforms, namely those which are
!UNALIGNED64_OK, there was a likelihood of chunkmemset_safe_c copying all
the bytes before passing control flow to chunkcopy, a function which is
explicitly unsafe to be called with a zero length copy.

This fixes that bug for those platforms.

2 years agomacOs M1 build fix on arm cpu checks.
David CARLIER [Fri, 18 Mar 2022 21:01:00 +0000 (21:01 +0000)] 
macOs M1 build fix on arm cpu checks.

2 years agoWrong variable used when detecting unaligned support for sanitize
Nathan Moinvaziri [Thu, 17 Mar 2022 19:57:41 +0000 (12:57 -0700)] 
Wrong variable used when detecting unaligned support for sanitize

2 years ago[README] Add missing FORCE_SSE2 for CMake.
Mika Lindqvist [Mon, 14 Mar 2022 18:02:01 +0000 (20:02 +0200)] 
[README] Add missing FORCE_SSE2 for CMake.

2 years agoAllow bypassing runtime feature check of TZCNT instructions.
Mika Lindqvist [Sun, 13 Mar 2022 15:12:42 +0000 (17:12 +0200)] 
Allow bypassing runtime feature check of TZCNT instructions.
* This avoids conditional branch when it's known at build time that TZCNT instructions are always supported

2 years agoFix UBSAN's cry afoul
Adam Stylinski [Thu, 17 Mar 2022 02:52:44 +0000 (22:52 -0400)] 
Fix UBSAN's cry afoul

Technically, we weren't actually doing this the way C wants us to,
legally.  The zmemcpy's turn into NOPs for pretty much all > 0
optimization levels and this gets us defined behavior with the
sanitizer, putting the optimized load by arbitrary alignment into the
compiler's hands instead of ours.

Backport note: Replaced zmemcpy with direct memcpy, as that is what we
end up with in a later commit anyway.

2 years agoAdded ClangCl instances to GitHub Actions workflow.
Nathan Moinvaziri [Wed, 9 Mar 2022 22:57:22 +0000 (14:57 -0800)] 
Added ClangCl instances to GitHub Actions workflow.

3 years agoVersion 2.0.6 2.0.6
Hans Kristian Rosbach [Mon, 13 Dec 2021 14:26:26 +0000 (15:26 +0100)] 
Version 2.0.6
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1049 #1071
 - Fix incorrect function declaration warning #1080
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1049 #1051 #1056 #1063 #1067 #1079
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075

3 years agoUpgrade version of GitHub checkout actions. #1078
Nathan Moinvaziri [Mon, 20 Dec 2021 16:15:40 +0000 (08:15 -0800)] 
Upgrade version of GitHub checkout actions. #1078

3 years agoFixed crc32_combine_gen declaration warning in zlib-ng API.
Nathan Moinvaziri [Mon, 20 Dec 2021 16:23:44 +0000 (08:23 -0800)] 
Fixed crc32_combine_gen declaration warning in zlib-ng API.

3 years agoIBM Z: Adjust compressBound() for DFLTCC
Ilya Leoshkevich [Mon, 11 Oct 2021 10:24:20 +0000 (12:24 +0200)] 
IBM Z: Adjust compressBound() for DFLTCC

When DFLTCC was introduced, deflateBound() was adjusted, but
compressBound() was not, leading to compression failures when using
compressBound() + compress() with poorly compressible data.

3 years agoIBM Z: Do not check inflateGetDictionary() with DFLTCC
Ilya Leoshkevich [Mon, 11 Oct 2021 11:47:20 +0000 (13:47 +0200)] 
IBM Z: Do not check inflateGetDictionary() with DFLTCC

The zlib manual does not specify a strict contract for
inflateGetDictionary(), it merely says that it "Returns the sliding
dictionary being maintained by inflate", which is an implementation
detail. IBM Z inflate's behavior differs from that of software, and
may change in the future to boot.

3 years agoLink crc32_test and infcover with $(CFLAGS)
Ilya Leoshkevich [Mon, 11 Oct 2021 10:36:28 +0000 (12:36 +0200)] 
Link crc32_test and infcover with $(CFLAGS)

This fixes link failures when using CFLAGS=-m31 on IBM Z. All the
other tests are already linked this way.

3 years agoFix deflateBound and compressBound returning very small size estimates.
Hans Kristian Rosbach [Mon, 13 Dec 2021 21:30:58 +0000 (22:30 +0100)] 
Fix deflateBound and compressBound returning very small size estimates.
Remove workaround in switchlevels.c, so we do actual testing of this.
Use named defines instead of magic numbers where we can.

3 years agoIBM Z: Run DFLTCC tests on the self-hosted builder
Ilya Leoshkevich [Wed, 4 Aug 2021 22:27:31 +0000 (00:27 +0200)] 
IBM Z: Run DFLTCC tests on the self-hosted builder

* Use the self-hosted builder instead of ubuntu-latest.
* Drop qemu-related settings from DFLTCC configurations.
* Install codecov only for the current user, since the self-hosted
  builder runs under a restricted non-root account.
* Use actions/checkout@v2 for configure checks, since for some reason
  actions/checkout@v1 cannot find git on the self-hosted builder.
* Update the testing section of the DFLTCC README.
* Add the infrastructure code for the self-hosted builder.

3 years agoAvoid warning C4295 when using Visual C++ and maintainer warnings are enabled.
Mika Lindqvist [Wed, 15 Dec 2021 07:18:03 +0000 (09:18 +0200)] 
Avoid warning C4295 when using Visual C++ and maintainer warnings are enabled.

3 years agoCOMP: Fix data loss warning
Jon Haitz Legarreta Gorroño [Sun, 10 Oct 2021 14:51:09 +0000 (10:51 -0400)] 
COMP: Fix data loss warning

Fix data loss warning.

Fixes:
```
itkzlib-ng/inflate.c(1209,24): warning C4267: '=': conversion from 'size_t' to 'unsigned long', possible loss of data
itkzlib-ng/inflate.c(1210,26): warning C4267: '=': conversion from 'size_t' to 'unsigned long', possible loss of data
```

3 years agoFix UB in inffast.c when not using window
Ori Livneh [Mon, 23 Aug 2021 16:40:19 +0000 (12:40 -0400)] 
Fix UB in inffast.c when not using window

When not using window, `window + wsize` applies a zero offset to a null pointer, which is undefined behavior.

3 years agoFix hangs on macOS due to loading of misaligned addresses in chunkmemset_8.
Sergey Markelov [Thu, 22 Jul 2021 17:23:26 +0000 (10:23 -0700)] 
Fix hangs on macOS due to loading of misaligned addresses in chunkmemset_8.

3 years agoStandardize crc32_stub
Matheus Castanho [Wed, 16 Jun 2021 17:36:24 +0000 (14:36 -0300)] 
Standardize crc32_stub

Reorganize statements inside crc32_stub() to match more closely the format
used for other function stubs in functable.c.

3 years agoFixed missing enclosing parentheses for ZSWAP64 in zutil.h to avoid erroneous result...
cenobit [Sat, 26 Jun 2021 02:57:00 +0000 (19:57 -0700)] 
Fixed missing enclosing parentheses for ZSWAP64 in zutil.h to avoid erroneous result in inffast.c.

3 years agoFixed undefined behavior of isgraph when character is not in the range 0 through...
Nathan Moinvaziri [Tue, 17 Aug 2021 17:12:37 +0000 (10:12 -0700)] 
Fixed undefined behavior of isgraph when character is not in the range 0 through 0xFF inclusive.

3 years agoDon't define HASH_SIZE if it is already defined.
Nathan Moinvaziri [Sat, 26 Jun 2021 04:44:22 +0000 (21:44 -0700)] 
Don't define HASH_SIZE if it is already defined.

3 years agoUse helper function for printing error and exiting in example.
Nathan Moinvaziri [Mon, 12 Jul 2021 03:31:08 +0000 (20:31 -0700)] 
Use helper function for printing error and exiting in example.

3 years agoFix minor formatting issues
Dženan Zukić [Mon, 6 Sep 2021 18:38:09 +0000 (14:38 -0400)] 
Fix minor formatting issues

From ITK PR: https://github.com/InsightSoftwareConsortium/ITK/pull/2803
CI check: https://github.com/InsightSoftwareConsortium/ITK/runs/3864083025

commit 5434d42 adds bad whitespace:
README.md:223: new blank line at EOF.

commit 5434d42 is not allowed; missing newline at the end of file in .gitattributes.

3 years agoFixed trailing whitespaces and missing new lines.
Nathan Moinvaziri [Sat, 4 Sep 2021 19:16:16 +0000 (12:16 -0700)] 
Fixed trailing whitespaces and missing new lines.

3 years agoFixed minideflate write buffers being overwritten.
Nathan Moinvaziri [Fri, 12 Nov 2021 01:55:13 +0000 (17:55 -0800)] 
Fixed minideflate write buffers being overwritten.

3 years agoMake integration into bigger projects easier
Dženan Zukić [Mon, 6 Sep 2021 18:26:56 +0000 (14:26 -0400)] 
Make integration into bigger projects easier

3 years agoInclude win directory in pigz even if not using threads.
Nathan Moinvaziri [Thu, 1 Jul 2021 21:06:06 +0000 (14:06 -0700)] 
Include win directory in pigz even if not using threads.

3 years ago[MacOS] Downgrade to XCode 11.7.0 for pkgcheck.
Mika Lindqvist [Fri, 29 Oct 2021 17:57:31 +0000 (20:57 +0300)] 
[MacOS] Downgrade to XCode 11.7.0 for pkgcheck.

3 years agoAdded build system check for posix_memalign support.
Nathan Moinvaziri [Sat, 26 Jun 2021 00:23:34 +0000 (17:23 -0700)] 
Added build system check for posix_memalign support.

Co-authored-by: concatime <concatime@users.noreply@github.com>
Co-authored-by: Mika Lindqvist <postmaster@raasu.org>
3 years agoFill out gzheader before calling deflateSetHeader for better code coverage in example.
Nathan Moinvaziri [Sun, 11 Jul 2021 23:59:21 +0000 (16:59 -0700)] 
Fill out gzheader before calling deflateSetHeader for better code coverage in example.

3 years ago[arm] Disable ACLE, UNALIGNED_OK and UNALIGNED64_OK on armv7 and earlier.
Mika Lindqvist [Wed, 21 Jul 2021 16:26:43 +0000 (19:26 +0300)] 
[arm] Disable ACLE, UNALIGNED_OK and UNALIGNED64_OK on armv7 and earlier.
* armv7 has partial support for unaligned reads, but compiler might use instructions that do not support unaligned accesses

3 years agoAdded unit test to ensure that inflate with adler32 hash works on previously failed...
Nathan Moinvaziri [Tue, 7 Dec 2021 21:24:26 +0000 (16:24 -0500)] 
Added unit test to ensure that inflate with adler32 hash works on previously failed test case.

3 years agoWorkaround for installation failure of wine32.
Mika Lindqvist [Sat, 4 Dec 2021 06:25:17 +0000 (08:25 +0200)] 
Workaround for installation failure of wine32.

3 years agoENH: Transition to Ubuntu 18.04 in `GitHub` actions workflows
Jon Haitz Legarreta Gorroño [Wed, 13 Oct 2021 13:58:41 +0000 (09:58 -0400)] 
ENH: Transition to Ubuntu 18.04 in `GitHub` actions workflows

Transition to Ubuntu 18.04 in `GitHub` actions workflows.

Fixes:
```
Ubuntu 16.04 Clang
This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.

Ubuntu 16.04 GCC
This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.
```

reported for example at:
https://github.com/zlib-ng/zlib-ng/actions/runs/1326434358

Official `GitHub` notice related to the removal of the 16.04 virtual
environments:
https://github.blog/changelog/2021-04-29-github-actions-ubuntu-16-04-lts-virtual-environment-will-be-removed-on-september-20-2021/

3 years agoIBM Z: Fix building outside of a source directory
Ilya Leoshkevich [Mon, 11 Oct 2021 11:12:42 +0000 (13:12 +0200)] 
IBM Z: Fix building outside of a source directory

Do not use relative includes, since they are valid only within the
source directory. Rely on the build system to pass the necessary
include flags instead.

3 years agoAdded code coverage for inflateGetDictionary in example.
Nathan Moinvaziri [Sun, 11 Jul 2021 23:17:30 +0000 (16:17 -0700)] 
Added code coverage for inflateGetDictionary in example.

3 years agoCall deflateBound to calculate length with custom gzip header in example.
Nathan Moinvaziri [Sun, 11 Jul 2021 23:58:48 +0000 (16:58 -0700)] 
Call deflateBound to calculate length with custom gzip header in example.

3 years agoAdded CI instances for CTZLL and CTZ builtin existence to improve code coverage.
Nathan Moinvaziri [Sat, 10 Jul 2021 17:08:53 +0000 (10:08 -0700)] 
Added CI instances for CTZLL and CTZ builtin existence to improve code coverage.

3 years agoAdd new crc32 unit test
Matheus Castanho [Wed, 16 Jun 2021 17:36:24 +0000 (14:36 -0300)] 
Add new crc32 unit test

4 years agoFix Z_SOLO mode
Bernhard Rosenkränzer [Sun, 27 Jun 2021 12:31:54 +0000 (14:31 +0200)] 
Fix Z_SOLO mode

Without this patch, #include <zlib.h> with Z_SOLO defined
(e.g. while building perl 5.34.0) fails because of use of
undefined types.

4 years agoVersion 2.0.5 2.0.5
Hans Kristian Rosbach [Mon, 21 Jun 2021 10:07:01 +0000 (12:07 +0200)] 
Version 2.0.5
- Fix inflate corruption on aarch64 #1008
- Fix MSVC warnings #1002 #1013
- Minor chunkset improvements #1000 #994 #1015
- Minor cleanup #997
- Add CI test for pigz on aarch64 #1004
- Cmake improvements #996

4 years ago[functable] Add missing call to cpu_check_features().
Mika Lindqvist [Mon, 21 Jun 2021 22:41:16 +0000 (01:41 +0300)] 
[functable] Add missing call to cpu_check_features().

4 years agoCast calculation of safe length to unsigned int to avoid compiler warnings.
Mika Lindqvist [Mon, 21 Jun 2021 06:07:59 +0000 (09:07 +0300)] 
Cast calculation of safe length to unsigned int to avoid compiler warnings.

4 years ago[chunkcopy_safe] Don't call chunkcopy().
Mika Lindqvist [Fri, 18 Jun 2021 23:08:20 +0000 (02:08 +0300)] 
[chunkcopy_safe] Don't call chunkcopy().
* chunkcopy() can read or write more than the safe length if the length is not multiple of chunk size.

4 years ago[chunkset_neon] Use vdupq_n_u64.
Mika Lindqvist [Fri, 18 Jun 2021 21:10:44 +0000 (00:10 +0300)] 
[chunkset_neon] Use vdupq_n_u64.
* Using vdupq_n_u64 duplicates the unsigned 64-bit integer to two consecutive aligned memory locations in stack so compiler can use wider load instructions.
  All different-sized general-purpose registers overlay on ARM/AArch64, so any vector cast is no-op in assembly.

4 years ago[chunkset_neon] Don't use signed vector types.
Mika Lindqvist [Fri, 18 Jun 2021 20:15:28 +0000 (23:15 +0300)] 
[chunkset_neon] Don't use signed vector types.
* There is no need to convert between unsigned and signed vector types. All relevant intrinsics have versions for all unsigned vector types.

4 years agoReduce number of branches in partial chunk copy based on chunk size.
Nathan Moinvaziri [Sun, 13 Jun 2021 22:57:28 +0000 (15:57 -0700)] 
Reduce number of branches in partial chunk copy based on chunk size.

4 years agoFix MSVC warnings in hash_head_0.c test
Ilya Leoshkevich [Mon, 14 Jun 2021 19:03:51 +0000 (21:03 +0200)] 
Fix MSVC warnings in hash_head_0.c test

4 years agoAdded aarch64 to pigz GitHub actions workflow.
Nathan Moinvaziri [Wed, 16 Jun 2021 15:11:33 +0000 (08:11 -0700)] 
Added aarch64 to pigz GitHub actions workflow.

4 years agoAdded Z_UNUSED define for ignore unused variables.
Nathan Moinvaziri [Sun, 13 Jun 2021 22:16:20 +0000 (15:16 -0700)] 
Added Z_UNUSED define for ignore unused variables.

4 years agoChange WITH_SANITIZER to be a multi-option parameter (for ccmake etc).
Hans Kristian Rosbach [Sun, 13 Jun 2021 13:11:23 +0000 (15:11 +0200)] 
Change WITH_SANITIZER to be a multi-option parameter (for ccmake etc).
Add support for selcting Thread sanitizer.

4 years agoAdded assert in chunkcopy to detect invalid length.
Nathan Moinvaziri [Fri, 11 Jun 2021 00:25:27 +0000 (17:25 -0700)] 
Added assert in chunkcopy to detect invalid length.

4 years agoCalculate from and out buffer advance only once in chunkcopy.
Nathan Moinvaziri [Fri, 4 Jun 2021 22:27:26 +0000 (15:27 -0700)] 
Calculate from and out buffer advance only once in chunkcopy.

4 years agoOnly need to add rem if it is greater than zero in chunkmemset.
Nathan Moinvaziri [Fri, 4 Jun 2021 22:24:23 +0000 (15:24 -0700)] 
Only need to add rem if it is greater than zero in chunkmemset.

4 years agoMust use safe chunk copies due to inflateBack using the same allocation for output...
Nathan Moinvaziri [Fri, 11 Jun 2021 00:19:25 +0000 (17:19 -0700)] 
Must use safe chunk copies due to inflateBack using the same allocation for output and   window. In this instance if too many bytes are written it will not correctly write matches with distances close to the window size.

4 years agoVersion 2.0.4 2.0.4
Hans Kristian Rosbach [Fri, 11 Jun 2021 10:44:06 +0000 (12:44 +0200)] 
Version 2.0.4
- Fix inflate corruption #982
- Minor code cleanup #983 #984
- Fix mpicc compilation #959
- Fix build on NetBSD #964
- Fix build on OpenBSD #970
- Fix build on Cygwin #972 #974
- Fix linter warnings in configure #975
- Spelling fixes #961
- Improve unistd.h handling #960
- Remove stdarg.h detection #976
- CI/Test improvements #977 #981 #985
- Cmake improvements #980 #989

4 years ago[CHUNKMEMSET_SAFE] Precalculate "from".
Mika Lindqvist [Thu, 10 Jun 2021 15:23:34 +0000 (18:23 +0300)] 
[CHUNKMEMSET_SAFE] Precalculate "from".
* limit len to minimum of len and left

4 years ago[inflate_fast] Always use safe versions of chunkcopy and chunkmemset to avoid errors...
Nathan Moinvaziri [Wed, 9 Jun 2021 16:15:52 +0000 (19:15 +0300)] 
[inflate_fast] Always use safe versions of chunkcopy and chunkmemset to avoid errors with optimizations enabled.

4 years ago[CHUNKCOPY_SAFE] Fix off-by-one error
Mika Lindqvist [Wed, 9 Jun 2021 16:15:12 +0000 (19:15 +0300)] 
[CHUNKCOPY_SAFE] Fix off-by-one error
* When chunk size was more than 8 bytes, the comparison logic failed if safe length was one less than chunk size.

4 years agofix: unterminated #elif in detect-arch.c
Ilya Kurdyukov [Wed, 9 Jun 2021 12:27:24 +0000 (19:27 +0700)] 
fix: unterminated #elif in detect-arch.c

```
$ gcc detect-arch.c
detect-arch.c:8:6: error: #error archfound x86_64
     #error archfound x86_64
      ^~~~~
detect-arch.c:7:0: error: unterminated #elif
 #if defined(__x86_64__) || defined(_M_X64)
```

4 years agofix: SSE42CMPSTR compiled even if WITH_SSE4=OFF
Ilya Kurdyukov [Wed, 9 Jun 2021 12:19:50 +0000 (19:19 +0700)] 
fix: SSE42CMPSTR compiled even if WITH_SSE4=OFF

4 years agoAdded pigz tests for no threads and no optimizations.
Nathan Moinvaziri [Fri, 4 Jun 2021 15:01:30 +0000 (08:01 -0700)] 
Added pigz tests for no threads and no optimizations.

4 years agoAdded GH-979 failure test case against for inflateBack.
Nathan Moinvaziri [Fri, 4 Jun 2021 01:44:08 +0000 (18:44 -0700)] 
Added GH-979 failure test case against for inflateBack.

4 years agoAdded CMake project for building pigz.
Nathan Moinvaziri [Fri, 4 Jun 2021 01:02:03 +0000 (18:02 -0700)] 
Added CMake project for building pigz.
Added GitHub Actions CI for testing pigz.

4 years agoMove MIN() macro to zbuild.h
Mika Lindqvist [Wed, 2 Jun 2021 23:38:24 +0000 (02:38 +0300)] 
Move MIN() macro to zbuild.h

4 years agoUse SET_BAD macro in inflateBack.
Nathan Moinvaziri [Wed, 2 Jun 2021 23:32:00 +0000 (16:32 -0700)] 
Use SET_BAD macro in inflateBack.

4 years agoReplace CMAKE_CURRENT_SOURCE_DIR to CMAKE_CURRENT_LIST_DIR
Vladislav Shchapov [Sat, 29 May 2021 12:34:40 +0000 (17:34 +0500)] 
Replace CMAKE_CURRENT_SOURCE_DIR to CMAKE_CURRENT_LIST_DIR

4 years agoFixed trying to uncompress after compressing in gzip direct mode which is not support...
Nathan Moinvaziri [Thu, 27 May 2021 17:27:09 +0000 (10:27 -0700)] 
Fixed trying to uncompress after compressing in gzip direct mode which is not supported by gz functions.
https://oss-fuzz.com/testcase-detail/6194422837542912

4 years agoFixed gz mode for compression level not using ascii numeric value.
Nathan Moinvaziri [Thu, 27 May 2021 17:17:08 +0000 (10:17 -0700)] 
Fixed gz mode for compression level not using ascii numeric value.

4 years agoUse different fuzzer bits in example_dict_fuzzer for more input value combinations.
Nathan Moinvaziri [Thu, 27 May 2021 16:31:47 +0000 (09:31 -0700)] 
Use different fuzzer bits in example_dict_fuzzer for more input value combinations.

4 years agoExplicitly state clang version to prevent future code coverage format mismatches.
Nathan Moinvaziri [Sat, 29 May 2021 19:01:07 +0000 (12:01 -0700)] 
Explicitly state clang version to prevent future code coverage format mismatches.

4 years agoUse latest version of llvm-cov 11 to prevent code coverage version mismatch when...
Nathan Moinvaziri [Sat, 29 May 2021 18:14:48 +0000 (11:14 -0700)] 
Use latest version of llvm-cov 11 to prevent code coverage version mismatch when using clang.

4 years agoOnly when using Visual C++, the static library name should be "zlibstatic"
Mika Lindqvist [Sat, 22 May 2021 05:38:46 +0000 (08:38 +0300)] 
Only when using Visual C++, the static library name should be "zlibstatic"
* On CygWin, MSYS and MinGW, the static library name should be "z" like on other Unix-like systems

4 years agoRemove unnecessary test for stdarg.h
Mika Lindqvist [Tue, 25 May 2021 17:45:27 +0000 (20:45 +0300)] 
Remove unnecessary test for stdarg.h

4 years agoHandle HAVE_UNISTD_H defined to 0.
Paweł Wegner [Thu, 13 May 2021 15:15:37 +0000 (17:15 +0200)] 
Handle HAVE_UNISTD_H defined to 0.

FFmpeg during the configure stage generates a config.h file with
```
#define HAVE_UNISTD_H 0
```
on windows. Then somewhere in FFmpeg's code there is:
```
#include "config.h"  // FFmpeg's config.h
#include <zlib.h>
```
which causes zlib.h to include unistd.h on windows. It is way easier to handle the issue here than in FFmpeg.

Co-authored-by: Mika Lindqvist <postmaster@raasu.org>
4 years agoFix warnings in configure
Mika Lindqvist [Tue, 25 May 2021 16:55:27 +0000 (19:55 +0300)] 
Fix warnings in configure
* Don't assign contents of variable to itself
* Quote strings containing "="

4 years agoFix build under Cygwin.
Mika Lindqvist [Tue, 25 May 2021 14:46:46 +0000 (17:46 +0300)] 
Fix build under Cygwin.

4 years agoOpenBSD build fix proposal
David Carlier [Fri, 21 May 2021 19:36:21 +0000 (20:36 +0100)] 
OpenBSD build fix proposal

4 years agoFix build on NetBSD
Kolby Crouch [Sat, 15 May 2021 18:17:42 +0000 (13:17 -0500)] 
Fix build on NetBSD

4 years agoRemove redundancy; apple is unix
Greg Sjaardema [Thu, 13 May 2021 14:41:22 +0000 (08:41 -0600)] 
Remove redundancy; apple is unix

4 years agoFix compiler detection to avoid bad mpicc match
Greg Sjaardema [Thu, 13 May 2021 13:57:24 +0000 (07:57 -0600)] 
Fix compiler detection to avoid bad mpicc match

4 years agoSpelling fixes
Greg Sjaardema [Thu, 13 May 2021 23:10:12 +0000 (17:10 -0600)] 
Spelling fixes

4 years agoVersion 2.0.3 2.0.3
Hans Kristian Rosbach [Sat, 8 May 2021 16:45:00 +0000 (18:45 +0200)] 
Version 2.0.3

- Include porting guide in release packages #917
- Documentation improvements #913 #949
- Added Windows ARM binaries in release packages #916
- Fix crash on ARMv7 #927
- Fix building on FreeBSD #921
- Fix building with musl on aarch64 #936 #952
- Fix ARM float-abi detection #918
- Fix cmake detection of risc-v architectures #942
- Minor buildsystem fixes #922 #924 #933 #938 #950
- Improve zlib-compat build #915 #944
- CI/Test improvements #926 #929 #927 #937 #939 #940