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 17:24:31 +0000 (18:24 +0100)
commit14778d3fda0a1fe83d6f40cd8ee1dcf4199b1f98
tree737a388dc7d5920112dd9584b87396544750349b
parent3c4a874388a903abc03954c9d5220a47a5e11df6
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