Pistache: initial integration (#5793)

* pistache: initial integration.

* updated license header.

* Updated the pistache set up

* Updated setup to use meson instead of cmake.

* updated dockerfile to reflect upstream merge.

* use the actual real link.

* Set up email list for pistache.

* Fuzzer is now upstream.
This commit is contained in:
DavidKorczynski 2021-06-01 22:40:12 +01:00 committed by GitHub
parent 7c47d9e15a
commit 4f19ce2b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 0 deletions

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 make autoconf automake libtool
RUN pip3 install meson==0.53.0 ninja
RUN git clone --depth 1 https://github.com/pistacheio/pistache pistache
WORKDIR pistache
COPY build.sh $SRC/

22
projects/pistache/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.
#
################################################################################
mkdir build && cd build
meson --default-library=static ../
ninja
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE -o $OUT/fuzz_parsers \
-std=c++17 -I../include/ ../tests/fuzzers/fuzz_parser.cpp ./src/libpistache.a

View File

@ -0,0 +1,10 @@
homepage: "http://pistache.io"
language: c++
primary_contact: "kip@thevertigo.com"
main_repo: "https://github.com/pistacheio/pistache"
auto_ccs:
- "dennis.jenkins.75@gmail.com"
- "andrea@pappacoda.it"
- "hyperxor@protonmail.com"
- "auquetal@gmail.com"
- "david@adalogics.com"