[FFmpeg-cvslog] tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabled

Michael Niedermayer git at videolan.org
Tue Jan 21 22:41:59 EET 2020


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Dec 29 17:13:21 2019 +0100| [00447b6f523e5b86bec6c3944ad917edea4ed50c] | committer: Michael Niedermayer

tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabled

This should improve coverage of *_c()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=00447b6f523e5b86bec6c3944ad917edea4ed50c
---

 tools/target_dec_fuzzer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 281decae94..9f342ebde9 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -204,6 +204,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         if (flags & 0x10)
             ctx->flags2 |= AV_CODEC_FLAG2_FAST;
 
+        if (flags & 0x40)
+            av_force_cpu_flags(0);
 
         extradata_size = bytestream2_get_le32(&gbc);
 



More information about the ffmpeg-cvslog mailing list