Message ID | 20200207134831.23137-1-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/7] tools/target_dec_fuzzer: Fuzz skip_frame | expand |
Context | Check | Description |
---|---|---|
andriy/ffmpeg-patchwork | success | Make fate finished |
On Fri, Feb 07, 2020 at 02:48:25PM +0100, Michael Niedermayer wrote: > Should allow coverage of related code > > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > tools/target_dec_fuzzer.c | 2 ++ > 1 file changed, 2 insertions(+) will apply [...]
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 2487b6ca94..67a2a41874 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -223,6 +223,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { ctx->request_channel_layout = bytestream2_get_le64(&gbc); ctx->idct_algo = bytestream2_get_byte(&gbc) % 25; + ctx->skip_frame = bytestream2_get_byte(&gbc) - 254 + AVDISCARD_ALL; + if (flags & 0x20) { switch (ctx->codec_id) {
Should allow coverage of related code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- tools/target_dec_fuzzer.c | 2 ++ 1 file changed, 2 insertions(+)