summaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-03-04 15:00:51 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-03-04 15:00:51 +0800
commita5eac0a065036867c98636be1db34660a946dad1 (patch)
tree8a9f6b04d7787db01cbb28d61df6d8d8195800cc /.travis.yml
parent7f1591054198e6633f7ed2b1f79d8ed0826df21b (diff)
add -fsanitize=address for fuzz test again
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index d25ff89..aa2dee5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,9 +21,8 @@ matrix:
compiler: clang
env: WEXTRAFLAGS=""
- # TODO: add -fsanitize=address
# TODO: fuzzing malloc wrapper doesn't replace free() in system libtomcrypt
- - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS=""
+ - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS="" LDFLAGS=-fsanitize=address EXTRACFLAGS=-fsanitize=address
compiler: clang
# container-based builds
@@ -41,10 +40,12 @@ before_install:
- if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround
install:
- - autoconf && autoheader && ./configure $CONFIGURE_FLAGS CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS $EXTRACFLAGS" --prefix="$HOME/inst"
+ - autoconf
+ - autoheader
+ - ./configure $CONFIGURE_FLAGS CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS $EXTRACFLAGS" --prefix="$HOME/inst"
- if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi
- make -j3
- - test -z $DO_FUZZ || make fuzzstandalone
+ - test -z $DO_FUZZ || make fuzzstandalone
# avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093)
- make install