[xiph-commits] r13179 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Jun 22 23:42:39 PDT 2007


Author: xiphmont
Date: 2007-06-22 23:42:39 -0700 (Fri, 22 Jun 2007)
New Revision: 13179

Modified:
   trunk/vorbis/lib/info.c
Log:
...if we're going to verify against minimum legal blocksize, we really 
ought to verify against maximum too.



Modified: trunk/vorbis/lib/info.c
===================================================================
--- trunk/vorbis/lib/info.c	2007-06-23 04:24:56 UTC (rev 13178)
+++ trunk/vorbis/lib/info.c	2007-06-23 06:42:39 UTC (rev 13179)
@@ -222,7 +222,8 @@
   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);



More information about the commits mailing list