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:35 +0000 (23:27 +0200)
commit7829a712bb5af978289df8287160ea27d1e056ce
treeecc6fede4ab2dd53caf1f0606882694a7390f41a
parentb463a0347636fce1a55a6fcaeb4d8827d2929f2c
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