mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: Fix memory leak in phar_parse_zipfile() error handling
This commit is contained in:
@@ -674,7 +674,8 @@ foundit:
|
||||
}
|
||||
}
|
||||
|
||||
if (!entry.uncompressed_filesize || !actual_alias) {
|
||||
if (!entry.uncompressed_filesize) {
|
||||
efree(actual_alias);
|
||||
php_stream_filter_remove(filter, 1);
|
||||
zend_string_release_ex(entry.filename, entry.is_persistent);
|
||||
PHAR_ZIP_FAIL("unable to read in alias, truncated");
|
||||
@@ -707,7 +708,8 @@ foundit:
|
||||
}
|
||||
}
|
||||
|
||||
if (!entry.uncompressed_filesize || !actual_alias) {
|
||||
if (!entry.uncompressed_filesize) {
|
||||
efree(actual_alias);
|
||||
php_stream_filter_remove(filter, 1);
|
||||
zend_string_release_ex(entry.filename, entry.is_persistent);
|
||||
PHAR_ZIP_FAIL("unable to read in alias, truncated");
|
||||
@@ -730,7 +732,8 @@ foundit:
|
||||
}
|
||||
}
|
||||
|
||||
if (!entry.uncompressed_filesize || !actual_alias) {
|
||||
if (!entry.uncompressed_filesize) {
|
||||
efree(actual_alias);
|
||||
zend_string_release_ex(entry.filename, entry.is_persistent);
|
||||
PHAR_ZIP_FAIL("unable to read in alias, truncated");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user