mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fixed bug #71561 (NULL pointer dereference in Zip::ExtractTo)
This commit is contained in:
parent
5fdfab743d
commit
f45752eb83
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…
Reference in New Issue
Block a user