com php-src: Fixed bug (segfault due to retval is not initialized): NEWS ext/session/mod_user.c
| From: | Xinchen Hui | Date: | Tue, 14 Aug 2012 16:44:47 +0000 |
| Subject: | com php-src: Fixed bug (segfault due to retval is not initialized): NEWS ext/session/mod_user.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-69833@lists.php.net to get a copy of this message | ||
Commit: a5a409ebff1037f4b00fdf6d46dd61c72cb6d315
Author: Xinchen Hui <laruence@php.net> Wed, 15 Aug 2012 00:44:47 +0800
Parents: e1c610fb44385cd2894be1957cc32f7cccc4b476
Branches: PHP-5.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a5a409ebff1037f4b00fdf6d46dd61c72cb6d315
Log:
Fixed bug (segfault due to retval is not initialized)
Changed paths:
M NEWS
M ext/session/mod_user.c
Diff:
diff --git a/NEWS b/NEWS
index 985e274..c7afe53 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,9 @@ PHP NEWS
. Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong
result). (Laruence)
+- Session:
+ . Fixed bug (segfault due to retval is not initialized). (Laruence)
+
- SPL:
. Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance
gives Segmentation fault). (Laruence, Gustavo)
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c
index 17af624..c187e26 100644
--- a/ext/session/mod_user.c
+++ b/ext/session/mod_user.c
@@ -63,7 +63,7 @@ static zval *ps_call_handler(zval *func, int argc, zval **argv TSRMLS_DC)
}
#define STDVARS1 \
- zval *retval; \
+ zval *retval = NULL; \
int ret = FAILURE
#define STDVARS \