From: Xinchen Hui Date: Thu, 18 Jun 2015 11:56:08 +0000 (+0800) Subject: Fixed Conditional jump or move depends on uninitialised value(s) X-Git-Tag: php-7.0.0alpha2~2^2~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509d75527afc2179e7fef478d6a60b8fbb567dd5;p=php Fixed Conditional jump or move depends on uninitialised value(s) reproduced by Bug #69868's test script --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index b5becb88e0..0baf735bda 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -4406,7 +4406,13 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */ opline->op2.num = -1; } } - } + } else { + if (opline->opcode == ZEND_RECV_INIT) { + Z_CACHE_SLOT(op_array->literals[opline->op2.constant]) = -1; + } else { + opline->op2.num = -1; + } + } } /* These are assigned at the end to avoid unitialized memory in case of an error */