summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-10-19 23:38:11 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-10-19 23:38:11 +0800
commitf74baa5830c563c6efbd3ca5df6f895b8ffe3317 (patch)
tree230f41b5c7f30affc983dafd538c35b4108d4860
parent4c5b8fb6d62fc0428415ca50f797c2e6471172b9 (diff)
Add ubsan fuzz run to Travis CI too
-rw-r--r--.travis.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 478dda8..c31628e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,9 +28,15 @@ matrix:
# OS X says daemon() and utmp are deprecated
env: WEXTRAFLAGS="-Wno-deprecated-declarations -Werror"
# Note: the fuzzing malloc wrapper doesn't replace free() in system libtomcrypt, so need bundled.
- - name: "fuzzing"
+ # Address sanitizer
+ - name: "fuzz-asan"
env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS=-Werror LDFLAGS=-fsanitize=address EXTRACFLAGS=-fsanitize=address CXX=clang++
compiler: clang
+ # Undefined Behaviour sanitizer
+ - name: "fuzz-ubsan"
+ # don't fail with alignment due to https://github.com/libtom/libtomcrypt/issues/549
+ env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS=-Werror LDFLAGS=-fsanitize=undefined EXTRACFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-recover=alignment" CXX=clang++
+ compiler: clang
# container-based builds
addons: