avcodec/kgv1dec: Check that there is enough input for maximum RLE compression
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Nov 2017 19:14:54 +0000 (20:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit32a92a7a9b43db2bcd6f4b6234d9070397957378
treea6516e4d9c3a66b54907170903976654bdc62858
parent74d467baa4a3dbc30176a1f2afa27278c5caf897
avcodec/kgv1dec: Check that there is enough input for maximum RLE compression

Fixes: Timeout
Fixes: 4271/clusterfuzz-testcase-4676667768307712

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 3aad94bf2b140cfba8ae69d018da05d4948ef37f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/kgv1dec.c