cvs: php-src(PHP_5_3) /ext/phar stream.c

From: Date: Fri, 18 Jul 2008 09:35:51 +0000
Subject: cvs: php-src(PHP_5_3) /ext/phar stream.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-51227@lists.php.net to get a copy of this message
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); }

« previous php.cvs (#51227) next »