Skip to content

Commit

Permalink
Add a clang memory sanitizer test to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Nov 5, 2019
1 parent 0c774d8 commit e50fd67
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ matrix:
packages:
- gcc-multilib
- libgmp-dev:i386
# clang with memory sanitizer
- compiler: clang
# --disable-openssl-tests because openssl uses uninitialized memory. ASM
# and BIGNUM are disabled because clang memory sanitizer does not work
# with inline assembly (https://clang.llvm.org/docs/MemorySanitizer.html).
# The memory sanitizer is instructed to exit with a different exit code
# using MSAN_OPTIONS. This is because the default exit code is 77 - the
# same exit code that autotools make check interprets as a test that is
# supposed to be skipped.
env: EXTRAFLAGS="--disable-openssl-tests CFLAGS=-fsanitize=memory" ASM=no BIGNUM=no EXPERIMENTAL=yes ENDOMORPHISM=yes RECOVERY=yes ECDH=yes MSAN_OPTIONS=exitcode=42

before_install: mkdir -p `dirname $GUAVA_JAR`
install: if [ ! -f $GUAVA_JAR ]; then wget $GUAVA_URL -O $GUAVA_JAR; fi
before_script: ./autogen.sh
Expand Down

0 comments on commit e50fd67

Please sign in to comment.