From 44fa751aca05f2b646cdde86658a9c0a3f1eb7f4 Mon Sep 17 00:00:00 2001 From: Monty Date: Wed, 20 Jun 2007 22:06:55 +0000 Subject: [PATCH] Correct a bug where the guard code is allowing illegally small blocksizes. svn path=/trunk/vorbis/; revision=13149 --- lib/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/info.c b/lib/info.c index 69a5d18..9ec886b 100644 --- a/lib/info.c +++ b/lib/info.c @@ -211,7 +211,7 @@ static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ if(vi->rate<1)goto err_out; if(vi->channels<1)goto err_out; - if(ci->blocksizes[0]<8)goto err_out; + if(ci->blocksizes[0]<64)goto err_out; if(ci->blocksizes[1]blocksizes[0])goto err_out; if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */ -- 2.7.4