diff options
-rw-r--r-- | projects/mongoose/Dockerfile | 21 | ||||
-rwxr-xr-x | projects/mongoose/build.sh | 20 | ||||
-rw-r--r-- | projects/mongoose/project.yaml | 5 |
3 files changed, 46 insertions, 0 deletions
diff --git a/projects/mongoose/Dockerfile b/projects/mongoose/Dockerfile new file mode 100644 index 00000000..15f4a4f9 --- /dev/null +++ b/projects/mongoose/Dockerfile @@ -0,0 +1,21 @@ +# Copyright 2020 Google LLC +# +# 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 +RUN apt-get update +RUN git clone https://github.com/cesanta/mongoose +WORKDIR $SRC +COPY build.sh $SRC/ diff --git a/projects/mongoose/build.sh b/projects/mongoose/build.sh new file mode 100755 index 00000000..56e5a19c --- /dev/null +++ b/projects/mongoose/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash -eu +# Copyright 2020 Google LLC +# +# 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. +# +cd $SRC/mongoose/test +$CC $CFLAGS -c fuzz.c -g -I../ -o fuzz.o +$CC $CFLAGS -c ../mongoose.c -g -I../ -o mongoose.o + +$CXX $CXXFLAGS $LIB_FUZZING_ENGINE fuzz.o mongoose.o -o $OUT/fuzz diff --git a/projects/mongoose/project.yaml b/projects/mongoose/project.yaml new file mode 100644 index 00000000..e66570b7 --- /dev/null +++ b/projects/mongoose/project.yaml @@ -0,0 +1,5 @@ +homepage: "https://github.com/cesanta/mongoose" +language: c++ +primary_contact: "support@cesanta.com" +auto_ccs: + - "david@adalogics.com" |