mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
Merge pull request #2484 from bluca/address_sanitizer
Problem: lack of out-of-bound memory checks in tests
This commit is contained in:
commit
f1bbb6fc0a
@ -45,6 +45,8 @@ matrix:
|
||||
- xmlto
|
||||
- env: BUILD_TYPE=default CURVE=libsodium
|
||||
os: osx
|
||||
- env: BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled ADDRESS_SANITIZER=enabled
|
||||
os: linux
|
||||
|
||||
sudo: required
|
||||
|
||||
|
@ -15,6 +15,11 @@ if [ $BUILD_TYPE == "default" ]; then
|
||||
CONFIG_OPTS+=("PKG_CONFIG_PATH=${BUILD_PREFIX}/lib/pkgconfig")
|
||||
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
|
||||
CONFIG_OPTS+=("--disable-curve")
|
||||
elif [ $CURVE == "libsodium" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user