summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJF Bastien <github@jfbastien.com>2016-05-02 20:32:34 -0700
committerJF Bastien <github@jfbastien.com>2016-05-02 20:32:34 -0700
commit13c428a6850afb00937732eac227979cf0604e8f (patch)
tree1272c2c7455fd7cdad56dfcfcc3a22bf3b084918
parent40f9359713c9aff3a735901a7e3c2370559bfad8 (diff)
downloadbinaryen-13c428a6850afb00937732eac227979cf0604e8f.tar.gz
binaryen-13c428a6850afb00937732eac227979cf0604e8f.tar.bz2
binaryen-13c428a6850afb00937732eac227979cf0604e8f.zip
ubsan: only recover from some of the failures (#426)
I fixed a few of the existing ubsan failures as part of #404, but would like to prevent regressions. This patch allows some of the sanitizer checks to continue execution (null, shift, signed-integer-overflow) and makes all the other ones hard errors (preventing regressions). Once the remaining errors are addressed we should commit #404 which moves ubsan to -fno-sanitize-recover=all. This likely requires a good checked-math library.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 7c69a5d52..0b23fda12 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ matrix:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
packages: ['cmake', 'nodejs', 'clang-3.6']
- - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=undefined -fsanitize-blacklist=`pwd`/ubsan.blacklist"
+ - env: COMPILER_VERSION=3.6 COMPILER_FLAGS="-fsanitize=undefined -fno-sanitize-recover=alignment,bool,bounds,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,nonnull-attribute,object-size,return,returns-nonnull-attribute,unreachable,unsigned-integer-overflow,vla-bound,vptr -fsanitize-blacklist=`pwd`/ubsan.blacklist"
compiler: clang
addons: *clang36