File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,14 @@ stages:
6
6
7
7
before_script :
8
8
- apt update
9
- - apt install -y build-essential meson clang-tools clang-tidy libfuzzer-7-dev libubsan1 zlib1g-dev libpng-dev pkg-config gcovr wget tar curl
9
+ - apt install -y build-essential meson git git-lfs unzip clang-tools clang-tidy libfuzzer-7-dev libubsan1 zlib1g-dev libpng-dev pkg-config gcovr wget tar curl
10
10
11
11
test :
12
12
stage : test
13
13
script :
14
- - CC=clang-7 CXX=clang++-7 meson -Ddev_build=true -Db_sanitize=address,undefined -Db_lundef=false --wrap-mode=forcefallback clang_build
14
+ - CC=clang-7 CXX=clang++-7 meson -Ddev_build=true -Duse_miniz=true - Db_sanitize=address,undefined -Db_lundef=false --wrap-mode=forcefallback -Doptimization=1 -Doss_fuzz=true clang_build
15
15
- cd clang_build
16
- - ninja test
17
16
- ninja scan-build # this uses gcc due to a bug: https://github.com/mesonbuild/meson/issues/5716
18
- - meson configure -Duse_miniz=true
19
17
- ninja test
20
18
- meson configure -Db_sanitize=memory
21
19
- MSAN_OPTIONS=exitcode=100 ninja test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ add_languages('cpp', native : false)
2
2
cpp = meson .get_compiler(' cpp' )
3
3
4
4
if cc.has_function(' fmemopen' , prefix : ' #include <stdio.h>' , args : ' -D_GNU_SOURCE' )
5
- repro_exe = executable (
5
+ read_fuzzer = executable (
6
6
' fuzz_repro' ,
7
7
' fuzz_main.c' , ' spng_read_fuzzer.c' ,
8
8
c_args : ' -D_GNU_SOURCE' ,
@@ -27,6 +27,6 @@ if get_option('oss_fuzz') == true
27
27
corpora = subproject (' fuzzing_corpora' ).get_variable (' corpora' )
28
28
29
29
foreach case : corpora
30
- test (' testcase' , test_exe , args : case, should_fail : true )
30
+ test (' testcase' , read_fuzzer , args : case)
31
31
endforeach
32
32
endif
You can’t perform that action at this time.
0 commit comments