com php-src: Fixed potential segfault in backtrace of internal funcs: phpdbg_frame.c
| From: | Bob Weinand | Date: | Fri, 17 Oct 2014 20:20:54 +0000 |
| Subject: | com php-src: Fixed potential segfault in backtrace of internal funcs: phpdbg_frame.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82553@lists.php.net to get a copy of this message | ||
Commit: 24972fa986f316bc64141f46ff37f1a33ae03624
Author: Bob Weinand <bobwei9@hotmail.com> Fri, 17 Oct 2014 22:20:54 +0200
Parents: f0e67720d4585f18130767b39501bd39de71acae
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24972fa986f316bc64141f46ff37f1a33ae03624
Log:
Fixed potential segfault in backtrace of internal funcs
Changed paths:
M phpdbg_frame.c
Diff:
diff --git a/phpdbg_frame.c b/phpdbg_frame.c
index 429061e..8baaf77 100644
--- a/phpdbg_frame.c
+++ b/phpdbg_frame.c
@@ -231,7 +231,7 @@ void phpdbg_dump_backtrace(size_t num TSRMLS_DC) /* {{{ */
phpdbg_out(" at %s:%ld\n", Z_STRVAL_PP(file), Z_LVAL_PP(line));
} else {
phpdbg_out(" => ");
- phpdbg_xml("<frame %r id=\"%d\" internal=\"internal\"", i,
Z_STRVAL_PP(file), Z_LVAL_PP(line));
+ phpdbg_xml("<frame %r id=\"%d\" internal=\"internal\"", i);
phpdbg_dump_prototype(tmp TSRMLS_CC);
phpdbg_out(" (internal function)\n");
}