Fix use-of-uninitialized-value in start_fake_frame

Closes GH-11732
This commit is contained in:
Ilija Tovilo 2023-07-17 22:30:10 +02:00
parent 94127c53aa
commit ed27d70d9a
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -897,6 +897,8 @@ cleanup_args:
}
if (UNEXPECTED(ZEND_CALL_INFO(call) & ZEND_CALL_MAY_HAVE_UNDEF)) {
/* zend_handle_undef_args assumes prev_execute_data is initialized. */
call->prev_execute_data = NULL;
if (zend_handle_undef_args(call) == FAILURE) {
zend_vm_stack_free_args(call);
zend_vm_stack_free_call_frame(call);