[vlc-commits] configure: add pointer arithmetic sanitization

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


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

configure: add pointer arithmetic sanitization

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

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

diff --git a/configure.ac b/configure.ac
index 837d37107b..4a53c2ea2c 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