summaryrefslogtreecommitdiff
path: root/floor1.c
diff options
context:
space:
mode:
Diffstat (limited to 'floor1.c')
-rw-r--r--floor1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/floor1.c b/floor1.c
index d721095..518f9f2 100644
--- a/floor1.c
+++ b/floor1.c
@@ -109,6 +109,7 @@ vorbis_info_floor *floor1_info_unpack (vorbis_info *vi,oggpack_buffer *opb){
count=0;
for(j=0,k=0;j<info->partitions;j++){
count+=info->class[info->partitionclass[j]].class_dim;
+ if(count>VIF_POSIT)goto err_out;
for(;k<count;k++){
int t=info->postlist[k+2]=oggpack_read(opb,rangebits);
if(t>=(1<<rangebits))goto err_out;