mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed bug #71561 (NULL pointer dereference in Zip::ExtractTo)
This commit is contained in:
parent
5fdfab743d
commit
f45752eb83
2 changed files with 4 additions and 1 deletions
3
NEWS
3
NEWS
|
@ -20,6 +20,9 @@ PHP NEWS
|
|||
- Standard:
|
||||
. Fixed bug #70720 (strip_tags improper php code parsing). (Julien)
|
||||
|
||||
- Zip:
|
||||
. Fixed bug #71561 (NULL pointer dereference in Zip::ExtractTo). (Laruence)
|
||||
|
||||
04 Feb 2016, PHP 5.6.18
|
||||
|
||||
- Core:
|
||||
|
|
|
@ -2713,7 +2713,7 @@ static ZIPARCHIVE_METHOD(extractTo)
|
|||
|
||||
for (i = 0; i < filecount; i++) {
|
||||
char *file = (char*)zip_get_name(intern, i, ZIP_FL_UNCHANGED);
|
||||
if (!php_zip_extract_file(intern, pathto, file, strlen(file) TSRMLS_CC)) {
|
||||
if (!file || !php_zip_extract_file(intern, pathto, file, strlen(file) TSRMLS_CC)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue