avcodec/y41pdec: Fix width in input buffer size check
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 May 2017 12:33:27 +0000 (14:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:33 +0000 (03:41 +0200)
commita98d82b13dafc0ed25aadcefd6e16b405c24bd82
tree53d7731511b644393e94d97e1d0344bc61cd0a71
parent4dacf6bc4ac2a8f244fa89f010ef5f4955163eee
avcodec/y41pdec: Fix width in input buffer size check

Fixes: out of array read
Fixes: 1437/clusterfuzz-testcase-minimized-4569970002362368

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 3d8d3729475c7dce52d8fb9ffb280fd2ea62e1a2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/y41pdec.c