avcodec/jvdec: Check available input space before decode8x8()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Feb 2019 00:09:43 +0000 (01:09 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commit3891dbf4cf6564767ffc564374db741ae5efa5f8
treefe8349db7776b79e99fc623704634cedcbc0b9f8
parent8ddad9f9cdac4bf05a455fe5bb3efdab5957d1e4
avcodec/jvdec: Check available input space before decode8x8()

Fixes: Timeout (78 sec -> 15 millisec)
Fixes: 13147/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JV_fuzzer-5727107827630080

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 61523683c5a9bda9aaa7ae24764a3df0401a9877)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jvdec.c