1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Fix stack leak in phpdbg

This commit is contained in:
Nikita Popov
2019-06-21 16:52:08 +02:00
parent a7bcfee9c9
commit 152ccfb08d
+8 -1
View File
@@ -1632,7 +1632,14 @@ int phpdbg_interactive(zend_bool allow_async_unsafe, char *input) /* {{{ */
sigio_watcher_start();
}
#endif
switch (ret = phpdbg_stack_execute(&stack, allow_async_unsafe)) {
zend_try {
ret = phpdbg_stack_execute(&stack, allow_async_unsafe);
} zend_catch {
phpdbg_stack_free(&stack);
zend_bailout();
} zend_end_try();
switch (ret) {
case FAILURE:
if (!(PHPDBG_G(flags) & PHPDBG_IS_STOPPING)) {
if (!allow_async_unsafe || phpdbg_call_register(&stack) == FAILURE) {