From 97e2bbd2349ab1f05f847b5d8645b7dc9fb5e400 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Fri, 29 Jan 2021 22:20:31 +0000 Subject: [PATCH] Civetweb: initial integration (#4983) * civitweb: initial integration. * updated the project.yaml * Trying with a different port. * Trying port 8002. * new port. * Updated the project configurations for civetweb and removed changing of port. --- projects/civetweb/Dockerfile | 22 ++++++++++++++++++++++ projects/civetweb/build.sh | 22 ++++++++++++++++++++++ projects/civetweb/project.yaml | 11 +++++++++++ 3 files changed, 55 insertions(+) create mode 100755 projects/civetweb/Dockerfile create mode 100755 projects/civetweb/build.sh create mode 100755 projects/civetweb/project.yaml 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'