mirror of
https://github.com/php/php-src.git
synced 2026-04-15 03:51:07 +02:00
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Fixed recently introduced memory leak
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user