--- php-5.3.2/ext/zip/php_zip.c.cve3709 +++ php-5.3.2/ext/zip/php_zip.c @@ -1961,6 +1961,9 @@ static ZIPARCHIVE_METHOD(getArchiveComme } comment = zip_get_archive_comment(intern, &comment_len, (int)flags); + if(comment==NULL) { + RETURN_FALSE; + } RETURN_STRINGL((char *)comment, (long)comment_len, 1); } /* }}} */