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.
This commit is contained in:
DavidKorczynski 2021-01-29 22:20:31 +00:00 committed by GitHub
parent 0e678a37db
commit 97e2bbd234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

22
projects/civetweb/Dockerfile Executable file
View File

@ -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/

22
projects/civetweb/build.sh Executable file
View File

@ -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/

11
projects/civetweb/project.yaml Executable file
View File

@ -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'