avcodec/pngdec: Check trns more completely
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Feb 2017 11:24:14 +0000 (12:24 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 20:17:51 +0000 (21:17 +0100)
commit3aa8440bafe3f793df116c035d6cd1ba4c404423
tree803c10335075dce9004ccbecaba2ac712924e631
parentc9992efd84e1c0e15ea88cf11478dccbdd185660
avcodec/pngdec: Check trns more completely

Fixes out of array access
Fixes: 546/clusterfuzz-testcase-4809433909559296

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e477f09d0b3619f3d29173b2cd593e17e2d1978e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c