opus: add patch for CVE-2017-0381

This commit is contained in:
Duncaen 2017-01-20 14:54:13 +01:00
parent d43aa02449
commit f0c24eb82e
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 79e8f527b0344b0897a65be35e77f7885bd99409 Mon Sep 17 00:00:00 2001
From: Felicia Lim <flim@google.com>
Date: Thu, 28 Jul 2016 15:21:19 +0200
Subject: [PATCH] Ensure that NLSF cannot be negative when computing a min
distance between them
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
---
silk/NLSF_stabilize.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git silk/NLSF_stabilize.c silk/NLSF_stabilize.c
index 1fa1ea3..8f3426b 100644
--- silk/NLSF_stabilize.c
+++ 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] );

View File

@ -1,7 +1,7 @@
# Template file for 'opus'
pkgname=opus
version=1.1.3
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-float-approx"
short_desc="Codec designed for interactive speech and audio transmission over the Internet"