Commit 68d7e0ec authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Don't allow ordered codebooks with codeword lengths longer than 32 bits.

svn path=/trunk/vorbis/; revision=16597
parent 1ca84c46
......@@ -198,6 +198,7 @@ int vorbis_staticbook_unpack(oggpack_buffer *opb,static_codebook *s){
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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment