You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
configure: add -fuzz support to --toolchain
libFuzzer is linked only for fuzzing targets. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
7
configure
vendored
7
configure
vendored
@ -384,7 +384,7 @@ Toolchain options:
|
||||
(<tool>[-sanitizer[-...]], e.g. clang-asan-ubsan
|
||||
tools: gcc, clang, msvc, icl, gcov, llvm-cov,
|
||||
valgrind-memcheck, valgrind-massif, hardened
|
||||
sanitizers: asan, lsan, msan, tsan, ubsan)
|
||||
sanitizers: asan, fuzz, lsan, msan, tsan, ubsan)
|
||||
--nm=NM use nm tool NM [$nm_default]
|
||||
--ar=AR use archive tool AR [$ar_default]
|
||||
--as=AS use assembler AS [$as_default]
|
||||
@ -4624,6 +4624,11 @@ add_sanitizer_flags(){
|
||||
add_cflags -fsanitize=address
|
||||
add_ldflags -fsanitize=address
|
||||
;;
|
||||
fuzz)
|
||||
add_cflags -fsanitize=fuzzer-no-link
|
||||
add_ldflags -fsanitize=fuzzer-no-link
|
||||
: "${libfuzzer_path:=-fsanitize=fuzzer}"
|
||||
;;
|
||||
lsan)
|
||||
add_cflags -fsanitize=leak
|
||||
add_ldflags -fsanitize=leak
|
||||
|
Reference in New Issue
Block a user