summaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-06 05:54:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 15:07:50 +0100
commit62eafb6a0dd63b67d6a1cf66150df7b27a67c21c (patch)
tree17b28f10a76dd0ce3310710c63c1d1d8bac9fa0d /libavformat/mov.c
parent145a84717b62e086cdb5f26649ad9f1b51ef38d0 (diff)
downloadffmpeg-streaming-62eafb6a0dd63b67d6a1cf66150df7b27a67c21c.zip
ffmpeg-streaming-62eafb6a0dd63b67d6a1cf66150df7b27a67c21c.tar.gz
avformat/mov: Clear array to prevent potential out of array read from av_dlog()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index a157d60..e90bfd2 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -380,7 +380,7 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
// worst-case requirement for output string in case of utf8 coded input
str_size_alloc = (raw ? str_size : str_size * 2) + 1;
- str = av_malloc(str_size_alloc);
+ str = av_mallocz(str_size_alloc);
if (!str)
return AVERROR(ENOMEM);
OpenPOWER on IntegriCloud