Skip to content

Commit e37e1c5

Browse files
committed
Add memory sanitizer test to travis
1 parent 8de4392 commit e37e1c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ matrix:
6161
packages:
6262
- gcc-multilib
6363
- libgmp-dev:i386
64+
# clang with memory sanitizer
65+
- compiler: clang
66+
# --disable-openssl-tests because openssl uses uninitialized memory. ASM
67+
# and BIGNUM are disabled because clang memory sanitizer does not work
68+
# with inline assembly (https://clang.llvm.org/docs/MemorySanitizer.html).
69+
# The memory sanitizer is instructed to exit with a different exit code
70+
# using MSAN_OPTIONS. This is because the default exit code is 77 - the
71+
# same exit code that autotools make check interprets as a test that is
72+
# supposed to be skipped.
73+
env: EXTRAFLAGS="--disable-openssl-tests CFLAGS=-fsanitize=memory" ASM=no BIGNUM=no EXPERIMENTAL=yes ENDOMORPHISM=yes RECOVERY=yes ECDH=yes MSAN_OPTIONS=exitcode=42
74+
6475
before_install: mkdir -p `dirname $GUAVA_JAR`
6576
install: if [ ! -f $GUAVA_JAR ]; then wget $GUAVA_URL -O $GUAVA_JAR; fi
6677
before_script: ./autogen.sh

0 commit comments

Comments
 (0)