diff mbox

[FFmpeg-devel,4/5] tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabled

Message ID 20191229192339.5809-4-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Dec. 29, 2019, 7:23 p.m. UTC
This should improve coverage of *_c()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 tools/target_dec_fuzzer.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Niedermayer Jan. 21, 2020, 6:44 p.m. UTC | #1
On Sun, Dec 29, 2019 at 08:23:38PM +0100, Michael Niedermayer wrote:
> This should improve coverage of *_c()
> 
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  tools/target_dec_fuzzer.c | 2 ++
>  1 file changed, 2 insertions(+)

will apply

[...]
diff mbox

Patch

diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 42dd36e2af..d02db85340 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -240,6 +240,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);