Skip to content

Instantly share code, notes, and snippets.

/72520.diff Secret
Created Jul 13, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.