[FFmpeg-cvslog] avformat/mov: Clear array to prevent potential out of array read from av_dlog()
Michael Niedermayer
git at videolan.org
Tue Jan 6 15:28:41 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 6 05:54:29 2015 +0100| [62eafb6a0dd63b67d6a1cf66150df7b27a67c21c] | committer: Michael Niedermayer
avformat/mov: Clear array to prevent potential out of array read from av_dlog()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62eafb6a0dd63b67d6a1cf66150df7b27a67c21c
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list