summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/res012.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/res012.c')
-rw-r--r--apps/codecs/libtremor/res012.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/codecs/libtremor/res012.c b/apps/codecs/libtremor/res012.c
index a60cf7fa1e..bcddf97640 100644
--- a/apps/codecs/libtremor/res012.c
+++ b/apps/codecs/libtremor/res012.c
@@ -109,8 +109,10 @@ static vorbis_info_residue *res0_unpack(vorbis_info *vi,oggpack_buffer *opb){
109 info->booklist[j]=oggpack_read(opb,8); 109 info->booklist[j]=oggpack_read(opb,8);
110 110
111 if(info->groupbook>=ci->books)goto errout; 111 if(info->groupbook>=ci->books)goto errout;
112 for(j=0;j<acc;j++) 112 for(j=0;j<acc;j++){
113 if(info->booklist[j]>=ci->books)goto errout; 113 if(info->booklist[j]>=ci->books)goto errout;
114 if(ci->book_param[info->booklist[j]]->maptype==0)goto errout;
115 }
114 116
115 /* verify the phrasebook is not specifying an impossible or 117 /* verify the phrasebook is not specifying an impossible or
116 inconsistent partitioning scheme. */ 118 inconsistent partitioning scheme. */