Skip to content
Snippets Groups Projects
Commit 55be1042 authored by Monty's avatar Monty
Browse files

The previous round of loosening the phrasebook checking to allow

playback of some older (pre-1.0) files removed an [implicit] check
against phrasebook dim being set to zero.  Reinstate as an explicit
check.



git-svn-id: https://svn.xiph.org/trunk/Tremor@17542 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent bbe63bb1
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,7 @@ vorbis_info_residue *res0_unpack(vorbis_info *vi,oggpack_buffer *opb){
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment