[xiph-commits] r17554 - trunk/vorbis/lib
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Thu Oct 21 11:09:29 PDT 2010
Author: tterribe
Date: 2010-10-21 11:09:29 -0700 (Thu, 21 Oct 2010)
New Revision: 17554
Modified:
trunk/vorbis/lib/res0.c
Log:
Port r17542 from Tremor.
Reinstate an explicit check against phrasebook dim being set to zero.
Modified: trunk/vorbis/lib/res0.c
===================================================================
--- trunk/vorbis/lib/res0.c 2010-10-21 17:54:26 UTC (rev 17553)
+++ trunk/vorbis/lib/res0.c 2010-10-21 18:09:29 UTC (rev 17554)
@@ -250,6 +250,7 @@
int entries = ci->book_param[info->groupbook]->entries;
int dim = ci->book_param[info->groupbook]->dim;
int partvals = 1;
+ if (dim<1) goto errout;
while(dim>0){
partvals *= info->partitions;
if(partvals > entries) goto errout;
More information about the commits
mailing list