Commit 44fa751a authored by Monty's avatar Monty

Correct a bug where the guard code is allowing illegally small blocksizes.


svn path=/trunk/vorbis/; revision=13149
parent 9917d2c8
......@@ -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]<ci->blocksizes[0])goto err_out;
if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment