diff --git a/.travis.yml b/.travis.yml index ac827b4e..cfe457a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -96,8 +96,12 @@ matrix: - libbsd-dev - env: BUILD_TYPE=default CURVE=libsodium DRAFT=enabled os: osx - - env: BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled ADDRESS_SANITIZER=enabled + - env: BUILD_TYPE=default CURVE=libsodium DRAFT=enabled ADDRESS_SANITIZER=enabled os: linux + addons: + apt: + packages: + - libsodium-dev - env: BUILD_TYPE=android CURVE=tweetnacl os: linux dist: trusty diff --git a/configure.ac b/configure.ac index ab0ed176..e0132b15 100644 --- a/configure.ac +++ b/configure.ac @@ -159,8 +159,8 @@ AC_ARG_ENABLE(address-sanitizer, [AS_HELP_STRING([--enable-address-sanitizer=yes [ZMQ_ASAN="$enableval"]) if test "x${ZMQ_ASAN}" = "xyes"; then - CFLAGS="${CFLAGS} -fsanitize=address" - CXXFLAGS="${CXXFLAGS} -fsanitize=address" + CFLAGS="${CFLAGS} -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all" + CXXFLAGS="${CXXFLAGS} -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all" AM_CONDITIONAL(ENABLE_ASAN, true) AC_MSG_RESULT([yes])