mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Problem: we want to check for undefined behaviour in the CI
Solution: enable GCC's UBSAN in the sanitizer job
This commit is contained in:
parent
0c5396849b
commit
3770937de3
@ -96,8 +96,12 @@ matrix:
|
|||||||
- libbsd-dev
|
- libbsd-dev
|
||||||
- env: BUILD_TYPE=default CURVE=libsodium DRAFT=enabled
|
- env: BUILD_TYPE=default CURVE=libsodium DRAFT=enabled
|
||||||
os: osx
|
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
|
os: linux
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libsodium-dev
|
||||||
- env: BUILD_TYPE=android CURVE=tweetnacl
|
- env: BUILD_TYPE=android CURVE=tweetnacl
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
@ -159,8 +159,8 @@ AC_ARG_ENABLE(address-sanitizer, [AS_HELP_STRING([--enable-address-sanitizer=yes
|
|||||||
[ZMQ_ASAN="$enableval"])
|
[ZMQ_ASAN="$enableval"])
|
||||||
|
|
||||||
if test "x${ZMQ_ASAN}" = "xyes"; then
|
if test "x${ZMQ_ASAN}" = "xyes"; then
|
||||||
CFLAGS="${CFLAGS} -fsanitize=address"
|
CFLAGS="${CFLAGS} -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
|
||||||
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
|
CXXFLAGS="${CXXFLAGS} -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all"
|
||||||
|
|
||||||
AM_CONDITIONAL(ENABLE_ASAN, true)
|
AM_CONDITIONAL(ENABLE_ASAN, true)
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
|
Loading…
Reference in New Issue
Block a user