Skip to content

Commit

Permalink
[Fuzzing] add
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
  • Loading branch information
0x34d committed Oct 20, 2023
1 parent e93e1a7 commit 4f96222
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/fuzzing/oss-fuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4f96222

Please sign in to comment.