avcodec/cpia: Check input size also against linesizes and EOL
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 May 2019 15:42:04 +0000 (17:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 May 2019 16:10:54 +0000 (18:10 +0200)
commit3c0bfa7d1a90a22d5fe8daa415cc689c111562f1
treef4dc2d61df62fc7be483bc688217961873693e78
parentfbdb3aa179939616bc7fb26e3fe386b85b58e467
avcodec/cpia: Check input size also against linesizes and EOL

Fixes: Timeout (14sec -> 29ms)
Fixes: 14733/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CPIA_fuzzer-5707022445576192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cpia.c