[xiph-commits] r16597 - trunk/vorbis/lib
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Wed Sep 30 19:54:22 PDT 2009
Author: tterribe
Date: 2009-09-30 19:54:22 -0700 (Wed, 30 Sep 2009)
New Revision: 16597
Modified:
trunk/vorbis/lib/codebook.c
Log:
Don't allow ordered codebooks with codeword lengths longer than 32 bits.
Modified: trunk/vorbis/lib/codebook.c
===================================================================
--- trunk/vorbis/lib/codebook.c 2009-09-29 22:46:49 UTC (rev 16596)
+++ trunk/vorbis/lib/codebook.c 2009-10-01 02:54:22 UTC (rev 16597)
@@ -198,6 +198,7 @@
for(i=0;i<s->entries;){
long num=oggpack_read(opb,_ilog(s->entries-i));
if(num==-1)goto _eofout;
+ if(length>32)goto _errout;
for(j=0;j<num && i<s->entries;j++,i++)
s->lengthlist[i]=length;
length++;
More information about the commits
mailing list