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>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commit5e1133920f52f9baa05134702e10b1d02c5a5a8b
treeff29271b704902d970dba2e1285034bbcba60557
parent4376377c51335f0d28ca1470d625aae8342ead95
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>
(cherry picked from commit 1f99674ddddcc33f4c37def0a206e31ad7c4c1af)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c