[xiph-commits] r17558 - trunk/vorbis/lib
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Thu Oct 21 17:24:42 PDT 2010
Author: tterribe
Date: 2010-10-21 17:24:41 -0700 (Thu, 21 Oct 2010)
New Revision: 17558
Modified:
trunk/vorbis/lib/floor0.c
Log:
Port r17547 from Tremor.
Disallow books with dim<1 in floor0.
Modified: trunk/vorbis/lib/floor0.c
===================================================================
--- trunk/vorbis/lib/floor0.c 2010-10-21 18:33:59 UTC (rev 17557)
+++ trunk/vorbis/lib/floor0.c 2010-10-22 00:24:41 UTC (rev 17558)
@@ -92,6 +92,7 @@
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;
+ if(ci->book_param[info->books[j]]->dim<1)goto err_out;
}
return(info);
More information about the commits
mailing list