Merge branch 'oss-fuzz'
Add script used by OSS-fuzz service to the main repository itself instead of having it in a separate one.
This commit is contained in:
commit
ff66848b05
@ -21,6 +21,7 @@ Platforms
|
||||
|
||||
[![AppVeyor](https://img.shields.io/appveyor/ci/wxWidgets/wxWidgets/master.svg?label=Windows)](https://ci.appveyor.com/project/wxWidgets/wxwidgets)
|
||||
[![Travis](https://img.shields.io/travis/wxWidgets/wxWidgets/master.svg?label=Linux)](https://travis-ci.org/wxWidgets/wxWidgets)
|
||||
[![OSS-Fuzz](https://oss-fuzz-build-logs.storage.googleapis.com/badges/wxwidgets.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:wxwidgets)
|
||||
|
||||
This version of wxWidgets supports the following primary platforms:
|
||||
|
||||
|
12
tests/fuzz/ossfuzz.sh
Executable file
12
tests/fuzz/ossfuzz.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
# build project
|
||||
./configure --without-subdirs --disable-shared --disable-sys-libs --disable-gui LDFLAGS="$CXXFLAGS"
|
||||
make -j$(nproc)
|
||||
|
||||
# build fuzzers
|
||||
$CXX $CXXFLAGS -o $OUT/zip tests/fuzz/zip.cpp \
|
||||
$LIB_FUZZING_ENGINE `./wx-config --cxxflags --libs base`
|
||||
|
||||
# and copy their corpora
|
||||
zip -j $OUT/zip_seed_corpus.zip tests/fuzz/corpus/zip/*
|
Loading…
Reference in New Issue
Block a user