[xdebug-dev] svn: /xdebug/trunk/ xdebug.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 07 Aug 2010 15:56:59 +0000

derick Sat, 07 Aug 2010 15:56:59 +0000

Revision: http://svn.xdebug.org/cgi-bin/viewvc.cgi?view=rev&revision=3336&root=xdebug

Log:
- Fixed a segfault that could occur when a statement was called, without some sort
  of stack.

Changed paths:
    U xdebug/trunk/xdebug.c

Modified: xdebug/trunk/xdebug.c
===================================================================
--- xdebug/trunk/xdebug.c 2010-08-06 23:53:33 UTC (rev 3335)
+++ xdebug/trunk/xdebug.c 2010-08-07 15:56:59 UTC (rev 3336)
@@ -1692,6 +1692,10 @@
         int level = 0;
         TSRMLS_FETCH();

+ if (!EG(current_execute_data)) {
+ return;
+ }
+
         lineno = EG(current_execute_data)->opline->lineno;

         file = op_array->filename;
Received on Sat Aug 07 2010 - 16:56:59 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST