Skip to content
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

Update from 2.0.2 to 2.1.6 #16

Closed
wants to merge 799 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
799 commits
Select commit Hold shift + click to select a range
41a5e00
Fix MSVC warnings in benchmark code
ccawley2011 Sep 30, 2022
147dd9f
Match __builtin_ctzl/__builtin_ctzll signatures
pps83 Jan 17, 2023
750a7a0
Fix ABI checking...
mtl1979 Dec 13, 2022
9119de0
Fix typo found by codespell
DimitriPapadopoulos Feb 2, 2023
cba1a78
Add temporary cmake build dirs/files to gitignore
pps83 Jan 22, 2023
78d5883
Add assert for tzcnt if building with X86_NOCHECK_TZCNT
pps83 Jan 17, 2023
b892331
Fix MinGW build
mtl1979 Jan 20, 2023
b48750d
Fix configure to use correct linker definition file when --without-gz…
mtl1979 Jan 21, 2023
5ff2b9b
Add support for symbol prefix to linker definition files.
mtl1979 Jan 21, 2023
1cb12dc
Fix building resource files during out-of-tree build with configure
mtl1979 Jan 21, 2023
bfbbea7
Fix missing gzip functions when linking example and minigzip binaries.
mtl1979 Jan 21, 2023
a02ba01
Allow disabling visibility attribute with configure
mtl1979 Jan 21, 2023
24d7d0d
Have build test report library version if it doesn't match zlib.h.
May 26, 2022
6581fb0
Have infback() deliver all of the available output up to any error.
Jul 24, 2022
5393c21
Fix bug in block type selection when Z_FIXED used.
Oct 2, 2022
0e49aa3
Add WIN32_LEAN_AND_MEAN for windows.h include.
Oct 3, 2022
c671129
Remove -pedantic from configure -w compile options.
Oct 6, 2022
33e671b
Remove redundant check in gz_look().
Oct 6, 2022
4af454b
Fix bug in deflateBound() for level 0 and memLevel 9.
madler Dec 15, 2022
e713f2f
Fix crash when gzsetparams() attempted for transparent write.
madler Dec 27, 2022
d5db5aa
Sync with zlib 1.2.13 and declare compatibility.
mtl1979 Dec 14, 2022
fecb03a
Avoid `functable` redefinition in functable.c
pps83 Jan 13, 2023
df60007
Move initialization of functable to `init_functable` function
pps83 Jan 13, 2023
709a710
Use local functable variable instead of standalone function pointers
pps83 Jan 22, 2023
d144fc0
Rename local `functable` variable to `ft`
pps83 Jan 22, 2023
941ce54
Pin Google Benchmark to v1.7.1 to fix the upstream issue https://gith…
phprus Feb 3, 2023
aa1109b
Use arch-specific versions of inflate_fast.
nmoinvaz Aug 29, 2022
c72cd30
Remove unused chunk memory functions from functable.
nmoinvaz Aug 28, 2022
1733143
Replace __builtin_ctz[ll] fallback functions with branchless implemen…
Dead2 Feb 4, 2023
17d9807
Remove FORCE_TZCNT/X86_NOCHECK_TZCNT
Dead2 Feb 4, 2023
a395e80
Remove x86 cpu feature detection for tzcnt
Dead2 Feb 5, 2023
3359879
Update to actions/upload-artifact@v3
Dead2 Feb 7, 2023
39fdb09
Update codecov uploader
Dead2 Feb 7, 2023
40d9769
Update release uploader
Dead2 Feb 7, 2023
9b84e1b
Update ilammy/msvc-dev-cmd
Dead2 Feb 7, 2023
b49c84b
Update mymindstorm/setup-emsdk
Dead2 Feb 7, 2023
f96a7dc
Ubuntu 18.04 is being removed shortly, update workflows to use 20.04.
Dead2 Feb 7, 2023
a21d2bc
Add official Ubuntu mirror list as fallback for Actions caching proxy
Dead2 Feb 6, 2023
f43f4dd
Fix ambiguous shift warning in inflateCopy.
mtl1979 Feb 7, 2023
3e75a5c
Correct inflate_fast function signature
pps83 Feb 6, 2023
d8808f5
Added CI tests for checking undefined symbols in version scripts.
nmoinvaz Feb 8, 2023
38675be
Disable zlib-ng internal tests when BUILD_SHARED_LIBS=ON.
nmoinvaz Feb 8, 2023
10238c8
Simplify linking gtest_zlib with zlib target based on BUILD_SHARED_LIBS.
nmoinvaz Feb 8, 2023
ee978be
Fixed link fuzzers against zlib when BUILD_SHARED_LIBS=ON.
nmoinvaz Feb 8, 2023
596f6c2
Use memcpy instead of memcmp for unaligned memory comparisons.
nmoinvaz Feb 5, 2023
6c09fa2
Add missing Z_INTERNAL to some functions that should not be exported.
Dead2 Feb 5, 2023
cf5bb01
Fix prefixing for internal functions calloc/cfree
Dead2 Feb 7, 2023
0ba881e
Fix wrong names and invalid entries in zlib.map and zlib-ng.map
Dead2 Feb 7, 2023
ccfcb35
Fix various incorrect name mangling
Dead2 Feb 7, 2023
d07a427
Adjust thread counts for compiles and tests to avoid under-utilizatio…
Dead2 Feb 9, 2023
4dedec7
Update zlib-ng ABI files.
mtl1979 Feb 6, 2023
f2cfc4e
Fix warnings in benchmarks
iii-i Feb 10, 2023
423ed2f
[minigzip] Close gzFile before exiting on error.
mtl1979 Feb 10, 2023
d191cee
Narrow down the amount of packages installed for Wine.
Dead2 Feb 9, 2023
c8a6b3e
Simplify functable.c
Dead2 Feb 6, 2023
5d9ddac
Combine some of the checks that were not identical.
Dead2 Feb 6, 2023
6f714ef
Add missing compare256_neon activation to functable
Dead2 Feb 6, 2023
7e1d807
Reduce the amount of different defines required for arch-specific opt…
Dead2 Feb 6, 2023
2fa631e
Fix CMake not enabling POWER9_FEATURES
Dead2 Feb 7, 2023
9db6a98
Sort functable alphabetically
Dead2 Feb 8, 2023
fa9bfed
Use named defines instead of hard coded numbers.
nmoinvaz Feb 12, 2023
135641b
Fix warning: comparison of integer expressions of different signednes…
phprus Feb 17, 2023
c970422
Fix definition of z_size_t to match documentation of legacy zlib API.
mtl1979 Dec 7, 2022
3cebd47
Inflate: refill unconditionally
dougallj Aug 22, 2022
6a74e92
Inflate: add fast-path for literals
dougallj Aug 22, 2022
fdb87d6
Split crc32 pclmulqdq and vpclmulqdq implementations
phprus Feb 17, 2023
330f2ff
Fix formatting
phprus Feb 18, 2023
c438880
Fix CodeQL warnings: This pointer might have type (size 4), but this…
phprus Feb 18, 2023
3848b94
Add missing test for crc32_vpclmulqdq
phprus Feb 18, 2023
61524f5
Fix TEST_CRC32 macro
phprus Feb 18, 2023
c5b4aa3
Replace __WIN__ with X86_FEATURES
phprus Feb 23, 2023
20d8fa8
Replace global CPU feature flag variables with local variable in init…
phprus Feb 18, 2023
c255e58
Remove useless assignments
phprus Feb 18, 2023
b8c2114
IBM zSystems: Use HWCAP_S390_VXRS
iii-i Mar 6, 2023
1521bee
Create FUNDING.yml
Dead2 Mar 18, 2023
a4e1f1c
Fix regex for visibility attribute tests
lawadr Mar 17, 2023
39008be
Add member to cpu_features struct if empty
lawadr Mar 20, 2023
bfde4b9
Remove unused PREFETCH macros
ccawley2011 Mar 24, 2023
6670678
Add fallback function for '_mm512_set_epi8' intrinsic
dev0x13 Mar 12, 2023
a4d9d69
Enable using AVX512 intrinsics with GCC <9
dev0x13 Mar 12, 2023
fcba189
Shared libraries on cygwin can be named with their version number
fd00 Mar 9, 2023
b09215f
Enable use of _mm_shuffle_epi8 on machines without SSE4.1
ccawley2011 Mar 28, 2023
c4c1c7f
Remove architecture dependent endian header locations
lawadr Mar 30, 2023
7a60d93
Check for attribute aligned compiler support
lawadr Mar 30, 2023
b1aafe5
Clean up SSE4.2 detection
ccawley2011 Mar 28, 2023
fb4f956
Switch to the standard CMake module GNUInstallDirs
phprus Mar 17, 2023
f8df019
Fix .pc file paths
phprus Mar 18, 2023
498ed79
Reverted description with Deprecation notice
phprus Apr 13, 2023
58c7621
Fix CMake check for posix_memalign and aligned_alloc
lawadr Apr 4, 2023
e24334f
Fix compilation on OpenBSD
realchonk Apr 9, 2023
1ae7b05
Rename chunkset_avx to chunkset_avx2
ccawley2011 Apr 15, 2023
fc49c98
IBM zSystems: Fix calling deflateBound() before deflateInit()
iii-i Apr 19, 2023
38aa575
Ensure that unaligned compare256 variants are only used on little end…
ccawley2011 Apr 15, 2023
3f06cec
Use ZLIB_INCLUDE_DIRS from FindZLIB instead of ZLIB_INCLUDE_DIR.
nmoinvaz Apr 24, 2023
045a278
Assure that inflatePrime() can't shift a 32-bit integer by 32 bits.
madler Feb 17, 2023
4b4377a
Fix use after free in test_deflate_bound.
mtl1979 Apr 25, 2023
2d5d0a2
Fix potential overflow before widening in makecrtc.
mtl1979 Apr 26, 2023
1c2698f
2.1.0 Beta1 release
Dead2 Apr 25, 2023
5ff0180
Remove CMAKE_MACOSX_RPATH
haampie May 2, 2023
bf985ad
Include GNUInstallDirs earlier
haampie May 2, 2023
f346148
Fix out-of-bound access of zng_length_codes.
mtl1979 Apr 25, 2023
9087c75
Use ternary logic to xor 3 operands for "fold16"
KungFuJesus Apr 29, 2023
c3cdf43
Add supporting RISC-V cross compilation workflows
Apr 27, 2023
fadf7c1
Fix abicheck no longer ignoring version string after previous variabl…
Dead2 May 12, 2023
f2da905
Fix AVX512-VNNI compile flags.
Dead2 May 13, 2023
3d713fc
Update README.md
Dead2 May 12, 2023
c631a47
Fix error in previous commit breaking AVX512.
Dead2 May 13, 2023
362945b
Fix the same AVX512 error in CMake.
Dead2 May 13, 2023
cc23c00
Fix MinGW CI.
mtl1979 May 13, 2023
d7ba819
Make an AVX512 status message more clear
Dead2 May 15, 2023
80ba8b6
Added support for unaligned/intrinsic to deflate_rle.
nmoinvaz Feb 5, 2023
7ffe135
Added unit tests for compare256_rle family of functions.
nmoinvaz Mar 18, 2022
8162f6b
Added benchmark for compare256_rle family of functions.
nmoinvaz Feb 5, 2023
c211d11
Add tests of file_compress/file_uncompress in minigzip and minideflate.
Dead2 May 12, 2023
1382b88
Fix z_size_t definition:
Dead2 May 14, 2023
144b1d4
Remove refrences to z_size_t from zlib-ng.h, since we use size_t dire…
Dead2 May 15, 2023
41c4879
Move defining z_size_t to below including stddef.h and unistd.h in zc…
mtl1979 May 16, 2023
ee68fc3
2.1.1-Beta2
Dead2 May 16, 2023
eac8a26
Add distclean target to arch/generic/Makefile.in
mtl1979 May 31, 2023
154441a
Make sure file exists before adding it as dependency in configure.
mtl1979 May 31, 2023
bc6e56b
Add MIPS to GitHub workflows.
mtl1979 May 31, 2023
ad29d3b
distclean target should depend on clean target in arch directories.
mtl1979 Jun 1, 2023
5fe0c3a
Add MIPS64 to GitHub workflows.
mtl1979 May 31, 2023
1f51e8c
distclean target in test directory should depend on clean target.
mtl1979 Jun 1, 2023
8b9599e
No indentation allowed for error function in test/Makefile.in
mtl1979 Jun 1, 2023
a3874ef
Add ABI files for MIPS/MIPS64.
mtl1979 Jun 1, 2023
963898f
Update Package Check CI workflow.
mtl1979 Jun 2, 2023
69bd70a
Remove COMMAND_ECHO statements only available in CMake 3.15. #1511
nmoinvaz Jun 4, 2023
f75c685
2.1.2 Release
Dead2 Jun 7, 2023
571c067
Add support for cross-compiling for Power9.
mtl1979 Jun 9, 2023
e5ab589
Fix for PowerPC64 little-endian.
mtl1979 Jun 9, 2023
39136c2
Try to find system copy of googletest before trying to download it.
mtl1979 Jun 11, 2023
de1b640
Optimize compare256 with rvv
jysh1214 May 16, 2023
afd2a0c
Minor code cleanup in deflate.c.
nmoinvaz May 21, 2023
7cda3bf
Use endianess-specific built-in function for gcc < 12 on PowerPC64
mtl1979 Jun 11, 2023
8f04543
Update detect-arch.cmake
andreacampanella Jun 16, 2023
2f4ebe2
Optimize slide_hash using RVV
jysh1214 Jun 19, 2023
e5a4a8a
Handle complete overlap in chunkcopy_safe
Vogtinator Jun 27, 2023
1b5908b
[ARM] Check that we have features.h before detecting float-abi
mtl1979 Jun 27, 2023
eace956
Allow re-enabling @rpath on OS/X when using relative install prefix
mtl1979 Jun 23, 2023
cf89cf3
2.1.3 Release
Dead2 Jun 28, 2023
65fedde
Fix distclean target in Makefile.in
mtl1979 Jul 1, 2023
e23130b
Define an empty __msan_unpoison() without Z_MEMORY_SANITIZER
iii-i Jul 6, 2023
70da27b
Initial loongarch port
xiangzhai Jul 13, 2023
8976caa
Handle ARM64EC as ARM64.
GerbilSoft Jul 15, 2023
6eed741
Optimize adler32 using rvv
jysh1214 Jul 1, 2023
aaac4c1
Do mod BASE once each block of NMAX size
jysh1214 Jul 11, 2023
a339d85
Move the AVX compatibility functions into a separate file
ccawley2011 Jul 18, 2023
887c487
Configure: Make it possible to disable deflate_quick and deflate_medium
Dead2 Jul 21, 2023
828dde7
Expand support for symbol versioning to also allow multiple functions
Dead2 Dec 29, 2022
f0937b8
Fix typo found by codespell
DimitriPapadopoulos Jul 29, 2023
2167377
Clean up SSE4.2 support, and no longer use asm fallback or gcc builtin.
Dead2 Jul 21, 2023
4894be9
Move check_c_source_compile_or_run cmake macro to the only place it i…
Dead2 Jul 20, 2023
a7e9f0b
Relative paths CMAKE_INSTALL_*, absolute paths CMAKE_INSTALL_FULL_*; …
haampie Jul 24, 2023
e13bc3a
relocatable pc files by default, while allowing discouraged absolute …
haampie Jul 24, 2023
26a917d
Remove relative configure --lib
haampie Jul 24, 2023
e9a48a2
Simplify deflate stream/state check.
nmoinvaz May 29, 2023
04e8561
Fix typos found by codespell
DimitriPapadopoulos Aug 6, 2023
3605d98
Avoid unnecessary line continuations
DimitriPapadopoulos Aug 6, 2023
e841518
Discard trailing whitespaces
DimitriPapadopoulos Aug 6, 2023
73bbb54
Discard repeated words
DimitriPapadopoulos Aug 6, 2023
c7d98c2
Remove inert check for HAVE_ACLE_FLAG in check_acle_compiler_flag.
nmoinvaz Aug 9, 2023
ca75732
Clean up extra whitespaces at line endings in check_rvv_intrinsics.
nmoinvaz Aug 9, 2023
0cb2b37
Remove partially broken march=native support from Configure.
Dead2 Aug 12, 2023
aec18b6
Simplify handling of march=native in CMakeLits.txt
Dead2 Jul 20, 2023
3553873
Add CPack capability
Dead2 Aug 14, 2023
44cc37f
Remove duplicate "the" in zlib.h.
pmqs Aug 21, 2023
3bef206
Correct comment in zlib.h on os setting in gzip header.
madler Aug 21, 2023
10f51f6
Document in zlib.h the initialization of stream fields by the Init
madler Aug 21, 2023
faf6cf7
Avoid compiler complaints if _TIME_BITS defined when building zlib.
madler Aug 21, 2023
135cdad
Fix bug when gzungetc() is used immediately after gzopen().
madler Aug 21, 2023
fe44e1f
Fix bug when using gzflush() with a very small buffer.
madler Aug 21, 2023
830dc14
Clarify requirement in zlib.h to avoid multiple flush markers.
madler Aug 21, 2023
7030ac7
Updated zlib compat version to 1.3.
nmoinvaz Aug 23, 2023
e14004f
use dash not bash for portability
haampie Aug 21, 2023
74ac49d
also fix SC2288
haampie Aug 21, 2023
2f15a69
$@ over $*
haampie Aug 21, 2023
b7ac847
configure: ensure instructions are not optimized out before assembler…
haampie Aug 21, 2023
cf02996
another
haampie Aug 21, 2023
120fe06
Do the same for detect-intrinsics.cmake
haampie Aug 21, 2023
ca2d4e5
cast _xgetbv to int to silence conversion warning
haampie Aug 29, 2023
b364370
Allow ACLE to be enabled on all ARM architecture versions
ccawley2011 Aug 29, 2023
f0ffa3d
Clean up detection on ARM variants and allow ACLE on all ARM archs.
nmoinvaz Sep 8, 2023
881aa3e
Merge both without_optimizations sections in configure for arm.
nmoinvaz Aug 29, 2023
7ecbaa2
Use consistent NEON_AVAILABLE variable across CMake/configure.
nmoinvaz Aug 29, 2023
4838f0e
Merge 32-bit arm hardware flag detection sections in configure and cmake
nmoinvaz Aug 30, 2023
1c1e728
Use GCC cpuid intrinsics with MinGW
ccawley2011 May 19, 2023
6edb09a
Always include strings.h when strcasecmp is used
ccawley2011 May 19, 2023
16fe1f8
Add ARMv6 version of slide_hash
ccawley2011 Jul 12, 2023
401aeb8
Fix examining value of GENERATOR_IS_MULTI_CONFIG
DenizThatMenace Sep 15, 2023
3eb7cd2
Match CMAKE_GENERATOR_TOOLSET variable case-insensitive
DenizThatMenace Sep 15, 2023
31497b5
Don't run test intrinsic code with native flag in CMake.
nmoinvaz Sep 17, 2023
57a2ed9
Added instructions for cpack to readme.
nmoinvaz Sep 18, 2023
fe6aaed
General optimized chunkset
jysh1214 Aug 31, 2023
d30c7bf
Use large data type for chunk
jysh1214 Sep 24, 2023
f9228d8
Support llvm-mingw toolchain
ied206 Sep 10, 2023
9a056b8
Add llvm-mingw CMake toolchain files
ied206 Sep 24, 2023
a6139b3
Detect -Wno-pedantic-ms-format support in mingw
ied206 Sep 25, 2023
2ad0cd0
Deprecate ZLIBNG_VER_STATUS, add new variant ZLIBNG_VER_STATUSH
Dead2 Sep 21, 2023
61e181c
Make sure inflateCopy() allocates window with the necessary buffer fo…
Dead2 Sep 25, 2023
6ff8b52
Support RVV hwcap detect at runtime
Xeonacid Oct 8, 2023
6232532
Fix cross-compiling benchmarks and libpng.
mtl1979 Oct 16, 2023
2bce828
Fix building benchmarks on 32-bit PowerPC.
mtl1979 Oct 15, 2023
9fb955b
2.1.4 Release
Dead2 Oct 13, 2023
1822957
Update to actions/checkout@v4, and disable checkout progress logging.
Dead2 Oct 20, 2023
af303ea
Fix status badges
Dead2 Oct 20, 2023
4abe888
[README] configure no longer supports --native
mtl1979 Oct 30, 2023
8770d93
fix cmake header path in install with custom CMAKE_INSTALL_INCLUDEDIR
bebuch Oct 30, 2023
0560a3a
pkgconfig file: propagate WITH_GZFILEOP
autoantwort Nov 3, 2023
6592acc
[configure] Propagate -DWITH_GZFILEOP to pkgconfig.
mtl1979 Nov 7, 2023
0b3bb1d
Added unit test for inflate with Z_FINISH and no window.
nmoinvaz Nov 22, 2023
90b6c36
Fix an issue with regard to finishing out the window
KungFuJesus Nov 17, 2023
2bc6688
2.1.5 Release
Dead2 Nov 26, 2023
1003ae6
Fix clang-cl warnings
yosh-matsuda Oct 23, 2023
f3211ab
Add adler32_fold_copy_rvv implementation.
Nov 6, 2023
7d012ac
Run OSB tests with readonly source directory.
phprus Nov 26, 2023
601ef90
Prevent tests writing into the source directory.
phprus Nov 26, 2023
ecccc9a
Simplify AVX2 adler32_fold_copy by removing templates
KungFuJesus Nov 7, 2023
5af152a
Detemplatize adler32_fold_copy for avx512
KungFuJesus Nov 7, 2023
ec7ffb3
Export cmake target (#1601)
uilianries Dec 15, 2023
2baed9f
Fix pkgcheck mismatch with configure due to cmake target files.
mtl1979 Dec 15, 2023
fb75301
Remove duplicate enable tests option
FantasqueX Dec 14, 2023
6e4b8b1
Update copyright to sync with zlib 1.3
FantasqueX Dec 18, 2023
a612738
Only read version information from zlib.h.in
FantasqueX Dec 17, 2023
dd8dc56
Fix buffer overflow in compare256_rle benchmark
phprus Dec 16, 2023
0c32ad4
Add force initialization functable, because deflate captures function…
phprus Dec 16, 2023
ba4a781
Initialize functable earlier, during inflateInit
phprus Dec 17, 2023
a0356fa
Improve performance of crc32_acle on 32-bit ARM
ccawley2011 Jan 11, 2023
0756ec4
Check if compiler supports -march=native or -mcpu=native.
mtl1979 Dec 21, 2023
0b080ed
Always run CMake tests without LTO.
Dead2 Dec 23, 2023
4ece1a4
Add support for __attribute__((__target__(...))) to overcome limitati…
mtl1979 Dec 22, 2023
b7fc54e
Make sure uqsub16 mnemonic doesn't get optimized away.
mtl1979 Dec 22, 2023
9d486b5
Atomic functable
phprus Dec 21, 2023
dfced56
Remove unused Z_TLS and HAVE_THREAD_LOCAL
phprus Dec 21, 2023
2f1747a
Update to GoogleTest 1.12.1.
Dead2 Dec 23, 2023
8fbff4b
Add status output when running git checkout of GoogleTest
Dead2 Dec 23, 2023
4799b1a
Don't incorrectly disable GoogleTest because of old CMake version.
Dead2 Dec 23, 2023
0993a7e
Don't attempt ARMv6 detection on AARCH64.
Dead2 Dec 21, 2023
758212b
Add linter workflow for whitespace errors. zlib-ng/zlib-ng#1190
nmoinvaz Dec 26, 2023
bed309d
Fix trailing whitespace in minideflate.c.
nmoinvaz Dec 26, 2023
41dd22b
Fixed tab character in ARM ACLE uqsub16 assembly.
nmoinvaz Dec 27, 2023
a61926d
Fix memory corruption introduced in 61e181c8ae93dbf56040336179c995407…
RyeMutt Dec 28, 2023
fd5b20f
Cancel previously running CI jobs for PR or branch.
nmoinvaz Dec 29, 2023
838a5d5
Remove tab-in-indent rule from lint workflow
nmoinvaz Jan 4, 2024
f8327aa
Added CI instance for WITH_NATIVE_INSTRUCTIONS.
nmoinvaz Jan 4, 2024
89c932b
Add FAR macro to zlib-compat headers to improve compatibility.
Dead2 Jan 8, 2024
9053e43
Fix building tests with cmake 3.10 and older.
mtl1979 Jan 9, 2024
7425372
2.1.6 Release
Dead2 Jan 7, 2024
2c4300b
Merge commit '7425372' (zlib-ng release 2.1.6) into HEAD
al13n321 May 27, 2024
bfb184b
Resolve conflicts (reproduce the ((constructor)) change, update CMake…
al13n321 May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
codecov:
max_report_age: off
notify:
wait_for_ci: false
require_ci_to_pass: false
comment:
require_base: false
require_head: false
coverage:
status:
project:
default:
threshold: 0.07
fixes:
- '/home/actions-runner/_work/zlib-ng/zlib-ng::'
- '/home/actions-runner/_work/zlib-ng/zlib-ng/build/::'
ignore:
- usr/include/.*
- /usr/include/.*
- /build/usr/include/.*
- usr/lib/.*
- /usr/lib/.*
- /build/usr/lib/.*
- usr/lib64/.*
- /usr/lib64/.*
- /build/usr/lib64/.*
- _deps/**/*
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
* text=auto
*.abi text eol=lf
*.c text
*.h text
*.sh text eol=lf
crc32_braid_tbl.h hooks-max-size=1000000
Makefile text
configure text eol=lf
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: zlib-ng
69 changes: 55 additions & 14 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,85 @@
name: CI Static Analysis
name: Static Analysis
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
GCC:
static-analysis:
name: GCC
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
show-progress: 'false'

- name: Install packages (Ubuntu)
- name: Add ubuntu mirrors
run: |
sudo apt-get install -y gcc-10
# Github Actions caching proxy is at times unreliable
echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list

- name: Install packages (Ubuntu)
run: sudo apt-get install -y gcc-10

- name: Generate project files
run: |
cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DWITH_FUZZERS=OFF -DWITH_CODE_COVERAGE=OFF -DWITH_MAINTAINER_WARNINGS=OFF
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_FUZZERS=OFF \
-DWITH_CODE_COVERAGE=OFF \
-DWITH_MAINTAINER_WARNINGS=OFF
env:
CC: gcc-10
CFLAGS: "-fanalyzer -Werror -Wanalyzer-double-fclose -Wanalyzer-double-free -Wanalyzer-exposure-through-output-file -Wanalyzer-file-leak -Wanalyzer-free-of-non-heap -Wanalyzer-malloc-leak -Wanalyzer-null-argument -Wanalyzer-null-dereference -Wanalyzer-possible-null-argument -Wanalyzer-possible-null-dereference -Wanalyzer-stale-setjmp-buffer -Wanalyzer-tainted-array-index -Wanalyzer-unsafe-call-within-signal-handler -Wanalyzer-use-after-free -Wanalyzer-use-of-pointer-in-stale-stack-frame"
CFLAGS:
-fanalyzer
-Werror
-Wanalyzer-double-fclose
-Wanalyzer-double-free
-Wanalyzer-exposure-through-output-file
-Wanalyzer-file-leak
-Wanalyzer-free-of-non-heap
-Wanalyzer-malloc-leak
-Wanalyzer-null-argument
-Wanalyzer-null-dereference
-Wanalyzer-possible-null-argument
-Wanalyzer-possible-null-dereference
-Wanalyzer-stale-setjmp-buffer
-Wanalyzer-tainted-array-index
-Wanalyzer-unsafe-call-within-signal-handler
-Wanalyzer-use-after-free
-Wanalyzer-use-of-pointer-in-stale-stack-frame
CI: true

- name: Compile source code
run: |
cmake --build . --config Release > /dev/null
run: cmake --build . -j2 --config Release > /dev/null

Clang:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
show-progress: 'false'

- name: Install packages (Ubuntu)
run: |
sudo apt-get install clang-tools -y
run: sudo apt-get install -y clang-tools

- name: Generate project files
run: |
scan-build --status-bugs cmake . -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DWITH_FUZZERS=OFF -DWITH_CODE_COVERAGE=OFF -DWITH_MAINTAINER_WARNINGS=OFF
scan-build --status-bugs \
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_FUZZERS=OFF \
-DWITH_CODE_COVERAGE=OFF \
-DWITH_MAINTAINER_WARNINGS=OFF
env:
CI: true

- name: Compile source code
run: |
scan-build --status-bugs cmake --build . --config Release > /dev/null
scan-build --status-bugs \
cmake --build . -j2 --config Release > /dev/null
Loading
Loading