Browse Source

- fix Fixed NULL pointer dereference in ZipArchive::getArchiveComment, (CVE-2010-3709), report&patch from Maksymilian Arciemowicz

experimental/with_scalar_types
Pierre Joye 15 years ago
parent
commit
defd00ab01
  1. 3
      ext/zip/php_zip.c

3
ext/zip/php_zip.c

@ -1974,6 +1974,9 @@ static ZIPARCHIVE_METHOD(getArchiveComment)
}
comment = zip_get_archive_comment(intern, &comment_len, (int)flags);
if(comment==NULL) {
RETURN_FALSE;
}
RETURN_STRINGL((char *)comment, (long)comment_len, 1);
}
/* }}} */

Loading…
Cancel
Save