[xdebug-dev] xdebug xdebug/xdebug_var.c - Fixed a possible crash for when EG(function_table) = NULL.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Fri, 23 Mar 2007 19:37:23 +0100

Date: Fri Mar 23 19:37:23 CET 2007
User: Derick Rethans
Directory: xdebug

Log Message:
[0.05]
- Fixed a possible crash for when EG(function_table) = NULL.

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

[FILE: /xdebug/xdebug_var.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- xdebug/xdebug_var.c:1.84 Sun Jan 07 13:44:21 2007 GMT
+++ xdebug/xdebug_var.c Fri Mar 23 17:37:23 2007 GMT
@@ -1138,7 +1138,7 @@
                 case XFUNC_NORMAL: {
                         zend_function *zfunc;
 
- if (PG(html_errors) && zend_hash_find(EG(function_table), f.function, strlen(f.function) + 1, (void**) &zfunc) == SUCCESS) {
+ if (PG(html_errors) && EG(function_table) && zend_hash_find(EG(function_table), f.function, strlen(f.function) + 1, (void**) &zfunc) == SUCCESS) {
                                 if (html && zfunc->type == ZEND_INTERNAL_FUNCTION) {
                                         return xdebug_sprintf("<a href='%s/%s' target='_new'>%s</a>\n", XG(manual_url), f.function, f.function);
                                 } else {
Received on Fri Mar 23 2007 - 19:37:29 GMT

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