From a5eac0a065036867c98636be1db34660a946dad1 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 4 Mar 2018 15:00:51 +0800 Subject: [PATCH] add -fsanitize=address for fuzz test again --- .travis.yml | 9 +++++---- 1 file 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