[xdebug-dev] xdebug xdebug/xdebug_var.c - Prevent accessing 0x0 vars.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 14 Jun 2005 09:37:32 +0200

Date: Tue Jun 14 09:37:32 CEST 2005
User: Derick Rethans
Directory: xdebug

Log Message:
[0.05]
- Prevent accessing 0x0 vars.

Modified files:
           xdebug/xdebug_var.c (version: 1.58)

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- xdebug/xdebug_var.c:1.57 Tue Feb 01 00:28:39 2005 GMT
+++ xdebug/xdebug_var.c Tue Jun 14 05:37:32 2005 GMT
@@ -167,6 +167,9 @@
         char* tmp_str;
         int tmp_len;
 
+ if (!struc) {
+ return;
+ }
         if (debug_zval) {
                 xdebug_str_add(str, xdebug_sprintf("(refcount=%d, is_ref=%d),", (*struc)->refcount, (*struc)->is_ref), 1);
         }
Received on Tue Jun 14 2005 - 09:37:51 BST

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