Commit f1bbb6fc authored by Doron Somech's avatar Doron Somech Committed by GitHub

Merge pull request #2484 from bluca/address_sanitizer

Problem: lack of out-of-bound memory checks in tests
parents 7ce68da2 d3ca2350
...@@ -45,6 +45,8 @@ matrix: ...@@ -45,6 +45,8 @@ matrix:
- xmlto - xmlto
- env: BUILD_TYPE=default CURVE=libsodium - env: BUILD_TYPE=default CURVE=libsodium
os: osx os: osx
- env: BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled ADDRESS_SANITIZER=enabled
os: linux
sudo: required sudo: required
......
...@@ -15,6 +15,11 @@ if [ $BUILD_TYPE == "default" ]; then ...@@ -15,6 +15,11 @@ if [ $BUILD_TYPE == "default" ]; then
CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig") CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}") CONFIG_OPTS+=("--prefix=${BUILD_PREFIX}")
if [ -n "$ADDRESS_SANITIZER" ] && [ "$ADDRESS_SANITIZER" == "enabled" ]; then
CONFIG_OPTS+=("CFLAGS=-fsanitize=address")
CONFIG_OPTS+=("CXXFLAGS=-fsanitize=address")
fi
if [ -z $CURVE ]; then if [ -z $CURVE ]; then
CONFIG_OPTS+=("--disable-curve") CONFIG_OPTS+=("--disable-curve")
elif [ $CURVE == "libsodium" ]; then elif [ $CURVE == "libsodium" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment