Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2009-06-30 19:29:42 +0400
committerJean-Marc Valin <jean-marc.valin@octasic.com>2009-06-30 19:42:01 +0400
commit17ea4b7e2d7c1c18708c92b21fb02a5cfbe28776 (patch)
treef6e8e2ce41cc8faa1933393d42169df4b07b4a9c
parent6d454d8dadeaee62d92edf7589a81fbf89302f09 (diff)
For some frame sizes there can be 5 shorts in a frame.
Correct an out of bounds access in this case.
-rw-r--r--libcelt/celt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 5d32fdc..0d07c6a 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -609,7 +609,7 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
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++)
{