com php-src: Fix segfault when cleaning without execution context: phpdbg.c
| From: | Bob Weinand | Date: | Mon, 27 Oct 2014 10:01:43 +0000 |
| Subject: | com php-src: Fix segfault when cleaning without execution context: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82692@lists.php.net to get a copy of this message | ||
Commit: 9139d031d8877f061f7cefafefa41260017e9563
Author: Bob Weinand <bobwei9@hotmail.com> Mon, 27 Oct 2014 11:01:43 +0100
Parents: 5e8359d360c668b5ca4f5b5dbb62e65b6e033f2c
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9139d031d8877f061f7cefafefa41260017e9563
Log:
Fix segfault when cleaning without execution context
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 02a9260..9c56b1d 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1466,7 +1466,7 @@ phpdbg_main:
if (exec) { /* set execution context */
PHPDBG_G(exec) = phpdbg_resolve_path(exec TSRMLS_CC);
- PHPDBG_G(exec_len) = strlen(PHPDBG_G(exec));
+ PHPDBG_G(exec_len) = strlen(exec);
free(exec);
exec = NULL;