avcodec/snowdec: Check width
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 9 May 2017 14:08:14 +0000 (16:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 May 2017 15:49:03 +0000 (17:49 +0200)
commit3078fc9de74fcb4845125621fb32f3495790cb48
treeb05a8d1cba401d7d54b993c42ebbe4c7106f363b
parent5d7b87af7e26a961bc345329c4bb5ba39fd88d8b
avcodec/snowdec: Check width

Fixes: out of array read
Fixes: 1419/clusterfuzz-testcase-minimized-6108700873850880

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 78aa93807b3e0674e34d32c0bf6f78d7f5b7927e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/snowdec.c