Skip to content

Commit

Permalink
fuzzing: Suggest disabling golang bindings.
Browse files Browse the repository at this point in the history
These are not compatible with --disable-shared, and in any case they
are irrelevant when fuzzing the C library.

Fixes: commit cb21216
  • Loading branch information
rwmjones committed May 12, 2020
1 parent b6a69b5 commit b3fbcc7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fuzzing/README
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ We can fuzz libnbd using the wrapper in this directory.
You will need to recompile libnbd with afl instrumentation:

./configure CC=/usr/bin/afl-gcc CXX=/usr/bin/afl-g++ \
--disable-shared --disable-ocaml --disable-python
--disable-shared \
--disable-golang --disable-ocaml --disable-python
make clean
make

Expand Down Expand Up @@ -41,7 +42,8 @@ consult the README of that project, but in brief:
profiling:

./configure CFLAGS="-O2 -g -pg -fprofile-arcs -ftest-coverage" \
--disable-shared --disable-ocaml --disable-python
--disable-shared \
--disable-golang --disable-ocaml --disable-python
make clean
make

Expand All @@ -66,7 +68,8 @@ binary:
CC=clang \
CFLAGS="-g -O1" \
--enable-libfuzzer \
--disable-shared --disable-ocaml --disable-python
--disable-shared \
--disable-golang --disable-ocaml --disable-python
make clean
make CFLAGS="-g -O1 -fsanitize=fuzzer,address" -C lib
make CFLAGS="-g -O1 -fsanitize=fuzzer,address" \
Expand Down

0 comments on commit b3fbcc7

Please sign in to comment.