comparison .travis.yml @ 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 56ec2214144f
children 8c1f762c6e9d 7f2be495dff6
comparison
equal deleted inserted replaced
1577:399d8eb961b5 1578:fdadac70ee67
19 env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS="" 19 env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS=""
20 - os: osx 20 - os: osx
21 compiler: clang 21 compiler: clang
22 env: WEXTRAFLAGS="" 22 env: WEXTRAFLAGS=""
23 23
24 # TODO: add -fsanitize=address
25 # TODO: fuzzing malloc wrapper doesn't replace free() in system libtomcrypt 24 # TODO: fuzzing malloc wrapper doesn't replace free() in system libtomcrypt
26 - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS="" 25 - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS="" LDFLAGS=-fsanitize=address EXTRACFLAGS=-fsanitize=address
27 compiler: clang 26 compiler: clang
28 27
29 # container-based builds 28 # container-based builds
30 sudo: false 29 sudo: false
31 addons: 30 addons:
39 38
40 before_install: 39 before_install:
41 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround 40 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround
42 41
43 install: 42 install:
44 - autoconf && autoheader && ./configure $CONFIGURE_FLAGS CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS $EXTRACFLAGS" --prefix="$HOME/inst" 43 - autoconf
44 - autoheader
45 - ./configure $CONFIGURE_FLAGS CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS $EXTRACFLAGS" --prefix="$HOME/inst"
45 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi 46 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi
46 - make -j3 47 - make -j3
47 - test -z $DO_FUZZ || make fuzzstandalone 48 - test -z $DO_FUZZ || make fuzzstandalone
48 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093) 49 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093)
49 - make install 50 - make install
50 51
51 script: 52 script:
52 - ~/inst/bin/dropbearkey -t rsa -f testrsa 53 - ~/inst/bin/dropbearkey -t rsa -f testrsa