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

Add parametrized testing #1448

Open
wants to merge 133 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
c79998f
Must use safe chunk copies due to inflateBack using the same allocati…
nmoinvaz Jun 11, 2021
6438064
Only need to add rem if it is greater than zero in chunkmemset.
nmoinvaz Jun 4, 2021
11d7321
Calculate from and out buffer advance only once in chunkcopy.
nmoinvaz Jun 4, 2021
6cc2637
Added assert in chunkcopy to detect invalid length.
nmoinvaz Jun 11, 2021
89992df
Change WITH_SANITIZER to be a multi-option parameter (for ccmake etc).
Dead2 Jun 13, 2021
f0a801e
Added Z_UNUSED define for ignore unused variables.
nmoinvaz Jun 13, 2021
5d2ce27
Added aarch64 to pigz GitHub actions workflow.
nmoinvaz Jun 16, 2021
77966c0
Fix MSVC warnings in hash_head_0.c test
iii-i Jun 14, 2021
3fdfedd
Reduce number of branches in partial chunk copy based on chunk size.
nmoinvaz Jun 13, 2021
61a5776
[chunkset_neon] Don't use signed vector types.
mtl1979 Jun 18, 2021
089b2e7
[chunkset_neon] Use vdupq_n_u64.
mtl1979 Jun 18, 2021
c4511df
[chunkcopy_safe] Don't call chunkcopy().
mtl1979 Jun 18, 2021
74b4165
Cast calculation of safe length to unsigned int to avoid compiler war…
mtl1979 Jun 21, 2021
3a66bc7
[functable] Add missing call to cpu_check_features().
mtl1979 Jun 21, 2021
c69f78b
Version 2.0.5
Dead2 Jun 21, 2021
ac97954
Fix Z_SOLO mode
berolinux Jun 27, 2021
59c8b88
Add new crc32 unit test
mscastanho Jun 16, 2021
e08cb8e
Added CI instances for CTZLL and CTZ builtin existence to improve cod…
nmoinvaz Jul 10, 2021
18a4712
Call deflateBound to calculate length with custom gzip header in exam…
nmoinvaz Jul 11, 2021
de570b8
Added code coverage for inflateGetDictionary in example.
nmoinvaz Jul 11, 2021
432d00d
IBM Z: Fix building outside of a source directory
iii-i Oct 11, 2021
49b531b
ENH: Transition to Ubuntu 18.04 in `GitHub` actions workflows
jhlegarreta Oct 13, 2021
07d7354
Workaround for installation failure of wine32.
mtl1979 Dec 4, 2021
8e22abd
Added unit test to ensure that inflate with adler32 hash works on pre…
nmoinvaz Dec 7, 2021
13f155e
[arm] Disable ACLE, UNALIGNED_OK and UNALIGNED64_OK on armv7 and earl…
mtl1979 Jul 21, 2021
3d7381f
Fill out gzheader before calling deflateSetHeader for better code cov…
nmoinvaz Jul 11, 2021
7bf46bb
Added build system check for posix_memalign support.
nmoinvaz Jun 26, 2021
022307b
[MacOS] Downgrade to XCode 11.7.0 for pkgcheck.
mtl1979 Oct 29, 2021
1ffbd26
Include win directory in pigz even if not using threads.
nmoinvaz Jul 1, 2021
5048bde
Make integration into bigger projects easier
dzenanz Sep 6, 2021
8cf93da
Fixed minideflate write buffers being overwritten.
nmoinvaz Nov 12, 2021
2f22eb6
Fixed trailing whitespaces and missing new lines.
nmoinvaz Sep 4, 2021
cab06b0
Fix minor formatting issues
dzenanz Sep 6, 2021
e945928
Use helper function for printing error and exiting in example.
nmoinvaz Jul 12, 2021
f172e34
Don't define HASH_SIZE if it is already defined.
nmoinvaz Jun 26, 2021
141ca90
Fixed undefined behavior of isgraph when character is not in the rang…
nmoinvaz Aug 17, 2021
7445409
Fixed missing enclosing parentheses for ZSWAP64 in zutil.h to avoid e…
cenobit Jun 26, 2021
5bbf9ef
Standardize crc32_stub
mscastanho Jun 16, 2021
cdc8033
Fix hangs on macOS due to loading of misaligned addresses in chunkmem…
sergio-nsk Jul 22, 2021
a9f2e15
Fix UB in inffast.c when not using window
atdt Aug 23, 2021
a0beadd
COMP: Fix data loss warning
jhlegarreta Oct 10, 2021
f1b0a04
Avoid warning C4295 when using Visual C++ and maintainer warnings are…
mtl1979 Dec 15, 2021
2faaf5b
IBM Z: Run DFLTCC tests on the self-hosted builder
iii-i Aug 4, 2021
8a378ba
Fix deflateBound and compressBound returning very small size estimates.
Dead2 Dec 13, 2021
a38184e
Link crc32_test and infcover with $(CFLAGS)
iii-i Oct 11, 2021
b1f726a
IBM Z: Do not check inflateGetDictionary() with DFLTCC
iii-i Oct 11, 2021
5c7d5a2
IBM Z: Adjust compressBound() for DFLTCC
iii-i Oct 11, 2021
a564bcd
Fixed crc32_combine_gen declaration warning in zlib-ng API.
nmoinvaz Dec 20, 2021
49de90d
Upgrade version of GitHub checkout actions. #1078
nmoinvaz Dec 20, 2021
b56a2fd
Version 2.0.6
Dead2 Dec 13, 2021
d14adcc
Added ClangCl instances to GitHub Actions workflow.
nmoinvaz Mar 9, 2022
237a559
Fix UBSAN's cry afoul
KungFuJesus Mar 17, 2022
fb8b4be
Allow bypassing runtime feature check of TZCNT instructions.
mtl1979 Mar 13, 2022
7ed116f
[README] Add missing FORCE_SSE2 for CMake.
mtl1979 Mar 14, 2022
c60eb3a
Wrong variable used when detecting unaligned support for sanitize
nmoinvaz Mar 17, 2022
f72b49e
macOs M1 build fix on arm cpu checks.
devnexen Mar 18, 2022
1d54221
Fix a latent issue with chunkmemset
KungFuJesus Mar 18, 2022
221bfd1
Update language around ABI compatibility with zlib. #1081
nmoinvaz Mar 21, 2022
9f97d13
Added missing -F argument for Z_FIXED strategy in minideflate.
nmoinvaz Mar 27, 2022
1e980c5
Added unit test against CVE-2018-25032.
nmoinvaz Mar 27, 2022
746fc54
Added unit test against CVE-2018-25032 with default strategy.
nmoinvaz Mar 28, 2022
5a687a2
Test CVE-2018-25032 against the default level and levels 1 and 2.
nmoinvaz Mar 31, 2022
421634b
Use HAVE instead of HAS for variable name for consistency.
nmoinvaz Mar 26, 2022
46d8997
Remove unistd.h include from gzguts.h which is already included from …
nmoinvaz Mar 26, 2022
832873f
abicheck.sh: zlib-ng is a bash script, not a sh script, don't hardcod…
dankegel Apr 1, 2022
1d0ab7e
Add one extra byte to return value of compressBound and deflateBound …
mtl1979 Apr 5, 2022
666b32e
Add test for issue #1235.
mtl1979 Apr 6, 2022
0d5d2a4
Disable LTO in CMake
phprus Apr 4, 2022
f01f889
Fixed failed tools tests when source directory is read-only.
nmoinvaz Apr 9, 2022
aa927be
Fixed wrong error name when calling inflate in minideflate.
nmoinvaz Feb 23, 2022
cbb0307
Updated help usage with correct values for window_bits.
nmoinvaz Feb 27, 2022
f99cef6
Auto-detect wrapper when inflating and no window_bits specified.
nmoinvaz Feb 28, 2022
53cc7fb
Include zutil.h for definition of DEF_MEM_LEVEL.
nmoinvaz Mar 10, 2022
6f2939e
Use large default buffer size for minideflate to match minigzip use o…
nmoinvaz Mar 10, 2022
e67c9ff
Added support for -k keep argument to minideflate. By default minidef…
nmoinvaz Mar 11, 2022
69172e3
Append extension to output file path based on window_bits when compre…
nmoinvaz Mar 11, 2022
fe9af76
Print help when no arguments supplied to minideflate.
nmoinvaz Mar 11, 2022
f0d0791
Throw an error when input is raw deflate stream but window_bits is no…
nmoinvaz Mar 11, 2022
882d934
Mimic minigzip behavior and only unlink files if not using -c copy ou…
nmoinvaz Apr 8, 2022
9523572
Disable redirection to 64-bit function variants when Z_SOLO is defined
mtl1979 May 3, 2022
bdc7a43
Remove unused chunkmemset_1 code.
nmoinvaz May 3, 2022
c102886
The names CMAKE_INTERPROCEDURAL_OPTIMIZATION_* must be uppercase.
phprus May 5, 2022
df6957c
Make directory for output files.
phprus May 12, 2022
24d6fdb
crc32_acle.c: make logic more consistent
landfillbaby May 13, 2022
4ef070a
remove UNROLL_MORE as suggested
landfillbaby Jun 7, 2022
f11f537
early return as requested
landfillbaby Jun 8, 2022
ecc094a
CMakeLists.txt: fix version in zlib.pc when building statically
ffontaine May 27, 2022
287b763
Add public compile definition for zlib-ng API so that other projects …
nmoinvaz Jun 12, 2022
72c430b
Handle invalid windowBits in init functions
stoeckmann Jun 13, 2022
f8c8bb7
Extend GZIP conditional
stoeckmann Jun 13, 2022
19059d2
In compatibility mode, always define z_crc_t as uint32_t for backward…
mtl1979 Jun 17, 2022
a61fbf9
Use 15 (0xf) for ZLIB_VER_SUBREVISION to indicate zlib fork.
nmoinvaz Jun 30, 2022
3bcda52
Don't use zlib fork identifier in copyright statement.
nmoinvaz Jun 30, 2022
8f4e8f2
Don't use unaligned access for memcpy instructions due to GCC 11 assu…
nmoinvaz Jun 29, 2022
6ad3bdf
Fix inflateBack to detect invalid input with distances too far.
madler Jun 30, 2022
4a2fb17
Fixed functions declared without a prototype warning in tools.
nmoinvaz Jul 2, 2022
6890dfb
Treat arm64 as aarch64 for Apple M1.
mtl1979 Jul 9, 2022
68a9d16
cmake: respect custom `RC` flags and delete `GCC_WINDRES`
vszakats Jul 17, 2022
d277234
If the extra field was larger than the space the user provided with
mtl1979 Aug 19, 2022
5e037c8
Add CVE-2022-37434 test.
phprus Aug 19, 2022
12dd5d5
Actually run `configure` CI on macOS with GCC
giordano Aug 24, 2022
3d209cc
[Compat] Don't use uint32_t for z_crc_t
mtl1979 Sep 11, 2022
c9a2a91
Remove errant space in cmake posix specifier
Dead2 Sep 14, 2022
dec455c
Don't try to link gz* objects twice.
Dead2 Sep 14, 2022
66011c9
Make visibility tests run the same way as the other tests.
Dead2 Sep 14, 2022
ff1e2cb
Remove unused tryboth() function
Dead2 Sep 25, 2022
5157cab
Use short decompress option name for gzip compatibility. #1347
nmoinvaz Sep 28, 2022
cd823a7
Fix typo in README.md
ccawley2011 Oct 12, 2022
7e61ee2
Support using aligned_alloc() for memory allocation
ccawley2011 Oct 13, 2022
b0b7d78
[MinGW] Disable GCC warning about using MS format specifiers in ISO C…
mtl1979 Oct 13, 2022
910a288
Makefile.in: distclean should remove zlib.pc instead of clean
tch69 Oct 27, 2022
7a1c8ef
Add CodeQL workflow for GitHub code scanning
lgtm-migrator Nov 9, 2022
1d17bfa
IBM zSystems DFLTCC: Fix updating strm.adler
iii-i Sep 17, 2022
02cf11e
Remove WindowBits check for level 1
rhpvorderman Feb 8, 2023
cfbad07
Remove gz_intmax implementation, since INT_MAX is always available in…
Dead2 Dec 13, 2021
31a2a1c
Fix inconsistent feature enablements in cmake and configure
Dead2 Feb 8, 2023
b80403b
Backport latest CI workflows from 'develop'.
Dead2 Feb 8, 2023
ba7dc4f
Backport CMake toolchain files from current 'develop' branch.
Dead2 Feb 8, 2023
0a73214
Update abicheck
Dead2 Feb 8, 2023
f0417fb
Adjust thread counts for compiles and tests to avoid under-utilizatio…
Dead2 Feb 9, 2023
23df8e7
Use _msan_unposion to unposion end of window for when it needs to rea…
nmoinvaz Apr 11, 2022
3701d87
IBM Z DFLTCC: Test with MSan
iii-i Jun 14, 2022
9426e01
Fix crash when gzsetparams() attempted for transparent write.
madler Dec 27, 2022
5846fb4
Fix bug in deflateBound() for level 0 and memLevel 9.
madler Dec 15, 2022
1867d7f
Remove redundant check in gz_look().
Oct 6, 2022
f7e94b8
Add WIN32_LEAN_AND_MEAN for windows.h include.
Oct 3, 2022
fe9e685
Fix bug in block type selection when Z_FIXED used.
Oct 2, 2022
f7f863c
Have infback() deliver all of the available output up to any error.
Jul 24, 2022
f601a29
Have build test report library version if it doesn't match zlib.h.
May 26, 2022
d35a28b
Narrow down the amount of packages installed for Wine.
Dead2 Feb 9, 2023
a073e95
[minigzip] Close gzFile before exiting on error.
mtl1979 Feb 10, 2023
98ea610
Version 2.0.7
Dead2 Mar 7, 2023
f636a09
Add parametrized testing
rhpvorderman Mar 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*.c text
*.h text
Makefile text
configure text eol=lf
testCVEinputs.sh text eol=lf
62 changes: 48 additions & 14 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,78 @@
name: CI Static Analysis
name: Static Analysis
on: [push, pull_request]
jobs:
GCC:
static-analysis:
name: GCC
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- 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@v3

- 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