Skip to content

Instantly share code, notes, and snippets.

/72520.diff Secret

Created July 13, 2016 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f4bc6912ba9c2144f83032ca769f7d2b to your computer and use it in GitHub Desktop.
Save anonymous/f4bc6912ba9c2144f83032ca769f7d2b to your computer and use it in GitHub Desktop.
Patch for 72520
commit 81406c0c1d45f75fcc7972ed974d2597abb0b9e9
Author: Stanislav Malyshev <stas@php.net>
Date: Tue Jul 12 22:03:40 2016 -0700
Fix fir bug #72520
diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c
index 400edd6..a9192d2 100644
--- a/ext/zip/zip_stream.c
+++ b/ext/zip/zip_stream.c
@@ -241,7 +241,7 @@ php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper,
char **opened_path,
php_stream_context *context STREAMS_DC TSRMLS_DC)
{
- int path_len;
+ size_t path_len;
char *file_basename;
size_t file_basename_len;
@@ -250,7 +250,7 @@ php_stream *php_stream_zip_opener(php_stream_wrapper *wrapper,
struct zip *za;
struct zip_file *zf = NULL;
char *fragment;
- int fragment_len;
+ size_t fragment_len;
int err;
php_stream *stream = NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment