Mercurial > dropbear
changeset 1578:fdadac70ee67
add -fsanitize=address for fuzz test again
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 04 Mar 2018 15:00:51 +0800 |
parents | 399d8eb961b5 |
children | 8c1f762c6e9d 7f2be495dff6 |
files | .travis.yml |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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