From 55fb7ea0e3bd2fec8d00418444bb717f507b32ca Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Wed, 5 Nov 2014 21:10:07 +0100 Subject: [PATCH] Enable some runtime sanity checks when using at least gcc 4.9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I33208d4c27a27fb9222577ca176357035eeb7ba1 Reviewed-on: https://code.wireshark.org/review/5150 Reviewed-by: Jörg Mayer --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f10ca2adb..175e278415 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,6 +234,11 @@ else() -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks + -fsanitize=undefined # compile and runtime checks + # -fsanitize=float-divide-by-zero + # -fsanitize=float-cast-overflow + # -fsanitize=address + # -fno-sanitize-recover # Abort during runtime -Wvla -Waddress -Wattributes