avcodec/pngdec: consider chunk size in minimal size check
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Jul 2019 22:03:15 +0000 (00:03 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Aug 2019 17:13:21 +0000 (19:13 +0200)
commit70432eac0b511105a5d6654cb794bc5f3e983ee0
treeabaa419e3b618bb814ae9a7f66d9fc398e1f8de9
parentc9415e815a996d287850a3572ce2c1d663b9f657
avcodec/pngdec: consider chunk size in minimal size check

assuming each block contains an empty chunk there has to be at least 8 bytes extra.

Fixes: 15327/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LSCR_fuzzer-5676669303521280
Fixes: Timeout (11->5sec)

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