changeset 1749:32307118bc26

Add ubsan fuzz run to Travis CI too
author Matt Johnston <matt@ucc.asn.au>
date Mon, 19 Oct 2020 23:38:11 +0800
parents 34d9d3c022ce
children 7cb8bc5ce8b9
files .travis.yml
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.travis.yml	Mon Oct 19 22:49:19 2020 +0800
+++ b/.travis.yml	Mon Oct 19 23:38:11 2020 +0800
@@ -28,9 +28,15 @@
       # 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: