diff options
author | 2017-10-25 01:19:16 +0200 | |
---|---|---|
committer | 2017-10-24 16:19:16 -0700 | |
commit | ee358c11e4a62b1b186a5bc4a430890eef006343 (patch) | |
tree | 74d0d88a94dae04e3e1b386ceb77b763ffb90454 /projects/wxwidgets | |
parent | 51ed48c4ded85dd7c4c65a84fe82e75f94bae73b (diff) |
Add wxWidgets project (#913)
Add the project file and simple Dockerfile and the build script using
the fuzzer source in the main wxWidgets repository itself.
Diffstat (limited to 'projects/wxwidgets')
-rw-r--r-- | projects/wxwidgets/Dockerfile | 22 | ||||
-rwxr-xr-x | projects/wxwidgets/build.sh | 27 | ||||
-rw-r--r-- | projects/wxwidgets/project.yaml | 2 |
3 files changed, 51 insertions, 0 deletions
diff --git a/projects/wxwidgets/Dockerfile b/projects/wxwidgets/Dockerfile new file mode 100644 index 00000000..e77cb2bc --- /dev/null +++ b/projects/wxwidgets/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2017 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder +MAINTAINER vadim@wxwidgets.org +RUN apt-get update && apt-get install -y make +RUN git clone --depth 1 https://github.com/wxWidgets/wxWidgets.git wxwidgets +WORKDIR wxwidgets +COPY build.sh $SRC/ diff --git a/projects/wxwidgets/build.sh b/projects/wxwidgets/build.sh new file mode 100755 index 00000000..279fc01e --- /dev/null +++ b/projects/wxwidgets/build.sh @@ -0,0 +1,27 @@ +#!/bin/bash -eu +# Copyright 2017 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +# build project +./configure --without-subdirs --disable-sys-libs --disable-gui +make -j$(nproc) wxbase + +# build fuzzers +$CXX $CXXFLAGS -o $OUT/zip ./tests/fuzz/zip.cpp \ + -lFuzzingEngine `./wx-config --cxxflags --libs base` + +# and copy their corpora +zip -j $OUT/zip_seed_corpus.zip $SRC/wxwidgets/tests/fuzz/corpus/zip/* diff --git a/projects/wxwidgets/project.yaml b/projects/wxwidgets/project.yaml new file mode 100644 index 00000000..17c648e4 --- /dev/null +++ b/projects/wxwidgets/project.yaml @@ -0,0 +1,2 @@ +homepage: "https://www.wxwidgets.org/" +primary_contact: "vzeitlin@gmail.com" |