aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libsrtp
diff options
context:
space:
mode:
authorGravatar Guido Vranken <guidovranken@users.noreply.github.com>2019-02-25 22:34:24 +0100
committerGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2019-02-25 13:34:24 -0800
commite4899ce61a81a3e072dfec86d7ca21c0d3500073 (patch)
treee387c39196171516407ba3426fbf409e8c766e74 /projects/libsrtp
parent8fe16237efc22022bda80a4ac58ed143a459ff18 (diff)
Add libsrtp fuzzer (#2183)
* Add libsrtp fuzzer
Diffstat (limited to 'projects/libsrtp')
-rw-r--r--projects/libsrtp/Dockerfile22
-rwxr-xr-xprojects/libsrtp/build.sh9
-rw-r--r--projects/libsrtp/project.yaml6
3 files changed, 37 insertions, 0 deletions
diff --git a/projects/libsrtp/Dockerfile b/projects/libsrtp/Dockerfile
new file mode 100644
index 00000000..0667b505
--- /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 00000000..85740890
--- /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 00000000..82e58fbd
--- /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