Commit 77cf2366 authored by Alexandra Hájková's avatar Alexandra Hájková Committed by Luca Barbato

asfdec: alloc enough space for storing name in asf_read_metadata_obj

Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 7cad1bf0
......@@ -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