Skip to content

Commit

Permalink
Avoid NULL dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jan 13, 2017
1 parent 141d1ba commit 1a8ad8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,9 @@ ZEND_API zval *zend_get_zval_ptr(int op_type, const znode_op *node, const zend_e

ZEND_API void ZEND_FASTCALL zend_check_internal_arg_type(zend_function *zf, uint32_t arg_num, zval *arg)
{
zend_verify_arg_type(zf, arg_num, arg, NULL, NULL);
void *dummy_cache_slot = NULL;

zend_verify_arg_type(zf, arg_num, arg, NULL, &dummy_cache_slot);
}

ZEND_API int ZEND_FASTCALL zend_check_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value, void **cache_slot)
Expand Down

0 comments on commit 1a8ad8a

Please sign in to comment.