tools/target_dec_fuzzer: Also Fuzz with CPU optimizations disabled
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 Dec 2019 16:13:21 +0000 (17:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Jan 2020 20:38:38 +0000 (21:38 +0100)
This should improve coverage of *_c()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c

index 281deca..9f342eb 100644 (file)
@@ -204,6 +204,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         if (flags & 0x10)
             ctx->flags2 |= AV_CODEC_FLAG2_FAST;
 
         if (flags & 0x10)
             ctx->flags2 |= AV_CODEC_FLAG2_FAST;
 
+        if (flags & 0x40)
+            av_force_cpu_flags(0);
 
         extradata_size = bytestream2_get_le32(&gbc);
 
 
         extradata_size = bytestream2_get_le32(&gbc);