From 00447b6f523e5b86bec6c3944ad917edea4ed50c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 29 Dec 2019 17:13:21 +0100 Subject: [PATCH] tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabled This should improve coverage of *_c() Signed-off-by: Michael Niedermayer --- 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);