avformat/nutdec: Fix use of uinitialized value
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 12 May 2015 16:20:23 +0000 (18:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 1 Jun 2015 21:25:20 +0000 (23:25 +0200)
Fixes CID1041175

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutdec.c

index d56c4a5..6fff2bb 100644 (file)
@@ -540,6 +540,8 @@ static int decode_info_header(NUTContext *nut)
             return ret;
         }
         value = get_s(bc);
+        str_value[0] = 0;
+
         if (value == -1) {
             type = "UTF-8";
             get_str(bc, str_value, sizeof(str_value));