mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
10l (use of deallocated memory)
Originally committed as revision 3936 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8d65750ef1
commit
db2fcbbdb3
@ -634,10 +634,16 @@ static int flac_decode_frame(AVCodecContext *avctx,
|
|||||||
if(metadata_size){
|
if(metadata_size){
|
||||||
switch(metadata_type)
|
switch(metadata_type)
|
||||||
{
|
{
|
||||||
case METADATA_TYPE_STREAMINFO:
|
case METADATA_TYPE_STREAMINFO:{
|
||||||
|
int bits_count= get_bits_count(&s->gb);
|
||||||
|
|
||||||
metadata_streaminfo(s);
|
metadata_streaminfo(s);
|
||||||
|
buf= &s->bitstream[s->bitstream_index];
|
||||||
|
init_get_bits(&s->gb, buf, buf_size*8);
|
||||||
|
skip_bits(&s->gb, bits_count);
|
||||||
|
|
||||||
dump_headers(s);
|
dump_headers(s);
|
||||||
break;
|
break;}
|
||||||
default:
|
default:
|
||||||
for(i=0; i<metadata_size; i++)
|
for(i=0; i<metadata_size; i++)
|
||||||
skip_bits(&s->gb, 8);
|
skip_bits(&s->gb, 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user