Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 56662f8135650f8f8f84b2c96c004eb0 > files > 11

php53-5.3.3-24.el5.src.rpm

--- 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);
 }
 /* }}} */