From 4ae8c38385b5ce23b0471b9fde10a8a4e542ce70 Mon Sep 17 00:00:00 2001 From: Monty Date: Sat, 23 Jun 2007 06:42:39 +0000 Subject: [PATCH] ...if we're going to verify against minimum legal blocksize, we really ought to verify against maximum too. svn path=/trunk/vorbis/; revision=13179 --- lib/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/info.c b/lib/info.c index f6cf568..4e9dfe9 100644 --- a/lib/info.c +++ b/lib/info.c @@ -222,7 +222,8 @@ static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ if(vi->channels<1)goto err_out; if(ci->blocksizes[0]<64)goto err_out; if(ci->blocksizes[1]blocksizes[0])goto err_out; - + if(ci->blocksizes[1]>8192)goto err_out; + if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */ return(0); -- 2.7.4