Limit stack size (#9104)

This commit is contained in:
Arnaud Le Blanc 2022-12-16 08:44:26 -08:00 committed by GitHub
parent dc54e04ed4
commit a11c8a3039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 1844 additions and 12 deletions

View file

@ -611,7 +611,7 @@ PHPDBG_API bool phpdbg_check_caught_ex(zend_execute_data *execute_data, zend_obj
uint32_t op_num, i;
zend_op_array *op_array = &execute_data->func->op_array;
if (execute_data->opline >= EG(exception_op) && execute_data->opline < EG(exception_op) + 3) {
if (execute_data->opline >= EG(exception_op) && execute_data->opline < EG(exception_op) + 3 && EG(opline_before_exception)) {
op = EG(opline_before_exception);
} else {
op = execute_data->opline;