avcodec/pngdec: Check compression method
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Nov 2018 02:12:45 +0000 (03:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 16 Nov 2018 09:13:42 +0000 (10:13 +0100)
commit1f99674ddddcc33f4c37def0a206e31ad7c4c1af
tree0694e6019cafc2078bc8cdbc452bd6f44d6b6bb2
parent35040048793bc5d19942277fe17d1235e915a7d8
avcodec/pngdec: Check compression method

method 0 (inflate/deflate) is the only specified in the specification and the only supported

Fixes: Timeout
Fixes: 10976/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PNG_fuzzer-5729372588736512

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