Add libsrtp fuzzer (#2183)

* Add libsrtp fuzzer
This commit is contained in:
Guido Vranken 2019-02-25 22:34:24 +01:00 committed by jonathanmetzman
parent 8fe16237ef
commit e4899ce61a
3 changed files with 37 additions and 0 deletions

View File

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

9
projects/libsrtp/build.sh Executable file
View File

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

View File

@ -0,0 +1,6 @@
homepage: "https://github.com/cisco/libsrtp"
primary_contact: "richbarn@cisco.com"
auto_ccs:
- "guidovranken@gmail.com"
fuzzing_engines:
- libfuzzer