Skip to content

Commit 9638a36

Browse files
Pristine zlib 2.0.7 sources, from tarball
1 parent 24883ac commit 9638a36

17 files changed

+1417
-1372
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto
2+
*.c text
3+
*.h text
4+
Makefile text
5+
configure text eol=lf
6+
testCVEinputs.sh text eol=lf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Static Analysis
2+
on: [push, pull_request]
3+
jobs:
4+
static-analysis:
5+
name: GCC
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout repository
9+
uses: actions/checkout@v3
10+
11+
- name: Add ubuntu mirrors
12+
run: |
13+
# Github Actions caching proxy is at times unreliable
14+
echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
15+
curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
16+
sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list
17+
18+
- name: Install packages (Ubuntu)
19+
run: sudo apt-get install -y gcc-10
20+
21+
- name: Generate project files
22+
run: |
23+
cmake . \
24+
-DCMAKE_BUILD_TYPE=Release \
25+
-DBUILD_SHARED_LIBS=OFF \
26+
-DWITH_FUZZERS=OFF \
27+
-DWITH_CODE_COVERAGE=OFF \
28+
-DWITH_MAINTAINER_WARNINGS=OFF
29+
env:
30+
CC: gcc-10
31+
CFLAGS:
32+
-fanalyzer
33+
-Werror
34+
-Wanalyzer-double-fclose
35+
-Wanalyzer-double-free
36+
-Wanalyzer-exposure-through-output-file
37+
-Wanalyzer-file-leak
38+
-Wanalyzer-free-of-non-heap
39+
-Wanalyzer-malloc-leak
40+
-Wanalyzer-null-argument
41+
-Wanalyzer-null-dereference
42+
-Wanalyzer-possible-null-argument
43+
-Wanalyzer-possible-null-dereference
44+
-Wanalyzer-stale-setjmp-buffer
45+
-Wanalyzer-tainted-array-index
46+
-Wanalyzer-unsafe-call-within-signal-handler
47+
-Wanalyzer-use-after-free
48+
-Wanalyzer-use-of-pointer-in-stale-stack-frame
49+
CI: true
50+
51+
- name: Compile source code
52+
run: cmake --build . -j2 --config Release > /dev/null
53+
54+
Clang:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Checkout repository
58+
uses: actions/checkout@v3
59+
60+
- name: Install packages (Ubuntu)
61+
run: sudo apt-get install -y clang-tools
62+
63+
- name: Generate project files
64+
run: |
65+
scan-build --status-bugs \
66+
cmake . \
67+
-DCMAKE_BUILD_TYPE=Release \
68+
-DBUILD_SHARED_LIBS=OFF \
69+
-DWITH_FUZZERS=OFF \
70+
-DWITH_CODE_COVERAGE=OFF \
71+
-DWITH_MAINTAINER_WARNINGS=OFF
72+
env:
73+
CI: true
74+
75+
- name: Compile source code
76+
run: |
77+
scan-build --status-bugs \
78+
cmake --build . -j2 --config Release > /dev/null

0 commit comments

Comments
 (0)