dmitry Fri Jul 18 09:35:51 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/phar stream.c
Log:
Fixed access to freed memory
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/stream.c?r1=1.27.2.8&r2=1.27.2.9&diff_format=u
Index: php-src/ext/phar/stream.c
diff -u php-src/ext/phar/stream.c:1.27.2.8 php-src/ext/phar/stream.c:1.27.2.9
--- php-src/ext/phar/stream.c:1.27.2.8 Thu Jul 10 16:16:15 2008
+++ php-src/ext/phar/stream.c Fri Jul 18 09:35:51 2008
@@ -347,10 +347,11 @@
static int phar_stream_close(php_stream *stream, int close_handle TSRMLS_DC)
/* {{{ */
{
phar_entry_info *entry = ((phar_entry_data
*)stream->abstract)->internal_file;
+ int is_temp_dir = entry->is_temp_dir;
phar_entry_delref((phar_entry_data *)stream->abstract TSRMLS_CC);
- if (entry->is_temp_dir) {
+ if (is_temp_dir) {
/* phar archive stub, free it */
efree(entry);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php