[PATCH] tools/target_dec_fuzzer: Test lowres
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- tools/target_dec_fuzzer.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.17.1
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 [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Many things microsoft did are stupid, but not doing something just because microsoft did it is even more stupid. If everything ms did were stupid they would be bankrupt already.
participants (1)
-
Michael Niedermayer