Browse Source

Fix nullptr dereference in clean without exec context

pull/883/head
Bob Weinand 11 years ago
parent
commit
69bc61de41
  1. 5
      sapi/phpdbg/phpdbg_prompt.c

5
sapi/phpdbg/phpdbg_prompt.c

@ -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();

Loading…
Cancel
Save