libvorbis (1.3.2-1.3) lib/floor1.c

Summary

 lib/floor1.c |    1 +
 1 file changed, 1 insertion(+)

    
download this patch

Patch contents

--- libvorbis-1.3.2.orig/lib/floor1.c
+++ libvorbis-1.3.2/lib/floor1.c
@@ -167,6 +167,7 @@
 
   for(j=0,k=0;j<info->partitions;j++){
     count+=info->class_dim[info->partitionclass[j]];
+    if(count>VIF_POSIT) goto err_out;
     for(;k<count;k++){
       int t=info->postlist[k+2]=oggpack_read(opb,rangebits);
       if(t<0 || t>=(1<<rangebits))