com php-src: Fixed segfault: ext/zlib/zlib.c
| From: | Xinchen Hui | Date: | Fri, 15 May 2015 16:33:49 +0000 |
| Subject: | com php-src: Fixed segfault: ext/zlib/zlib.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86776@lists.php.net to get a copy of this message | ||
Commit: 2eab211379d7a7be0c9fd0d9f1207c3c8660612b
Author: Xinchen Hui <laruence@php.net> Sat, 16 May 2015 00:33:49 +0800
Parents: 249d4c7fdb00d583d4e2b41381df94b62bb16f05
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2eab211379d7a7be0c9fd0d9f1207c3c8660612b
Log:
Fixed segfault
Changed paths:
M ext/zlib/zlib.c
Diff:
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 31fe18d..f3d51a4 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -827,7 +827,7 @@ PHP_FUNCTION(inflate_init)
zend_long encoding, window = 15;
char *dict = NULL;
size_t dictlen = 0;
- HashTable *options;
+ HashTable *options = NULL;
zval *option_buffer;
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|H", &encoding,
&options)) {
@@ -997,7 +997,7 @@ PHP_FUNCTION(deflate_init)
zend_long encoding, level = -1, memory = 8, window = 15, strategy = Z_DEFAULT_STRATEGY;
char *dict = NULL;
size_t dictlen = 0;
- HashTable *options = 0;
+ HashTable *options = NULL;
zval *option_buffer;
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|H", &encoding,
&options)) {