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>
Sat, 30 Dec 2017 20:11:32 +0000 (21:11 +0100)
commitd5bdcd8a2702623af06a0db76a7f7f68f08c457b
tree89faa5aa9e3e1dd69e677e7a0dbcd2b6f2fd2731
parent7bc064d461659553f7785d5b7d72a1518fc2aae3
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