[FFmpeg-cvslog] lavf/matroskaenc: fix uninitialized read

Rodger Combs git at videolan.org
Wed Nov 2 09:25:48 EET 2016


ffmpeg | branch: master | Rodger Combs <rodger.combs at gmail.com> | Thu Oct 27 01:09:23 2016 -0500| [be28ce210d5674603838e67509fc597f30c1bb1c] | committer: Rodger Combs

lavf/matroskaenc: fix uninitialized read

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be28ce210d5674603838e67509fc597f30c1bb1c
---

 libavformat/matroskaenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 5704119..56174ff 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1547,7 +1547,7 @@ static int mkv_write_attachments(AVFormatContext *s)
 
     mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
     if (!mkv->attachments)
-        return ret;
+        return AVERROR(ENOMEM);
 
     av_lfg_init(&c, av_get_random_seed());
 



More information about the ffmpeg-cvslog mailing list