From 4f96222c91d67bb08417ef42ed09879d9e4c59ba Mon Sep 17 00:00:00 2001 From: Arjun Singh Date: Fri, 20 Oct 2023 15:58:39 +0530 Subject: [PATCH] [Fuzzing] add Signed-off-by: Arjun Singh --- test/fuzzing/oss-fuzz.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/fuzzing/oss-fuzz.sh b/test/fuzzing/oss-fuzz.sh index fb04737661..5adb677531 100644 --- a/test/fuzzing/oss-fuzz.sh +++ b/test/fuzzing/oss-fuzz.sh @@ -15,6 +15,13 @@ # ################################################################################ +if [ "$SANITIZER" = "undefined" ] +then + sed -i '/static void DoProfiling/i __attribute__((no_sanitize("undefined")))' src/brpc/builtin/hotspots_service.cpp + sed -i '/void PProfService::heap/i __attribute__((no_sanitize("undefined")))' src/brpc/builtin/pprof_service.cpp + sed -i '/void PProfService::growth/i __attribute__((no_sanitize("undefined")))' src/brpc/builtin/pprof_service.cpp +fi + mkdir -p build && cd build cmake \