[FFmpeg-cvslog] tools/target_dec_fuzzer: Fuzz skip_frame
Michael Niedermayer
git at videolan.org
Sat Jul 17 11:50:00 EEST 2021
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Feb 7 13:15:55 2020 +0100| [9c8df64a700b321dc42e6f9c8506383a764b4508] | committer: Michael Niedermayer
tools/target_dec_fuzzer: Fuzz skip_frame
Should allow coverage of related code
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9c8df64a700b321dc42e6f9c8506383a764b4508
---
tools/target_dec_fuzzer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
index 96b8f81958..a13b3ad08b 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -266,6 +266,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ctx->idct_algo = bytestream2_get_byte(&gbc) % 25;
flushpattern = bytestream2_get_le64(&gbc);
+ ctx->skip_frame = bytestream2_get_byte(&gbc) - 254 + AVDISCARD_ALL;
+
if (flags & 0x20) {
switch (ctx->codec_id) {
More information about the ffmpeg-cvslog
mailing list