shithub: opus

Download patch

ref: 17ea4b7e2d7c1c18708c92b21fb02a5cfbe28776
parent: 6d454d8dadeaee62d92edf7589a81fbf89302f09
author: Gregory Maxwell <[email protected]>
date: Tue Jun 30 07:29:42 EDT 2009

For some frame sizes there can be 5 shorts in a frame.
Correct an out of bounds access in this case.

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -609,7 +609,7 @@
 
    if (shortBlocks && !transient_shift) 
    {
-      celt_word32_t sum[4]={1,1,1,1};
+      celt_word32_t sum[5]={1,1,1,1,1};
       int m;
       for (c=0;c<C;c++)
       {