From 1b812288147f65652f328251ce0a05c21b31eaca Mon Sep 17 00:00:00 2001 From: flamingcow Date: Thu, 9 May 2019 21:37:20 -0700 Subject: [PATCH] Fix asan, add tsan and ubsan --- Makefile | 10 +++++++++- firebuf | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 10ab481..8586e46 100644 --- a/Makefile +++ b/Makefile @@ -47,4 +47,12 @@ test_connection: connection_afl asan: $(MAKE) clean - FIRE_CXXFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer -std=gnu++2a -Wall -Werror" $(MAKE) all + FIRE_CXXFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer -std=gnu++2a -fPIE -fPIC" $(MAKE) all + +tsan: + $(MAKE) clean + FIRE_CXXFLAGS="-O1 -g -fsanitize=thread -std=gnu++2a -fPIE -fPIC" $(MAKE) all + +ubsan: + $(MAKE) clean + FIRE_CXXFLAGS="-O1 -g -fsanitize=undefined -std=gnu++2a -fPIE -fPIC" $(MAKE) all diff --git a/firebuf b/firebuf index 944483d..2102147 160000 --- a/firebuf +++ b/firebuf @@ -1 +1 @@ -Subproject commit 944483d13f65d2f712a728000662855a1ec751ae +Subproject commit 2102147a2f4212a7c361e9d16d985f66ee127946