mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix GH-14603: invalid null zip file entry.
close GH-14610
This commit is contained in:
4
NEWS
4
NEWS
@@ -2,6 +2,10 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.2.22
|
||||
|
||||
- Phar:
|
||||
. Fixed bug GH-14603 (null string from zip entry).
|
||||
(David Carlier)
|
||||
|
||||
- PHPDBG:
|
||||
. Fixed bug GH-14596 (crashes with ASAN and ZEND_RC_DEBUG=1).
|
||||
(David Carlier)
|
||||
|
||||
BIN
ext/phar/tests/gh14603.phpt
Normal file
BIN
ext/phar/tests/gh14603.phpt
Normal file
Binary file not shown.
@@ -771,7 +771,7 @@ foundit:
|
||||
}
|
||||
}
|
||||
|
||||
zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), actual_alias, mydata->alias_len, mydata);
|
||||
zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, mydata);
|
||||
mydata->alias = pestrndup(alias, alias_len, mydata->is_persistent);
|
||||
mydata->alias_len = alias_len;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user