[vlc-commits] configure: add pointer arithmetic sanitization

Rémi Denis-Courmont git at videolan.org
Sat May 12 14:43:38 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 12 15:29:53 2018 +0300| [3d7dc8ba8d8509287c277272fffe8fc90e76d866] | committer: Rémi Denis-Courmont

configure: add pointer arithmetic sanitization

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d7dc8ba8d8509287c277272fffe8fc90e76d866
---

 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index e507d31694..1290e8e257 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1027,8 +1027,8 @@ AS_VAR_IF(with_sanitizer, no, [], [
     AX_APPEND_FLAG([-g], [CXXFLAGS])
 
     AS_IF([test -z "${with_sanitizer##*address*}" ], [
-       AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer])
-       AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer], [CXXFLAGS])
+       AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract])
+       AX_APPEND_COMPILE_FLAGS([-fsanitize-address-use-after-scope -fno-omit-frame-pointer -fsanitize=pointer-compare -fsanitize=pointer-subtract], [CXXFLAGS])
     ])
     AS_IF([test -z "${with_sanitizer##*memory*}" ], [
         AX_APPEND_COMPILE_FLAGS([-fPIE -pie])



More information about the vlc-commits mailing list