Commit 8998caf0 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '77cf2366'

* commit '77cf2366':
  asfdec: alloc enough space for storing name in asf_read_metadata_obj
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents f4ce8cea 77cf2366
......@@ -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,
......
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