Opened 12 months ago

#10222 new defect

libFuzzer is now part of clang

Reported by: Pierre-Anthony Lemieux Owned by:
Priority: normal Component: tools
Version: git-master Keywords: fuzzing, fuzzer, fuzz
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


The inline documentation at tools/target_dec_fuzzer.c states that building libFuzzer is required.

However, the instructions at indicate that the library is now part of clang.

I recommend updating the documentation.

The following compile instruction worked for me:

clang -g -O1 -fsanitize=fuzzer  tools/target_dec_fuzzer.c -o target_dec_fuzzer -I. \
-Llibavfilter -Llibavformat -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common \
-Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil \
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -ldl -lxcb -lX11 -llzma -lm -lz -pthread

Change History (0)

Note: See TracTickets for help on using tickets.