[FFmpeg-cvslog] configure: add -fuzz support to --toolchain
Kacper Michajłow
git at videolan.org
Sat Jul 19 01:44:53 EEST 2025
ffmpeg | branch: master | Kacper Michajłow <kasper93 at gmail.com> | Thu Jul 17 03:07:26 2025 +0200| [e1665fd71d3623fca8bc2f2818e4cf548a059bf1] | committer: Kacper Michajłow
configure: add -fuzz support to --toolchain
libFuzzer is linked only for fuzzing targets.
Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1665fd71d3623fca8bc2f2818e4cf548a059bf1
---
configure | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index c1c492fe93..8207896a98 100755
--- a/configure
+++ b/configure
@@ -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
More information about the ffmpeg-cvslog
mailing list