Eliminate possibility of booklist overflow in res0/1/2 unpacking.
authorMonty <xiphmont@xiph.org>
Fri, 24 Jul 2009 00:06:53 +0000 (00:06 +0000)
committerMonty <xiphmont@xiph.org>
Fri, 24 Jul 2009 00:06:53 +0000 (00:06 +0000)
svn path=/trunk/vorbis/; revision=16326

lib/backends.h

index 9f5da3b..c6a638a 100644 (file)
@@ -111,7 +111,7 @@ typedef struct vorbis_info_residue0{
   int    partitions;       /* possible codebooks for a partition */
   int    groupbook;        /* huffbook for partitioning */
   int    secondstages[64]; /* expanded out to pointers in lookup */
-  int    booklist[256];    /* list of second stage books */
+  int    booklist[512];    /* list of second stage books */
 
   const float classmetric1[64];
   const float classmetric2[64];