From 6545fae5c679e52bf0c2b017f5f97cd188a33096 Mon Sep 17 00:00:00 2001 From: Tim Terriberry Date: Thu, 21 Oct 2010 18:25:19 +0000 Subject: [PATCH] Port r17544 from Tremor. A guard conditional used > instead of >=. svn path=/trunk/vorbis/; revision=17556 --- lib/res0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/res0.c b/lib/res0.c index 8f14201..c9baca4 100644 --- a/lib/res0.c +++ b/lib/res0.c @@ -829,7 +829,7 @@ int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl, if(s==0){ /* fetch the partition word */ int temp=vorbis_book_decode(look->phrasebook,&vb->opb); - if(temp==-1 || temp>info->partvals)goto eopbreak; + if(temp==-1 || temp>=info->partvals)goto eopbreak; partword[l]=look->decodemap[temp]; if(partword[l]==NULL)goto errout; } -- 2.7.4