aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Bühler <pabuhler@cisco.com>2019-06-20 09:36:42 +0200
committerPascal Buhler <pabuhler@cisco.com>2019-06-26 14:06:23 +0200
commit277eaaf774b1c568d2dc6cb7acd623f3beb1324a (patch)
treedea844cdd8664bc112504f2877f4d69f0ddfc279
parentac97f3e1d71fb77cc17d8061c18ab46d84919ffb (diff)
downloadlibsrtp2-277eaaf774b1c568d2dc6cb7acd623f3beb1324a.tar.gz
Add building of fuzzer to travis
The intention is not to run the fuzzer but to ensure build breakage is detected. Requires a newish version of clang so bump distro to xenial
-rw-r--r--.travis.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index edb6179..f8e5a07 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,4 @@
-dist: trusty
+dist: xenial
sudo: false
language: c
@@ -140,6 +140,18 @@ matrix:
- file test/srtp_driver
- make runtest
+ # linux build of fuzzer
+ - os: linux
+ env:
+ - TEST="fuzzer (build only)"
+ addons:
+ apt:
+ packages:
+ - clang
+ script:
+ - CC=clang CXX=clang++ CXXFLAGS="-fsanitize=fuzzer-no-link,address,undefined -g -O3" CFLAGS="-fsanitize=fuzzer-no-link,address,undefined -g -O3" LDFLAGS="-fsanitize=fuzzer-no-link,address,undefined" ./configure
+ - LIBFUZZER="-fsanitize=fuzzer" make srtp-fuzzer
+
# coverity scan
- os: linux
env: