From 38a42999e7ab349413962831ef5a1268bc38465f Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Mon, 30 Dec 2024 10:33:35 -0500 Subject: [PATCH] Use `-fsanitize=leak` and `-fsanitize=undefined` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f52ef4330..4ab4a6cf2b 100644 --- a/Makefile +++ b/Makefile @@ -207,8 +207,8 @@ develop: -Wno-format-nonliteral -Wno-strict-overflow -Wno-unused-but-set-variable \ -Wno-type-limits -Wno-tautological-constant-out-of-range-compare -Wvla \ -D_GLIBCXX_ASSERTIONS \ - -fsanitize=shift -fsanitize=integer-divide-by-zero \ - -fsanitize=unreachable -fsanitize=vla-bound \ + -fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=leak \ + -fsanitize=undefined -fsanitize=unreachable -fsanitize=vla-bound \ -fsanitize=signed-integer-overflow -fsanitize=bounds \ -fsanitize=object-size -fsanitize=bool -fsanitize=enum \ -fsanitize=alignment -fsanitize=null -fsanitize=address" \