From 0d16ab24f322690aef3081b44222e558d2cbe4a0 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 29 Mar 2017 15:57:13 +0000 Subject: [PATCH] CVE-2017-0381 --- libs/opus/silk/NLSF_stabilize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/opus/silk/NLSF_stabilize.c b/libs/opus/silk/NLSF_stabilize.c index 1fa1ea37..8f3426b9 100755 --- a/libs/opus/silk/NLSF_stabilize.c +++ b/libs/opus/silk/NLSF_stabilize.c @@ -130,7 +130,7 @@ void silk_NLSF_stabilize( /* Keep delta_min distance between the NLSFs */ for( i = 1; i < L; i++ ) - NLSF_Q15[i] = silk_max_int( NLSF_Q15[i], NLSF_Q15[i-1] + NDeltaMin_Q15[i] ); + NLSF_Q15[i] = silk_max_int( NLSF_Q15[i], silk_ADD_SAT16( NLSF_Q15[i-1], NDeltaMin_Q15[i] ) ); /* Last NLSF should be no higher than 1 - NDeltaMin[L] */ NLSF_Q15[L-1] = silk_min_int( NLSF_Q15[L-1], (1<<15) - NDeltaMin_Q15[L] );