summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--floor1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/floor1.c b/floor1.c
index fe4de84..33c2602 100644
--- a/floor1.c
+++ b/floor1.c
@@ -137,6 +137,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[(int)info->partitionclass[j]].class_dim;
+ if(count>VIF_POSIT)goto err_out;
for(;k<count;k++){
int t=info->postlist[k+2]=(ogg_uint16_t)oggpack_read(opb,rangebits);
if(t>=(1<<rangebits))goto err_out;