aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-07-19 10:44:23 -0300
committerJames Almer <jamrial@gmail.com>2022-07-26 09:15:16 -0300
commit8daa0fea9f1ee55a0196a0d0439d3c9344897547 (patch)
treed53dc8e948705839d753e727be658838ceae9718
parent5a27aa7dc706da8c8b31c6c16931fa90c0b77d1d (diff)
downloadffmpeg-8daa0fea9f1ee55a0196a0d0439d3c9344897547.tar.gz
tools/target_dec_fuzzer: set avctx->workaround_bugs flags
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--tools/target_dec_fuzzer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 93d5ab0a9f..a423277808 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -411,6 +411,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (flags64 & 0x10)
ctx->err_recognition |= AV_EF_CRCCHECK;
+ ctx->workaround_bugs = bytestream2_get_le32(&gbc);
+
if (extradata_size < size) {
ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE);
if (ctx->extradata) {