diff --git a/projects/civetweb/Dockerfile b/projects/civetweb/Dockerfile new file mode 100755 index 000000000..523cf0107 --- /dev/null +++ b/projects/civetweb/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2021 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 && apt-get install -y zlib1g-dev +RUN git clone https://github.com/civetweb/civetweb + +WORKDIR $SRC/civetweb +COPY build.sh $SRC/ diff --git a/projects/civetweb/build.sh b/projects/civetweb/build.sh new file mode 100755 index 000000000..cd2caeefe --- /dev/null +++ b/projects/civetweb/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash -eu +# Copyright 2021 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. +# +################################################################################ +sed -i 's/CFLAGS += -g -fsanitize=address,fuzzer,undefined/#CFLAGS += -g -fsanitize=address,fuzzer,undefined/' ./Makefile +export LDFLAGS="${LIB_FUZZING_ENGINE} ${CFLAGS}" + +chmod +x ./fuzztest/build.sh +./fuzztest/build.sh +mv civetweb_fuzz3 $OUT/ diff --git a/projects/civetweb/project.yaml b/projects/civetweb/project.yaml new file mode 100755 index 000000000..f191b2a7c --- /dev/null +++ b/projects/civetweb/project.yaml @@ -0,0 +1,11 @@ +homepage: "https://github.com/civetweb/civetweb" +primary_contact: "bel2125@gmail.com" +language: c +fuzzing_engines: + - libfuzzer + - honggfuzz + - dataflow +auto_ccs: + - "xt4ubq@gmail.com" + - "david@adalogics.com" +main_repo: 'https://github.com/civetweb/civetweb'