opus: Fix typo causing overflow in silk_stabilize_lsf
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 15 Dec 2015 21:00:31 +0000 (22:00 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 16 Dec 2015 21:19:58 +0000 (22:19 +0100)
commit17776638c392d104975aba169e17b186490e1d5e
treee78694beeab21d0534b75e51890254e7d150666b
parent90b1b9350c0a97c4065ae9054b83e57f48a0de1f
opus: Fix typo causing overflow in silk_stabilize_lsf

Due to this typo max_center can be too large, causing nlsf to be set to
too large values, which in turn can cause nlsf[i - 1] + min_delta[i] to
overflow to a negative value, which is not allowed for nlsf and can
cause an out of bounds read in silk_lsf2lpc.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/opus_silk.c