avcodec/snowdec: Fix off by 1 error
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Aug 2017 18:32:03 +0000 (20:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commit16772e43ef5a71156a2a599ea81595edf40ace34
tree7f67b089172fe4009e2e8e874ce1ce7e4e65940d
parent53dae9585f1fefb80794112f348df9ea6bc134ec
avcodec/snowdec: Fix off by 1 error

Fixes: runtime error: index 4 out of bounds for type 'int8_t [4]'
Fixes: 3023/clusterfuzz-testcase-minimized-6421736130084864

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