File php-CVE-2016-6297.patch of Package php7

Index: php-7.0.7/ext/zip/zip_stream.c
===================================================================
--- php-7.0.7.orig/ext/zip/zip_stream.c	2016-08-03 09:26:00.343421736 +0200
+++ php-7.0.7/ext/zip/zip_stream.c	2016-08-03 09:26:18.735699877 +0200
@@ -264,7 +264,7 @@ php_stream *php_stream_zip_opener(php_st
 											zend_string **opened_path,
 											php_stream_context *context STREAMS_DC)
 {
-	int path_len;
+       size_t path_len;
 
 	zend_string *file_basename;
 	char file_dirname[MAXPATHLEN];
@@ -272,7 +272,7 @@ php_stream *php_stream_zip_opener(php_st
 	struct zip *za;
 	struct zip_file *zf = NULL;
 	char *fragment;
-	int fragment_len;
+       size_t fragment_len;
 	int err;
 
 	php_stream *stream = NULL;
openSUSE Build Service is sponsored by