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>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commit71e40180cb1df511cfb67e17ff041f69d8d11d32
tree5e3c57b4d72b4fa967dbea0be7fa7a16e8cc7211
parent2214afdf408c7cfb9aa1861e2efb5909fdd1bcfb
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