[FFmpeg-cvslog] avformat/nutdec: Fix use of uinitialized value

Michael Niedermayer git at videolan.org
Sat May 16 00:16:16 CEST 2015


ffmpeg | branch: release/2.6 | Michael Niedermayer <michaelni at gmx.at> | Tue May 12 18:20:23 2015 +0200| [75b21eb8f8c9aa16f40271b7e758f80ccb06f238] | committer: Michael Niedermayer

avformat/nutdec: Fix use of uinitialized value

Fixes CID1041175

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 56abf35151c635caa3eb04bbb90454bae5463a09)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/nutdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 6808f35..38c9851 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -524,6 +524,8 @@ static int decode_info_header(NUTContext *nut)
     for (i = 0; i < count; i++) {
         get_str(bc, name, sizeof(name));
         value = get_s(bc);
+        str_value[0] = 0;
+
         if (value == -1) {
             type = "UTF-8";
             get_str(bc, str_value, sizeof(str_value));



More information about the ffmpeg-cvslog mailing list