Commit 4ae8c383 authored by Monty's avatar Monty

...if we're going to verify against minimum legal blocksize, we really

ought to verify against maximum too.


svn path=/trunk/vorbis/; revision=13179
parent 32939197
......@@ -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]<ci->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);
......
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