[FFmpeg-trac] #10222(tools:new): libFuzzer is now part of clang

FFmpeg trac at avcodec.org
Sun Feb 26 23:16:53 EET 2023


#10222: libFuzzer is now part of clang
-------------------------------------+-------------------------------------
             Reporter:  Pierre-      |                     Type:  defect
  Anthony Lemieux                    |
               Status:  new          |                 Priority:  normal
            Component:  tools        |                  Version:  git-
             Keywords:  fuzzing,     |  master
  fuzzer, fuzz                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 The inline documentation at {{{tools/target_dec_fuzzer.c}}} states that
 building libFuzzer is required.

 However, the instructions at [http://libfuzzer.info#versions] 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. \
 -DFFMPEG_CODEC=AV_CODEC_ID_JPEG2000 -DFUZZ_FFMPEG_VIDEO  -Llibavcodec
 -Llibavdevice \
 -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
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10222>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list