-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pristine zlib 2.0.7 sources, from tarball
- Loading branch information
1 parent
24883ac
commit 9638a36
Showing
17 changed files
with
1,417 additions
and
1,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* text=auto | ||
*.c text | ||
*.h text | ||
Makefile text | ||
configure text eol=lf | ||
testCVEinputs.sh text eol=lf |
78 changes: 78 additions & 0 deletions
78
internal-complibs/zlib-ng-2.0.7/.github/workflows/analyze.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Static Analysis | ||
on: [push, pull_request] | ||
jobs: | ||
static-analysis: | ||
name: GCC | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Add ubuntu mirrors | ||
run: | | ||
# 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 | ||
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 | ||
CI: true | ||
|
||
- name: Compile source code | ||
run: cmake --build . -j2 --config Release > /dev/null | ||
|
||
Clang: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install packages (Ubuntu) | ||
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 | ||
env: | ||
CI: true | ||
|
||
- name: Compile source code | ||
run: | | ||
scan-build --status-bugs \ | ||
cmake --build . -j2 --config Release > /dev/null |
Oops, something went wrong.