[xdebug-dev] xdebug xdebug/xdebug.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 28 Nov 2004 20:34:19 +0100

Date: Sun Nov 28 20:34:18 CET 2004
User: Derick Rethans
Directory: xdebug

Log Message:
- Fixed bug #101: crash with set_exeception_handler() and uncatched exceptions.

Modified files:
           xdebug/xdebug.c (version: 1.253)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.252
retrieving revision 1.253
diff -u -r1.252 -r1.253
--- xdebug/xdebug.c:1.252 Fri Nov 05 12:12:09 2004 GMT
+++ xdebug/xdebug.c Sun Nov 28 18:34:18 2004 GMT
@@ -851,7 +851,9 @@
         } else {
                 if (EG(opline_ptr)) {
                         cur_opcode = *EG(opline_ptr);
- tmp->lineno = cur_opcode->lineno;
+ if (cur_opcode) {
+ tmp->lineno = cur_opcode->lineno;
+ }
                 }
                 if (XG(collect_params)) {
                         tmp->var = xdmalloc(arg_count * sizeof (xdebug_var));
Received on Sun Nov 28 2004 - 20:34:22 GMT

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