Skip to content

Commit 41d3825

Browse files
authored
fix clang flags
1 parent f051214 commit 41d3825

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lessons/06/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ tar xzvf c-ares.tgz
1515
cd c-ares
1616

1717
./buildconf
18-
./configure CC="clang -O2 -fno-omit-frame-pointer -g -fsanitize=address -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div"
19-
make CFLAGS=
18+
./configure
19+
make CC="clang -O2 -fno-omit-frame-pointer -g -fsanitize=address -fsanitize-coverage=trace-cmp,trace-gep,trace-div"
2020
```
2121

2222
### Build and run the fuzzer
@@ -41,10 +41,9 @@ Build the fuzzer:
4141
4242
```bash
4343
cd ..
44-
clang++ -g c_ares_fuzzer.cc -O2 -fno-omit-frame-pointer -fsanitize=address \
45-
-fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div \
46-
-Ic-ares c-ares/.libs/libcares.a \
47-
../../libFuzzer/libFuzzer.a -o c_ares_fuzzer
44+
clang++ -g c_ares_fuzzer.cc -O2 -fno-omit-frame-pointer -fsanitize=address,fuzzer \
45+
-fsanitize-coverage=trace-cmp,trace-gep,trace-div \
46+
-Ic-ares c-ares/.libs/libcares.a -o c_ares_fuzzer
4847
```
4948

5049
And run it:

0 commit comments

Comments
 (0)