diff options
author | Alexandra Hájková <alexandra.khirnova@gmail.com> | 2015-09-02 14:27:42 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-09-06 20:48:36 +0200 |
commit | 77cf23668991bfd1fb69339f13e1511b4186b7b3 (patch) | |
tree | 4bc4a11c089474d428515e3a868ac95577edacd0 | |
parent | 7cad1bf0759ada2a1fc3e80bb232a5377dd4fda4 (diff) | |
download | ffmpeg-77cf23668991bfd1fb69339f13e1511b4186b7b3.tar.gz |
asfdec: alloc enough space for storing name in asf_read_metadata_obj
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavformat/asfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 4b04227a71..1790096d4f 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.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, |