提交 8998caf0 编写于 作者: H Hendrik Leppkes

Merge commit '77cf2366'

* commit '77cf2366':
  asfdec: alloc enough space for storing name in asf_read_metadata_obj
Merged-by: NHendrik Leppkes <h.leppkes@gmail.com>
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册