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 15:54:24 +0000 (17:54 +0200)
commit8305a4509af2908d88bb623deb816fdaa8056c83
tree9013f8b1f1a6b15dde2306a426ac9b60847fb836
parent549fcba8fc83330763ccd3cc67233037c96bc6d9
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>
libavcodec/loco.c