...if we're going to verify against minimum legal blocksize, we really
authorMonty <xiphmont@xiph.org>
Sat, 23 Jun 2007 06:42:39 +0000 (06:42 +0000)
committerMonty <xiphmont@xiph.org>
Sat, 23 Jun 2007 06:42:39 +0000 (06:42 +0000)
ought to verify against maximum too.

svn path=/trunk/vorbis/; revision=13179

lib/info.c

index f6cf568..4e9dfe9 100644 (file)
@@ -222,7 +222,8 @@ static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){
   if(vi->channels<1)goto err_out;
   if(ci->blocksizes[0]<64)goto err_out; 
   if(ci->blocksizes[1]<ci->blocksizes[0])goto err_out;
-  
+  if(ci->blocksizes[1]>8192)goto err_out;
+
   if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */
 
   return(0);