avcodec/loco: Check for end of input in pixel decode
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 2 Aug 2019 20:14:22 +0000 (22:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 17:34:33 +0000 (19:34 +0200)
commit11f01ad26c997ac3f6fd586a8a6dbf1def8e4311
treec8122bcbab3023fa4f588186076bca7c1a42c1d1
parent3a3c02be9a4d568df191e669805958f0fa78e5b5
avcodec/loco: Check for end of input in pixel decode

Fixes: Timeout (100sec -> 5sec)
Fixes: 15509/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LOCO_fuzzer-5724297261219840

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8305a4509af2908d88bb623deb816fdaa8056c83)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/loco.c