Merge commit '77cf23668991bfd1fb69339f13e1511b4186b7b3'

* commit '77cf23668991bfd1fb69339f13e1511b4186b7b3':
  asfdec: alloc enough space for storing name in asf_read_metadata_obj

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
pull/148/head
Hendrik Leppkes 10 years ago
commit 8998caf0a4
  1. 2
      libavformat/asfdec_o.c

@ -583,7 +583,7 @@ static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
break;
type = avio_rl16(pb);
val_len = avio_rl32(pb);
name = av_malloc(name_len);
name = av_malloc(buflen);
if (!name)
return AVERROR(ENOMEM);
avio_get_str16le(pb, name_len, name,

Loading…
Cancel
Save