com php-src: Fixed recently introduced memory leak: ext/phar/phar.c
| From: | Ferenc Kovacs | Date: | Wed, 15 Apr 2015 17:43:27 +0000 |
| Subject: | com php-src: Fixed recently introduced memory leak: ext/phar/phar.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86298@lists.php.net to get a copy of this message | ||
Commit: f251b16fccaa33c5ceb03811cc20b8b25737a1ee
Author: Dmitry Stogov <dmitry@zend.com> Tue, 14 Apr 2015 15:47:26 +0300
Committer: Ferenc Kovacs <tyrael@php.net> Wed, 15 Apr 2015 19:43:27 +0200
Parents: 5904e1e55e3a774dd8bea37b34ea6965bf2cdbf3
Branches: PHP-5.6.8
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f251b16fccaa33c5ceb03811cc20b8b25737a1ee
Log:
Fixed recently introduced memory leak
Changed paths:
M ext/phar/phar.c
Diff:
diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index 35dd839..2f2c4d3 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -1111,6 +1111,7 @@ static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len,
char
entry.metadata_len = 0;
}
if (len > endbuffer - buffer) {
+ pefree(entry.filename, entry.is_persistent);
MAPPHAR_FAIL("internal corruption of phar \"%s\" (truncated manifest
entry)");
}
if (phar_parse_metadata(&buffer, &entry.metadata, len TSRMLS_CC) == FAILURE) {