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

tterribe at svn.xiph.org tterribe at svn.xiph.org
Thu Oct 21 11:33:59 PDT 2010


Author: tterribe
Date: 2010-10-21 11:33:59 -0700 (Thu, 21 Oct 2010)
New Revision: 17557

Modified:
   trunk/vorbis/lib/floor0.c
Log:
Port r17545 from Tremor.

Check that floor0 books all have a value mapping.


Modified: trunk/vorbis/lib/floor0.c
===================================================================
--- trunk/vorbis/lib/floor0.c	2010-10-21 18:25:19 UTC (rev 17556)
+++ trunk/vorbis/lib/floor0.c	2010-10-21 18:33:59 UTC (rev 17557)
@@ -91,6 +91,7 @@
   for(j=0;j<info->numbooks;j++){
     info->books[j]=oggpack_read(opb,8);
     if(info->books[j]<0 || info->books[j]>=ci->books)goto err_out;
+    if(ci->book_param[info->books[j]]->maptype==0)goto err_out;
   }
   return(info);
 



More information about the commits mailing list