# HG changeset patch # User Matt Johnston # Date 1520146851 -28800 # Node ID fdadac70ee67f831e3d2eab3f01a47ba2ff287ed # Parent 399d8eb961b54e9c43370a070e1ff822115ed979 add -fsanitize=address for fuzz test again diff -r 399d8eb961b5 -r fdadac70ee67 .travis.yml --- a/.travis.yml Sun Mar 04 14:57:18 2018 +0800 +++ b/.travis.yml Sun Mar 04 15:00:51 2018 +0800 @@ -21,9 +21,8 @@ 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 @@ - 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