File php-CVE-2015-4603.patch of Package php5.openSUSE_Leap_42.1_Update

http://git.php.net/?p=php-src.git;a=commitdiff;h=51856a76f87ecb24fe1385342be43610fb6c86e4
Index: Zend/zend_exceptions.c
===================================================================
--- Zend/zend_exceptions.c.orig	2015-06-18 16:37:05.694283761 +0200
+++ Zend/zend_exceptions.c	2015-06-18 16:38:26.414387032 +0200
@@ -591,6 +591,9 @@
 	str = &res;
 
 	trace = zend_read_property(default_exception_ce, getThis(), "trace", sizeof("trace")-1, 1 TSRMLS_CC);
+       if(Z_TYPE_P(trace) != IS_ARRAY) {
+               RETURN_FALSE;
+       }
 	zend_hash_apply_with_arguments(Z_ARRVAL_P(trace) TSRMLS_CC, (apply_func_args_t)_build_trace_string, 3, str, len, &num);
 
 	s_tmp = emalloc(1 + MAX_LENGTH_OF_LONG + 7 + 1);
openSUSE Build Service is sponsored by