Skip to content

Commit 6549c16

Browse files
authored
fix clang flags
1 parent 9681a07 commit 6549c16

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lessons/10/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Here we will be fuzzing [re2]. During this lesson we will:
1010
tar xzf re2.tgz
1111
cd re2
1212
13-
export FUZZ_CXXFLAGS="-O2 -fno-omit-frame-pointer -g -fsanitize=address \
14-
-fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div"
13+
export FUZZ_CXXFLAGS="-O2 -fno-omit-frame-pointer -g -fsanitize=address,fuzzer-no-link \
14+
-fsanitize-coverage=trace-cmp,trace-gep,trace-div"
1515
1616
make clean
1717
CXX=clang++ CXXFLAGS="$FUZZ_CXXFLAGS" make -j
@@ -22,8 +22,9 @@ CXX=clang++ CXXFLAGS="$FUZZ_CXXFLAGS" make -j
2222
```bash
2323
cd ..
2424

25-
clang++ -std=c++11 re2_fuzzer.cc $FUZZ_CXXFLAGS -I re2 \
26-
re2/obj/libre2.a ../../libFuzzer/libFuzzer.a -lz \
25+
clang++ -std=c++11 re2_fuzzer.cc -O2 -fno-omit-frame-pointer -g -fsanitize=address,fuzzer \
26+
-fsanitize-coverage=trace-cmp,trace-gep,trace-div -I re2 \
27+
re2/obj/libre2.a -lz \
2728
-o re2_fuzzer
2829

2930
mkdir corpus1

0 commit comments

Comments
 (0)