diff options
author | Monty <xiphmont@xiph.org> | 2010-10-18 09:52:01 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2010-10-18 09:52:01 +0000 |
commit | 55be1042f93493112e984c8cecf03613c84e5876 (patch) | |
tree | 0a701b382e2183c9092d2e49036e0b3a9580c429 | |
parent | bbe63bb1e8faf60e1b89d2e9ca2aa9872f47ffe7 (diff) | |
download | tremor-55be1042f93493112e984c8cecf03613c84e5876.tar.gz |
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
-rw-r--r-- | res012.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |