summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-13Port zlib-ng to the Android platformHEADsugisawa-mr1Danny Lin
- Add Soong blueprint - Add CRC32 fixes - Add NDK mappings All changes were based on the Android fork of Chromium zlib. Change-Id: Icf0f00d95e1534a0f5683cce40679916a464cc12
2021-12-24Version 2.0.6Hans Kristian Rosbach
- 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
2021-12-24Upgrade version of GitHub checkout actions. #1078Nathan Moinvaziri
2021-12-24Fixed crc32_combine_gen declaration warning in zlib-ng API.Nathan Moinvaziri
2021-12-24IBM Z: Adjust compressBound() for DFLTCCIlya Leoshkevich
When DFLTCC was introduced, deflateBound() was adjusted, but compressBound() was not, leading to compression failures when using compressBound() + compress() with poorly compressible data.
2021-12-24IBM Z: Do not check inflateGetDictionary() with DFLTCCIlya Leoshkevich
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.
2021-12-24Link crc32_test and infcover with $(CFLAGS)Ilya Leoshkevich
This fixes link failures when using CFLAGS=-m31 on IBM Z. All the other tests are already linked this way.
2021-12-24Fix deflateBound and compressBound returning very small size estimates.Hans Kristian Rosbach
Remove workaround in switchlevels.c, so we do actual testing of this. Use named defines instead of magic numbers where we can.
2021-12-24IBM Z: Run DFLTCC tests on the self-hosted builderIlya Leoshkevich
* 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.
2021-12-24Avoid warning C4295 when using Visual C++ and maintainer warnings are enabled.Mika Lindqvist
2021-12-24COMP: Fix data loss warningJon Haitz Legarreta Gorroño
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 ```
2021-12-24Fix UB in inffast.c when not using windowOri Livneh
When not using window, `window + wsize` applies a zero offset to a null pointer, which is undefined behavior.
2021-12-24Fix hangs on macOS due to loading of misaligned addresses in chunkmemset_8.Sergey Markelov
2021-12-24Standardize crc32_stubMatheus Castanho
Reorganize statements inside crc32_stub() to match more closely the format used for other function stubs in functable.c.
2021-12-24Fixed missing enclosing parentheses for ZSWAP64 in zutil.h to avoid ↵cenobit
erroneous result in inffast.c.
2021-12-24Fixed undefined behavior of isgraph when character is not in the range 0 ↵Nathan Moinvaziri
through 0xFF inclusive.
2021-12-24Don't define HASH_SIZE if it is already defined.Nathan Moinvaziri
2021-12-24Use helper function for printing error and exiting in example.Nathan Moinvaziri
2021-12-24Fix minor formatting issuesDženan Zukić
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.
2021-12-24Fixed trailing whitespaces and missing new lines.Nathan Moinvaziri
2021-12-24Fixed minideflate write buffers being overwritten.Nathan Moinvaziri
2021-12-24Make integration into bigger projects easierDženan Zukić
2021-12-24Include win directory in pigz even if not using threads.Nathan Moinvaziri
2021-12-24[MacOS] Downgrade to XCode 11.7.0 for pkgcheck.Mika Lindqvist
2021-12-24Added build system check for posix_memalign support.Nathan Moinvaziri
Co-authored-by: concatime <concatime@users.noreply@github.com> Co-authored-by: Mika Lindqvist <postmaster@raasu.org>
2021-12-24Fill out gzheader before calling deflateSetHeader for better code coverage ↵Nathan Moinvaziri
in example.
2021-12-24[arm] Disable ACLE, UNALIGNED_OK and UNALIGNED64_OK on armv7 and earlier.Mika Lindqvist
* armv7 has partial support for unaligned reads, but compiler might use instructions that do not support unaligned accesses
2021-12-24Added unit test to ensure that inflate with adler32 hash works on previously ↵Nathan Moinvaziri
failed test case.
2021-12-24Workaround for installation failure of wine32.Mika Lindqvist
2021-12-24ENH: Transition to Ubuntu 18.04 in `GitHub` actions workflowsJon Haitz Legarreta Gorroño
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/
2021-12-24IBM Z: Fix building outside of a source directoryIlya Leoshkevich
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.
2021-12-24Added code coverage for inflateGetDictionary in example.Nathan Moinvaziri
2021-12-24Call deflateBound to calculate length with custom gzip header in example.Nathan Moinvaziri
2021-12-24Added CI instances for CTZLL and CTZ builtin existence to improve code coverage.Nathan Moinvaziri
2021-12-24Add new crc32 unit testMatheus Castanho
2021-08-11Fix Z_SOLO modeBernhard Rosenkränzer
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.
2021-06-25Version 2.0.5Hans Kristian Rosbach
- 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
2021-06-22[functable] Add missing call to cpu_check_features().Mika Lindqvist
2021-06-21Cast calculation of safe length to unsigned int to avoid compiler warnings.Mika Lindqvist
2021-06-21[chunkcopy_safe] Don't call chunkcopy().Mika Lindqvist
* chunkcopy() can read or write more than the safe length if the length is not multiple of chunk size.
2021-06-21[chunkset_neon] Use vdupq_n_u64.Mika Lindqvist
* 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.
2021-06-21[chunkset_neon] Don't use signed vector types.Mika Lindqvist
* There is no need to convert between unsigned and signed vector types. All relevant intrinsics have versions for all unsigned vector types.
2021-06-21Reduce number of branches in partial chunk copy based on chunk size.Nathan Moinvaziri
2021-06-21Fix MSVC warnings in hash_head_0.c testIlya Leoshkevich
2021-06-21Added aarch64 to pigz GitHub actions workflow.Nathan Moinvaziri
2021-06-21Added Z_UNUSED define for ignore unused variables.Nathan Moinvaziri
2021-06-21Change WITH_SANITIZER to be a multi-option parameter (for ccmake etc).Hans Kristian Rosbach
Add support for selcting Thread sanitizer.
2021-06-13Added assert in chunkcopy to detect invalid length.Nathan Moinvaziri
2021-06-13Calculate from and out buffer advance only once in chunkcopy.Nathan Moinvaziri
2021-06-13Only need to add rem if it is greater than zero in chunkmemset.Nathan Moinvaziri