Message ID | 20230108125908.22868-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 8d5de4e12f1554575d7cddf7438e36aff352e197 |
Headers | show |
Series | [FFmpeg-devel] tools/target_dec_fuzzer: Test lowres | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Sun, Jan 08, 2023 at 01:59:08PM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > tools/target_dec_fuzzer.c | 4 ++++ > 1 file changed, 4 insertions(+) will apply [...]
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index a20345db5c..1725e30a5a 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -423,6 +423,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ctx->workaround_bugs = bytestream2_get_le32(&gbc); + if (c->p.max_lowres) { + ctx->lowres = bytestream2_get_byte(&gbc) % (c->p.max_lowres+1); + } + if (extradata_size < size) { ctx->extradata = av_mallocz(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); if (ctx->extradata) {
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- tools/target_dec_fuzzer.c | 4 ++++ 1 file changed, 4 insertions(+)