Browse code

Fix apparently exploitable race condition. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/03/25 10:24:32
Showing 1 changed files
... ...
@@ -94,7 +94,8 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
94 94
 {
95 95
     static int print_prefix=1;
96 96
     static int count;
97
-    static char line[1024], prev[1024];
97
+    static char prev[1024];
98
+    char line[1024];
98 99
     static int is_atty;
99 100
     AVClass* avc= ptr ? *(AVClass**)ptr : NULL;
100 101
     if(level>av_log_level)