[vlc-devel] [PATCH] configure: do not sanitize vptr
RĂ©mi Denis-Courmont
remi at remlab.net
Sun Dec 17 21:36:35 CET 2017
This is notoriously broken in UBSan, causing a lot of false positives
with TagLib.
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index acbee6c0b1..57c2f091f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1037,6 +1037,9 @@ AS_VAR_IF(with_sanitizer, no, [], [
AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
AX_APPEND_COMPILE_FLAGS([-fPIE -pie], [CXXFLAGS])
])
+ AS_IF([test -z "${with_sanitizer##*undefined*}" ], [
+ AX_APPEND_COMPILE_FLAGS([-fno-sanitize=vptr], [CXXFLAGS])
+ ])
])
dnl
--
2.15.1
More information about the vlc-devel
mailing list