avcodec/pngdec: Check input space
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 14 May 2019 18:23:48 +0000 (20:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 25 Jun 2019 11:30:09 +0000 (13:30 +0200)
commitc830752142bb5e052d540c429d41fb6dafe920db
tree99856fa4a0b3ea38a9629a852740392fe4afc5ac
parent2b634e7c23f9e51a5e457985cd116cba5962f552
avcodec/pngdec: Check input space

Fixes: Timeout (33sec -> 78ms)
Fixes: 14668/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-5767073352908800

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c