diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-25 02:24:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-26 12:28:46 +0200 |
commit | 36f3244ec86f27950ef3ca6ac238442c49eaaa75 (patch) | |
tree | d5fb44c2a12509af25852c475c901b8f202dd5dd | |
parent | 553ae88b2eae53336c859e482d15a0b9a4a11ed0 (diff) | |
download | ffmpeg-36f3244ec86f27950ef3ca6ac238442c49eaaa75.tar.gz |
Fix apparently exploitable race condition.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 9a8b66ee4d..b08072cd7b 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -59,7 +59,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 const uint8_t color[]={0x41,0x41,0x11,0x03,9,9,9}; AVClass* avc= ptr ? *(AVClass**)ptr : NULL; if(level>av_log_level) |