diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-30 00:59:20 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-03 16:06:20 +0100 |
commit | 3ae87bb3c1cb5bbf5c237874efcce47b82e49d6b (patch) | |
tree | 8c3171a023ebb66cd11078499f2a8043026fb744 /tools | |
parent | 1e0ea369456b93dcf6d2ecc2bce45e1b33c2baca (diff) | |
download | ffmpeg-3ae87bb3c1cb5bbf5c237874efcce47b82e49d6b.tar.gz |
tools/target_dec_fuzzer: Support fuzzing error detection
This should increase coverage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/target_dec_fuzzer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 1c4fb11b8a..9dbe025db9 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -194,6 +194,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { parser = av_parser_init(c->id); if (flags & 2) ctx->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL; + if (flags & 4) { + ctx->err_recognition = AV_EF_AGGRESSIVE | AV_EF_COMPLIANT | AV_EF_CAREFUL; + if (flags & 8) + ctx->err_recognition |= AV_EF_EXPLODE; + } + extradata_size = bytestream2_get_le32(&gbc); |