[FFmpeg-cvslog] tools/target_dec_fuzzer: Test lowres

Michael Niedermayer git at videolan.org
Wed Jun 7 02:24:23 EEST 2023


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jan  8 13:52:19 2023 +0100| [8d5de4e12f1554575d7cddf7438e36aff352e197] | committer: Michael Niedermayer

tools/target_dec_fuzzer: Test lowres

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d5de4e12f1554575d7cddf7438e36aff352e197
---

 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 d8e93f3a21..42de479829 100644
--- a/tools/target_dec_fuzzer.c
+++ b/tools/target_dec_fuzzer.c
@@ -428,6 +428,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) {



More information about the ffmpeg-cvslog mailing list