Skip to content

Commit 29a299e

Browse files
committed
Run the undefined behaviour sanitizer on Travis
Run UBSAN with both GCC and Clang, on Linux and macOS. The `halt_on_error=1` option is required to make the build fail if the sanitizer finds an issue.
1 parent 7506e06 commit 29a299e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ env:
3131
- BUILD=distcheck WITH_VALGRIND=no CTIMETEST=no BENCH=no
3232
- CPPFLAGS=-DDETERMINISTIC
3333
- CFLAGS=-O0 CTIMETEST=no
34+
- CFLAGS="-fsanitize=undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=undefined -fno-omit-frame-pointer" UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1" BIGNUM=no ASM=x86_64 ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes CTIMETEST=no
3435
- ECMULTGENPRECISION=2
3536
- ECMULTGENPRECISION=8
3637
- RUN_VALGRIND=yes BIGNUM=no ASM=x86_64 ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes EXTRAFLAGS="--disable-openssl-tests" BUILD=

0 commit comments

Comments
 (0)