1 |
slords |
1.2 |
|
2 |
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-2950 |
3 |
|
|
|
4 |
|
|
http://svn.php.net/viewvc?view=revision&revision=302565 |
5 |
|
|
|
6 |
|
|
--- php-5.3.3/ext/phar/stream.c.cve2950 |
7 |
|
|
+++ php-5.3.3/ext/phar/stream.c |
8 |
|
|
@@ -470,7 +470,7 @@ static int phar_stream_flush(php_stream |
9 |
|
|
if (stream->mode[0] == 'w' || (stream->mode[0] == 'r' && stream->mode[1] == '+')) { |
10 |
|
|
ret = phar_flush(((phar_entry_data *)stream->abstract)->phar, 0, 0, 0, &error TSRMLS_CC); |
11 |
|
|
if (error) { |
12 |
|
|
- php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS TSRMLS_CC, error); |
13 |
|
|
+ php_stream_wrapper_log_error(stream->wrapper, REPORT_ERRORS TSRMLS_CC, "%s", error); |
14 |
|
|
efree(error); |
15 |
|
|
} |
16 |
|
|
return ret; |