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>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit7ffd2ae87eaa7cda08bdd14bd593c2911f959994
tree122112d69ccc00f50f68b0efa3c4c3aed8b25411
parent0a0f052868d33b7660bdebe47cf612ffdfee9be2
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>
(cherry picked from commit 3c0bfa7d1a90a22d5fe8daa415cc689c111562f1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cpia.c