diff --git a/projects/libsrtp/Dockerfile b/projects/libsrtp/Dockerfile new file mode 100644 index 000000000..0667b505f --- /dev/null +++ b/projects/libsrtp/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2016 Google Inc. +# +# 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 +MAINTAINER guidovranken@gmail.com +RUN apt-get update && apt-get install -y sudo autoconf build-essential libssl-dev pkg-config + +RUN git clone --recursive https://github.com/guidovranken/libsrtp +COPY build.sh $SRC/ diff --git a/projects/libsrtp/build.sh b/projects/libsrtp/build.sh new file mode 100755 index 000000000..857408901 --- /dev/null +++ b/projects/libsrtp/build.sh @@ -0,0 +1,9 @@ +cd $SRC/libsrtp +git checkout fuzzing +git fetch origin fuzzing +autoreconf -ivf +./configure +LIBFUZZER="-lFuzzingEngine" make srtp-fuzzer +zip -r srtp-fuzzer_seed_corpus.zip fuzzer/corpus +cp $SRC/libsrtp/fuzzer/srtp-fuzzer $OUT +cp srtp-fuzzer_seed_corpus.zip $OUT diff --git a/projects/libsrtp/project.yaml b/projects/libsrtp/project.yaml new file mode 100644 index 000000000..82e58fbd2 --- /dev/null +++ b/projects/libsrtp/project.yaml @@ -0,0 +1,6 @@ +homepage: "https://github.com/cisco/libsrtp" +primary_contact: "richbarn@cisco.com" +auto_ccs: + - "guidovranken@gmail.com" +fuzzing_engines: + - libfuzzer