summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-13Must use safe chunk copies due to inflateBack using the same allocation for ↵Nathan Moinvaziri
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.
2021-06-11Version 2.0.4Hans Kristian Rosbach
- 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
2021-06-11[CHUNKMEMSET_SAFE] Precalculate "from".Mika Lindqvist
* limit len to minimum of len and left
2021-06-11[inflate_fast] Always use safe versions of chunkcopy and chunkmemset to ↵Nathan Moinvaziri
avoid errors with optimizations enabled.
2021-06-11[CHUNKCOPY_SAFE] Fix off-by-one errorMika Lindqvist
* When chunk size was more than 8 bytes, the comparison logic failed if safe length was one less than chunk size.
2021-06-11fix: unterminated #elif in detect-arch.c Ilya Kurdyukov
``` $ 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) ```
2021-06-11fix: SSE42CMPSTR compiled even if WITH_SSE4=OFFIlya Kurdyukov
2021-06-08Added pigz tests for no threads and no optimizations.Nathan Moinvaziri
2021-06-08Added GH-979 failure test case against for inflateBack.Nathan Moinvaziri
2021-06-08Added CMake project for building pigz.Nathan Moinvaziri
Added GitHub Actions CI for testing pigz.
2021-06-04Move MIN() macro to zbuild.hMika Lindqvist
2021-06-04Use SET_BAD macro in inflateBack.Nathan Moinvaziri
2021-06-02Replace CMAKE_CURRENT_SOURCE_DIR to CMAKE_CURRENT_LIST_DIRVladislav Shchapov
2021-05-30Fixed trying to uncompress after compressing in gzip direct mode which is ↵Nathan Moinvaziri
not supported by gz functions. https://oss-fuzz.com/testcase-detail/6194422837542912
2021-05-30Fixed gz mode for compression level not using ascii numeric value.Nathan Moinvaziri
2021-05-30Use different fuzzer bits in example_dict_fuzzer for more input value ↵Nathan Moinvaziri
combinations.
2021-05-30Explicitly state clang version to prevent future code coverage format ↵Nathan Moinvaziri
mismatches.
2021-05-30Use latest version of llvm-cov 11 to prevent code coverage version mismatch ↵Nathan Moinvaziri
when using clang.
2021-05-29Only when using Visual C++, the static library name should be "zlibstatic"Mika Lindqvist
* On CygWin, MSYS and MinGW, the static library name should be "z" like on other Unix-like systems
2021-05-29Remove unnecessary test for stdarg.hMika Lindqvist
2021-05-29Handle HAVE_UNISTD_H defined to 0.Paweł Wegner
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>
2021-05-27Fix warnings in configureMika Lindqvist
* Don't assign contents of variable to itself * Quote strings containing "="
2021-05-27Fix build under Cygwin.Mika Lindqvist
2021-05-27OpenBSD build fix proposalDavid Carlier
2021-05-18Fix build on NetBSDKolby Crouch
2021-05-18Remove redundancy; apple is unixGreg Sjaardema
2021-05-18Fix compiler detection to avoid bad mpicc matchGreg Sjaardema
2021-05-16Spelling fixesGreg Sjaardema
2021-05-13Version 2.0.3Hans Kristian Rosbach
- 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
2021-05-09[ARM/AArch64] More thorough testing of getauxval() macros and includesMika Lindqvist
* 32-bit ARM and AArch64 use slightly different macros for CRC32 and NEON feature bits * 32-bit ARM sometimes requires asm/hwcap.h for AT_HWCAP2
2021-05-08upgrade links to HTTPSViktor Szakats
http://infozip.sourceforge.net/ is sadly not having HTTPS access enabled. Shoutout to somebody with admin access for this project: It would be nice to enable it and thus allowing secure access to these pages via https://infozip.sourceforge.io/ . The option has been there for a while now: https://sourceforge.net/blog/introducing-https-for-project-websites/ also: - follow permanent redirects - add ending slashes
2021-05-08Don't check for SSSE3 on non-x86 architectures.Hans Kristian Rosbach
2021-05-06Fix cmake detection of risc-v (32 and 64 bit)Vladimir Smirnov
Add a case to detect risc-v architectures. Fixes #941
2021-05-06Reintroduce Z_SOLO support for compatibility mode.Mika Lindqvist
2021-05-03Add status messages in test-compress cmake script.Nathan Moinvaziri
Change filenames used during test to make it more clear what stage they are apart of.
2021-05-03Simplify cleaning up files in test-compress cmake script and always clean up ↵Nathan Moinvaziri
files on successful run.
2021-05-03Create temporary files in CTest's Testing/Temporary directory and upload all ↵Nathan Moinvaziri
files as artifacts.
2021-05-03Print differences between expected output in test-compress cmake script and ↵Nathan Moinvaziri
upload as artifacts.
2021-05-02Decompress gzip compressed archive to a separate file to prevent corruption ↵Nathan Moinvaziri
issues on macOS. (#939) * Decompress gzip compressed archive to a separate file to prevent corruption issues on macOS. * Clean up fatal error messages in test-compress cmake script.
2021-04-29crc: fix three conversion warningsAaron Boxer
2021-04-29Detect hwcap flags needed for runtime detection on ARM LinuxJosh Triplett
This allows us to provide useful warning messages from cmake or configure if the system headers don't provide the necessary flags to do runtime detection.
2021-04-29Don't directly include asm/hwcap.h; fix compilation on musl aarch64Josh Triplett
sys/auxv.h includes the appropriate headers to provide the HWCAP constants, on both glibc and musl, which makes it unnecessary to include asm/hwcap.h directly. And on musl, asm/hwcap.h doesn't exist.
2021-04-28Added Z_FIXED and direct gzip out modes to minigzip fuzzer.Nathan Moinvaziri
2021-04-28Changed minigzip fuzzer outmode[3] to be determined based on a different ↵Nathan Moinvaziri
value then outmode[2] for better coverage.
2021-04-27Fix cmake coverage detection requiring cmake 3.14 or newer.Hans Kristian Rosbach
2021-04-27Fix build with LTO on GCCVictor Westerhuis
2021-04-20Remove unnecessary malloc.h header include from minigzip and minigzip_fuzzer.Nathan Moinvaziri
2021-04-14[ARM] Use temporary variable when loading more than 8 bits in ↵Mika Lindqvist
chunkmemset_neon(). * using memcpy() forbids optimizer to optimize away the temporary variable due to aliasing rules.
2021-04-14Write generated files during tests to CMake's build directory using the name ↵Nathan Moinvaziri
of the test. Co-authored-by: Vladislav Shchapov <phprus@users.noreply.github.com>
2021-04-09Changed auto-detection of float-abi support by removing triplet check in ↵Nathan Moinvaziri
favor of compilation and link test. #911