diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-25 02:24:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-03-25 02:24:32 +0100 |
commit | 48ee302e0fa84fe93855f81716cd2e27a8de9de7 (patch) | |
tree | 132fd0afb7d4c7049549ea5dea6426a251e79e7c /libavutil/log.c | |
parent | 628724b61d744738e21ada8341a282d6802625a3 (diff) | |
download | ffmpeg-48ee302e0fa84fe93855f81716cd2e27a8de9de7.tar.gz |
Fix apparently exploitable race condition.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.c')
-rw-r--r-- | libavutil/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/log.c b/libavutil/log.c index b3c935889a..abf939d65e 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -94,7 +94,8 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) { static int print_prefix=1; static int count; - static char line[1024], prev[1024]; + static char prev[1024]; + char line[1024]; static int is_atty; AVClass* avc= ptr ? *(AVClass**)ptr : NULL; if(level>av_log_level) |