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>
Mon, 21 Aug 2017 21:27:08 +0000 (23:27 +0200)
commitf7509e9fce7a9a8fc65b3b31b96729497bb37177
tree04f4131888a1d42dae3745adff3e44dba01cd721
parent9bfa8b692ebd3718e1ba6f67bfc61a29fc3f1b7d
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