1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00

Fix nullptr dereference in clean without exec context

This commit is contained in:
Bob Weinand
2014-10-26 10:48:45 +01:00
parent 65eaab52b6
commit 1ff04117c3

View File

@@ -1320,7 +1320,10 @@ void phpdbg_clean(zend_bool full TSRMLS_DC) /* {{{ */
}
if (full) {
phpdbg_exec = strdup(PHPDBG_G(exec)); /* preserve exec, don't reparse that from cmd */
if (PHPDBG_G(exec)) {
phpdbg_exec = strdup(PHPDBG_G(exec)); /* preserve exec, don't reparse that from cmd */
}
PHPDBG_G(flags) |= PHPDBG_IS_CLEANING;
zend_bailout();