-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parametrized testing #1448
base: develop
Are you sure you want to change the base?
Add parametrized testing #1448
Commits on Jun 13, 2021
-
Must use safe chunk copies due to inflateBack using the same allocati…
…on 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.
Configuration menu - View commit details
-
Copy full SHA for c79998f - Browse repository at this point
Copy the full SHA c79998fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6438064 - Browse repository at this point
Copy the full SHA 6438064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11d7321 - Browse repository at this point
Copy the full SHA 11d7321View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cc2637 - Browse repository at this point
Copy the full SHA 6cc2637View commit details
Commits on Jun 21, 2021
-
Change WITH_SANITIZER to be a multi-option parameter (for ccmake etc).
Add support for selcting Thread sanitizer.
Configuration menu - View commit details
-
Copy full SHA for 89992df - Browse repository at this point
Copy the full SHA 89992dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0a801e - Browse repository at this point
Copy the full SHA f0a801eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d2ce27 - Browse repository at this point
Copy the full SHA 5d2ce27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77966c0 - Browse repository at this point
Copy the full SHA 77966c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fdfedd - Browse repository at this point
Copy the full SHA 3fdfeddView commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for 61a5776 - Browse repository at this point
Copy the full SHA 61a5776View commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for 089b2e7 - Browse repository at this point
Copy the full SHA 089b2e7View commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for c4511df - Browse repository at this point
Copy the full SHA c4511dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74b4165 - Browse repository at this point
Copy the full SHA 74b4165View commit details
Commits on Jun 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3a66bc7 - Browse repository at this point
Copy the full SHA 3a66bc7View commit details
Commits on Jun 25, 2021
-
- Fix inflate corruption on aarch64 zlib-ng#1008 - Fix MSVC warnings zlib-ng#1002 zlib-ng#1013 - Minor chunkset improvements zlib-ng#1000 zlib-ng#994 zlib-ng#1015 - Minor cleanup zlib-ng#997 - Add CI test for pigz on aarch64 zlib-ng#1004 - Cmake improvements zlib-ng#996
Configuration menu - View commit details
-
Copy full SHA for c69f78b - Browse repository at this point
Copy the full SHA c69f78bView commit details
Commits on Aug 11, 2021
-
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.
Configuration menu - View commit details
-
Copy full SHA for ac97954 - Browse repository at this point
Copy the full SHA ac97954View commit details
Commits on Dec 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 59c8b88 - Browse repository at this point
Copy the full SHA 59c8b88View commit details -
Configuration menu - View commit details
-
Copy full SHA for e08cb8e - Browse repository at this point
Copy the full SHA e08cb8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18a4712 - Browse repository at this point
Copy the full SHA 18a4712View commit details -
Configuration menu - View commit details
-
Copy full SHA for de570b8 - Browse repository at this point
Copy the full SHA de570b8View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 432d00d - Browse repository at this point
Copy the full SHA 432d00dView commit details -
ENH: Transition to Ubuntu 18.04 in
GitHub
actions workflowsTransition 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/
Configuration menu - View commit details
-
Copy full SHA for 49b531b - Browse repository at this point
Copy the full SHA 49b531bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07d7354 - Browse repository at this point
Copy the full SHA 07d7354View commit details -
Added unit test to ensure that inflate with adler32 hash works on pre…
…viously failed test case.
Configuration menu - View commit details
-
Copy full SHA for 8e22abd - Browse repository at this point
Copy the full SHA 8e22abdView commit details -
[arm] Disable ACLE, UNALIGNED_OK and UNALIGNED64_OK on armv7 and earl…
…ier. * armv7 has partial support for unaligned reads, but compiler might use instructions that do not support unaligned accesses
Configuration menu - View commit details
-
Copy full SHA for 13f155e - Browse repository at this point
Copy the full SHA 13f155eView commit details -
Fill out gzheader before calling deflateSetHeader for better code cov…
…erage in example.
Configuration menu - View commit details
-
Copy full SHA for 3d7381f - Browse repository at this point
Copy the full SHA 3d7381fView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 7bf46bb - Browse repository at this point
Copy the full SHA 7bf46bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 022307b - Browse repository at this point
Copy the full SHA 022307bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ffbd26 - Browse repository at this point
Copy the full SHA 1ffbd26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5048bde - Browse repository at this point
Copy the full SHA 5048bdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cf93da - Browse repository at this point
Copy the full SHA 8cf93daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f22eb6 - Browse repository at this point
Copy the full SHA 2f22eb6View commit details -
From ITK PR: InsightSoftwareConsortium/ITK#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.
Configuration menu - View commit details
-
Copy full SHA for cab06b0 - Browse repository at this point
Copy the full SHA cab06b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e945928 - Browse repository at this point
Copy the full SHA e945928View commit details -
Configuration menu - View commit details
-
Copy full SHA for f172e34 - Browse repository at this point
Copy the full SHA f172e34View commit details -
Fixed undefined behavior of isgraph when character is not in the rang…
…e 0 through 0xFF inclusive.
Configuration menu - View commit details
-
Copy full SHA for 141ca90 - Browse repository at this point
Copy the full SHA 141ca90View commit details -
Fixed missing enclosing parentheses for ZSWAP64 in zutil.h to avoid e…
…rroneous result in inffast.c.
Configuration menu - View commit details
-
Copy full SHA for 7445409 - Browse repository at this point
Copy the full SHA 7445409View commit details -
Reorganize statements inside crc32_stub() to match more closely the format used for other function stubs in functable.c.
Configuration menu - View commit details
-
Copy full SHA for 5bbf9ef - Browse repository at this point
Copy the full SHA 5bbf9efView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdc8033 - Browse repository at this point
Copy the full SHA cdc8033View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a9f2e15 - Browse repository at this point
Copy the full SHA a9f2e15View commit details -
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 ```
Configuration menu - View commit details
-
Copy full SHA for a0beadd - Browse repository at this point
Copy the full SHA a0beaddView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1b0a04 - Browse repository at this point
Copy the full SHA f1b0a04View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2faaf5b - Browse repository at this point
Copy the full SHA 2faaf5bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8a378ba - Browse repository at this point
Copy the full SHA 8a378baView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a38184e - Browse repository at this point
Copy the full SHA a38184eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b1f726a - Browse repository at this point
Copy the full SHA b1f726aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 5c7d5a2 - Browse repository at this point
Copy the full SHA 5c7d5a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a564bcd - Browse repository at this point
Copy the full SHA a564bcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49de90d - Browse repository at this point
Copy the full SHA 49de90dView commit details -
- Fix hangs on macOS zlib-ng#1031 - Fix minideflate write buffers being overwritten zlib-ng#1060 - Fix deflateBound and compressBound returning too small size estimates zlib-ng#1049 zlib-ng#1071 - Fix incorrect function declaration warning zlib-ng#1080 - Fix build problems when building outside of source dir zlib-ng#1049 - Fix build problems on arm2-7 zlib-ng#1030 - Fixed some compile warnings zlib-ng#1020 zlib-ng#1036 zlib-ng#1037 zlib-ng#1048 - Improved posix memalign support zlib-ng#888 - Improvements to testing zlib-ng#637 zlib-ng#1026 zlib-ng#1032 zlib-ng#1035 zlib-ng#1049 zlib-ng#1051 zlib-ng#1056 zlib-ng#1063 zlib-ng#1067 zlib-ng#1079 - Improvements for integration into other projects zlib-ng#1022 zlib-ng#1042 - Code style fixes zlib-ng#637 zlib-ng#1040 zlib-ng#1050 zlib-ng#1075
Configuration menu - View commit details
-
Copy full SHA for b56a2fd - Browse repository at this point
Copy the full SHA b56a2fdView commit details
Commits on Dec 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d14adcc - Browse repository at this point
Copy the full SHA d14adccView commit details
Commits on Dec 27, 2022
-
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.
Configuration menu - View commit details
-
Copy full SHA for 237a559 - Browse repository at this point
Copy the full SHA 237a559View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fb8b4be - Browse repository at this point
Copy the full SHA fb8b4beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ed116f - Browse repository at this point
Copy the full SHA 7ed116fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c60eb3a - Browse repository at this point
Copy the full SHA c60eb3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f72b49e - Browse repository at this point
Copy the full SHA f72b49eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 1d54221 - Browse repository at this point
Copy the full SHA 1d54221View commit details -
Configuration menu - View commit details
-
Copy full SHA for 221bfd1 - Browse repository at this point
Copy the full SHA 221bfd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f97d13 - Browse repository at this point
Copy the full SHA 9f97d13View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 1e980c5 - Browse repository at this point
Copy the full SHA 1e980c5View commit details -
Added unit test against CVE-2018-25032 with default strategy.
Co-authored-by: Eric Biggers <ebiggers@kernel.org>
Configuration menu - View commit details
-
Copy full SHA for 746fc54 - Browse repository at this point
Copy the full SHA 746fc54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a687a2 - Browse repository at this point
Copy the full SHA 5a687a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 421634b - Browse repository at this point
Copy the full SHA 421634bView commit details -
Remove unistd.h include from gzguts.h which is already included from …
…zconf.h via zlib.h.
Configuration menu - View commit details
-
Copy full SHA for 46d8997 - Browse repository at this point
Copy the full SHA 46d8997View commit details -
abicheck.sh: zlib-ng is a bash script, not a sh script, don't hardcod…
…e shell when running configure
Configuration menu - View commit details
-
Copy full SHA for 832873f - Browse repository at this point
Copy the full SHA 832873fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1d0ab7e - Browse repository at this point
Copy the full SHA 1d0ab7eView commit details -
Add test for issue zlib-ng#1235.
* Test both compressBound() and deflateBound() as those share same code fragment.
Configuration menu - View commit details
-
Copy full SHA for 666b32e - Browse repository at this point
Copy the full SHA 666b32eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d5d2a4 - Browse repository at this point
Copy the full SHA 0d5d2a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f01f889 - Browse repository at this point
Copy the full SHA f01f889View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa927be - Browse repository at this point
Copy the full SHA aa927beView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbb0307 - Browse repository at this point
Copy the full SHA cbb0307View commit details -
Configuration menu - View commit details
-
Copy full SHA for f99cef6 - Browse repository at this point
Copy the full SHA f99cef6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53cc7fb - Browse repository at this point
Copy the full SHA 53cc7fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f2939e - Browse repository at this point
Copy the full SHA 6f2939eView commit details -
Added support for -k keep argument to minideflate. By default minidef…
…late will now delete the input file.
Configuration menu - View commit details
-
Copy full SHA for e67c9ff - Browse repository at this point
Copy the full SHA e67c9ffView commit details -
Append extension to output file path based on window_bits when compre…
…ssing and remove extension from output file path when decompressing.
Configuration menu - View commit details
-
Copy full SHA for 69172e3 - Browse repository at this point
Copy the full SHA 69172e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe9af76 - Browse repository at this point
Copy the full SHA fe9af76View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0d0791 - Browse repository at this point
Copy the full SHA f0d0791View commit details -
Configuration menu - View commit details
-
Copy full SHA for 882d934 - Browse repository at this point
Copy the full SHA 882d934View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9523572 - Browse repository at this point
Copy the full SHA 9523572View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdc7a43 - Browse repository at this point
Copy the full SHA bdc7a43View commit details -
The names CMAKE_INTERPROCEDURAL_OPTIMIZATION_* must be uppercase.
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Configuration menu - View commit details
-
Copy full SHA for c102886 - Browse repository at this point
Copy the full SHA c102886View commit details -
Make directory for output files.
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Configuration menu - View commit details
-
Copy full SHA for df6957c - Browse repository at this point
Copy the full SHA df6957cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24d6fdb - Browse repository at this point
Copy the full SHA 24d6fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ef070a - Browse repository at this point
Copy the full SHA 4ef070aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f11f537 - Browse repository at this point
Copy the full SHA f11f537View commit details -
CMakeLists.txt: fix version in zlib.pc when building statically
When building statically (i.e. with BUILD_SHARED_LIBS=OFF), ZLIB_FULL_VERSION is not set resulting in an empty version in zlib.pc and the following build failure with transmission: checking for ZLIB... configure: error: Package requirements (zlib >= 1.2.3) were not met: Package dependency requirement 'zlib >= 1.2.3' could not be satisfied. Package 'zlib' has version '', required version is '>= 1.2.3' Fixes: - http://autobuild.buildroot.org/results/b3b882482f517726e5c780ba4c37818bd379df82 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ecc094a - Browse repository at this point
Copy the full SHA ecc094aView commit details -
Add public compile definition for zlib-ng API so that other projects …
…that use CMake and link against the zlib project can easily determine whether or not to include "zlib-ng.h" or "zlib.h".
Configuration menu - View commit details
-
Copy full SHA for 287b763 - Browse repository at this point
Copy the full SHA 287b763View commit details -
Handle invalid windowBits in init functions
Negative windowBits arguments are eventually turned positive in deflateInit2_ and inflateInit2_ (more precisely in inflateReset2). Such values are used to indicate that raw deflate/inflate should be performed. If a user supplies INT32_MIN for windowBits, the code will perform -INT32_MIN which does not fit into int32_t. In fact, this is undefined behavior in C and should be avoided. Clearly this is a user error, but given the careful validation of input arguments a few lines later in deflateInit2_ I think this might be of interest. Proof of Concept: - Compile zlib-ng with gcc -ftrapv or -fsanitize=undefined - Compile and run this program: ``` #include <limits.h> #include <stdio.h> #include <zlib-ng.h> int main(void) { zng_stream de_stream = { 0 }, in_stream = { 0 }; int result; result = zng_deflateInit2(&de_stream, 0, Z_DEFLATED, INT32_MIN, MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY); printf("zng_deflateInit2: %d\n", result); result = zng_inflateInit2(&in_stream, INT32_MIN); printf("zng_inflateInit2: %d\n", result); return 0; } ```
Configuration menu - View commit details
-
Copy full SHA for 72c430b - Browse repository at this point
Copy the full SHA 72c430bView commit details -
If gzip support has been disabled during compilation then also consider gzip relevant states as invalid in deflateStateCheck. Also the gzip state definitions can be removed. This change leads to failure in test/example, and I am not sure what the GZIP conditional is trying to achieve. All gzip related functions are still defined in zlib.h Alternative approach is to remove the GZIP define.
Configuration menu - View commit details
-
Copy full SHA for f8c8bb7 - Browse repository at this point
Copy the full SHA f8c8bb7View commit details -
In compatibility mode, always define z_crc_t as uint32_t for backward…
…s compatibility.
Configuration menu - View commit details
-
Copy full SHA for 19059d2 - Browse repository at this point
Copy the full SHA 19059d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a61fbf9 - Browse repository at this point
Copy the full SHA a61fbf9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bcda52 - Browse repository at this point
Copy the full SHA 3bcda52View commit details -
Don't use unaligned access for memcpy instructions due to GCC 11 assu…
…ming it is aligned in certain instances. Backport note: Removed a lot of the original commit due to merge conflicts
Configuration menu - View commit details
-
Copy full SHA for 8f4e8f2 - Browse repository at this point
Copy the full SHA 8f4e8f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad3bdf - Browse repository at this point
Copy the full SHA 6ad3bdfView commit details -
Fixed functions declared without a prototype warning in tools.
tools/maketrees.c:101:29: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static void gen_trees_header() tools/makecrct.c:65:27: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] static void make_crc_table()
Configuration menu - View commit details
-
Copy full SHA for 4a2fb17 - Browse repository at this point
Copy the full SHA 4a2fb17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6890dfb - Browse repository at this point
Copy the full SHA 6890dfbView commit details -
cmake: respect custom
RC
flags and deleteGCC_WINDRES
Before this patch, `zlib.rc` was compiled using a manual command [1] when using the MinGW (and MSYS/Cygwin) toolchains. This method ignores `CMAKE_RC_FLAGS` and offers no other way to pass a custom flag, breaking the build in cases where a custom `windres` option is required. E.g. `--target=` or `-I` on some platforms and configuration, in particular with `llvm-windres`. This patch deletes the special case for these toolchains and lets CMake compile the `.rc` file the default way used for all Windows targets. I'm not entirely sure why this special case was added back in 2011. The need to pass `-DGCC_WINDRES` is my suspect. We can resolve this much simpler by adding this line for the targets that require it: set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} -DGCC_WINDRES") But, the `.rc` line protected by `GCC_WINDRES`, these days work just fine with `windres`. Moreover, that protected line are oboslete flags from the 16-bit era, which for a long time have no effect, as documented here: <https://docs.microsoft.com/windows/win32/menurc/common-resource-attributes> So, this patch deletes `GCC_WINDRES` from the project entirely. [1] dc5a43e
Configuration menu - View commit details
-
Copy full SHA for 68a9d16 - Browse repository at this point
Copy the full SHA 68a9d16View commit details -
If the extra field was larger than the space the user provided with
inflateGetHeader(), and if multiple calls of inflate() delivered the extra header data, then there could be a buffer overflow of the provided space. This commit assures that provided space is not exceeded. See zlib-ng#1323.
Configuration menu - View commit details
-
Copy full SHA for d277234 - Browse repository at this point
Copy the full SHA d277234View commit details -
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Configuration menu - View commit details
-
Copy full SHA for 5e037c8 - Browse repository at this point
Copy the full SHA 5e037c8View commit details -
Actually run
configure
CI on macOS with GCC`gcc` is an alias for Apple Clang on macOS. See for example https://github.com/zlib-ng/zlib-ng/runs/7963904948?check_suite_focus=true ``` gcc -O2 -std=c11 -Wall -fPIC -DNDEBUG -DHAVE_POSIX_MEMALIGN -DWITH_GZFILEOP -fno-semantic-interposition -DHAVE_VISIBILITY_HIDDEN -DHAVE_VISIBILITY_INTERNAL -DHAVE_BUILTIN_CTZ -DHAVE_BUILTIN_CTZLL -DX86_FEATURES -DX86_AVX2 -DX86_AVX2_ADLER32 -DX86_AVX_CHUNKSET -DX86_AVX512 -DX86_AVX512_ADLER32 -DX86_MASK_INTRIN -DX86_AVX512VNNI -DX86_AVX512VNNI_ADLER32 -DX86_SSE41 -DX86_SSE42_CRC_HASH -DX86_SSE42_ADLER32 -DX86_SSE42_CRC_INTRIN -DX86_SSE2 -DX86_SSE2_CHUNKSET -DX86_SSSE3 -DX86_SSSE3_ADLER32 -DX86_PCLMULQDQ_CRC -DPIC -I/Users/runner/work/zlib-ng/zlib-ng -c -o adler32.lo /Users/runner/work/zlib-ng/zlib-ng/adler32.c clang: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument] ``` In order to use the real GCC you have to call `gcc-9`, `gcc-10`, or `gcc-11`: https://github.com/actions/runner-images/blob/06dd4c14e4aa8c14febdd8d6cf123b8d770b4e4a/images/macos/macos-11-Readme.md#language-and-runtime.
Configuration menu - View commit details
-
Copy full SHA for 12dd5d5 - Browse repository at this point
Copy the full SHA 12dd5d5View commit details -
[Compat] Don't use uint32_t for z_crc_t
* We don't include stdint.h as it must be included before stdarg.h and other headers might include stdarg.h before us See zlib-ng#1342
Configuration menu - View commit details
-
Copy full SHA for 3d209cc - Browse repository at this point
Copy the full SHA 3d209ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9a2a91 - Browse repository at this point
Copy the full SHA c9a2a91View commit details -
Configuration menu - View commit details
-
Copy full SHA for dec455c - Browse repository at this point
Copy the full SHA dec455cView commit details -
Make visibility tests run the same way as the other tests.
Fix indentation.
Configuration menu - View commit details
-
Copy full SHA for 66011c9 - Browse repository at this point
Copy the full SHA 66011c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff1e2cb - Browse repository at this point
Copy the full SHA ff1e2cbView commit details -
Use short decompress option name for gzip compatibility. zlib-ng#1347
Long option names in BusyBoxy is an optional feature, so use short option names by default.
Configuration menu - View commit details
-
Copy full SHA for 5157cab - Browse repository at this point
Copy the full SHA 5157cabView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd823a7 - Browse repository at this point
Copy the full SHA cd823a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e61ee2 - Browse repository at this point
Copy the full SHA 7e61ee2View commit details -
[MinGW] Disable GCC warning about using MS format specifiers in ISO C…
… conformant code
Configuration menu - View commit details
-
Copy full SHA for b0b7d78 - Browse repository at this point
Copy the full SHA b0b7d78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 910a288 - Browse repository at this point
Copy the full SHA 910a288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a1c8ef - Browse repository at this point
Copy the full SHA 7a1c8efView commit details
Commits on Jan 13, 2023
-
IBM zSystems DFLTCC: Fix updating strm.adler
inflate() does not update strm.adler with DFLTCC. deflate() updates strm.adler even for raw streams. Fix by adding wrap checks.
Configuration menu - View commit details
-
Copy full SHA for 1d17bfa - Browse repository at this point
Copy the full SHA 1d17bfaView commit details
Commits on Feb 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 02cf11e - Browse repository at this point
Copy the full SHA 02cf11eView commit details -
Remove gz_intmax implementation, since INT_MAX is always available in…
… modern C implementations.
Configuration menu - View commit details
-
Copy full SHA for cfbad07 - Browse repository at this point
Copy the full SHA cfbad07View commit details
Commits on Feb 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 31a2a1c - Browse repository at this point
Copy the full SHA 31a2a1cView commit details
Commits on Feb 10, 2023
-
Backport latest CI workflows from 'develop'.
Removed tests for features not supported in 2.0.x: - cxx related settings, as stable does not use gtest/gbench. - Emscripten - Add_subdirectory - Symbol prefix - oss-fuzz, their buildfile is incompatible with this branch
Configuration menu - View commit details
-
Copy full SHA for b80403b - Browse repository at this point
Copy the full SHA b80403bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba7dc4f - Browse repository at this point
Copy the full SHA ba7dc4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a73214 - Browse repository at this point
Copy the full SHA 0a73214View commit details -
Adjust thread counts for compiles and tests to avoid under-utilizatio…
…n and congestion. The free Github Actions VMs have 2 cores, the dedicated s390x VM has 4 cores.
Configuration menu - View commit details
-
Copy full SHA for f0417fb - Browse repository at this point
Copy the full SHA f0417fbView commit details -
Use _msan_unposion to unposion end of window for when it needs to rea…
…d the past < chunksize bytes in the window. See zlib-ng#1245. Co-authored-by: Adam Stylinski <kungfujesus06@gmail.com> Backported from commit c882034.
Configuration menu - View commit details
-
Copy full SHA for 23df8e7 - Browse repository at this point
Copy the full SHA 23df8e7View commit details -
* Add __msan_unpoison() calls to DFLTCC inline assembly. * Make parameter block sizes symbolic constants. * Move dfltcc() definition after struct dfltcc_param_v0 definition. Backported from commit 1f5ddcc.
Configuration menu - View commit details
-
Copy full SHA for 3701d87 - Browse repository at this point
Copy the full SHA 3701d87View commit details -
Fix crash when gzsetparams() attempted for transparent write.
gzsetparams() now returns a Z_STREAM_ERROR in this case.
Configuration menu - View commit details
-
Copy full SHA for 9426e01 - Browse repository at this point
Copy the full SHA 9426e01View commit details -
Fix bug in deflateBound() for level 0 and memLevel 9.
memLevel 9 would cause deflateBound() to assume the use of fixed blocks, even if the compression level was 0, which forces stored blocks. That could result in a bound less than the size of the compressed data. Now level 0 always uses the stored blocks bound.
Configuration menu - View commit details
-
Copy full SHA for 5846fb4 - Browse repository at this point
Copy the full SHA 5846fb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1867d7f - Browse repository at this point
Copy the full SHA 1867d7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f7e94b8 - Browse repository at this point
Copy the full SHA f7e94b8View commit details -
Fix bug in block type selection when Z_FIXED used.
A fixed block could be chosen when a stored block was smaller. Now the smaller of the two is always chosen.
Configuration menu - View commit details
-
Copy full SHA for fe9e685 - Browse repository at this point
Copy the full SHA fe9e685View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7f863c - Browse repository at this point
Copy the full SHA f7f863cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f601a29 - Browse repository at this point
Copy the full SHA f601a29View commit details -
Configuration menu - View commit details
-
Copy full SHA for d35a28b - Browse repository at this point
Copy the full SHA d35a28bView commit details
Commits on Feb 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a073e95 - Browse repository at this point
Copy the full SHA a073e95View commit details
Commits on Mar 7, 2023
-
Changes since 2.0.6: - Fix CVE-2022-37434 zlib-ng#1328 - Fix chunkmemset zlib-ng#1196 - Fix deflateBound too small zlib-ng#1236 - Fix Z_SOLO zlib-ng#1263 - Fix ACLE variant of crc32 zlib-ng#1274 - Fix inflateBack zlib-ng#1311 - Fix deflate_quick windowsize zlib-ng#1431 - Fix DFLTCC bugs related to adler32 zlib-ng#1349 and zlib-ng#1390 - Fix warnings zlib-ng#1194 zlib-ng#1312 zlib-ng#1362 - MacOS build fix zlib-ng#1198 - Add invalid windowBits handling zlib-ng#1293 - Support for Force TZCNT zlib-ng#1186 - Support for aligned_alloc() zlib-ng#1360 - Minideflate improvements zlib-ng#1175 zlib-ng#1238 - Dont use unaligned access for memcpy zlib-ng#1309 - Build system zlib-ng#1209 zlib-ng#1233 zlib-ng#1267 zlib-ng#1273 zlib-ng#1278 zlib-ng#1292 zlib-ng#1316 zlib-ng#1318 zlib-ng#1365 - Test improvements zlib-ng#1208 zlib-ng#1227 zlib-ng#1241 zlib-ng#1353 - Cleanup zlib-ng#1266 - Documentation zlib-ng#1205 zlib-ng#1359 - Misc improvements zlib-ng#1294 zlib-ng#1297 zlib-ng#1306 zlib-ng#1344 zlib-ng#1348 - Backported zlib fixes - Backported CI workflows from Develop branch
Configuration menu - View commit details
-
Copy full SHA for 98ea610 - Browse repository at this point
Copy the full SHA 98ea610View commit details -
Configuration menu - View commit details
-
Copy full SHA for f636a09 - Browse repository at this point
Copy the full SHA f636a09View commit details