[xdebug-dev] xdebug xdebug/xdebug_handler_dbgp.c options.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 21 Feb 2006 22:25:21 +0100

Date: Tue Feb 21 22:25:21 CET 2006
User: Derick Rethans
Directory: xdebug

Log Message:
- Fixed memory overrun problem as we allocated too little pages for
  options.

Modified files:
           xdebug/xdebug_handler_dbgp.c (version: 1.83)

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- xdebug/xdebug_handler_dbgp.c:1.82 Tue Feb 21 19:43:17 2006 GMT
+++ xdebug/xdebug_handler_dbgp.c Tue Feb 21 20:25:21 2006 GMT
@@ -2016,7 +2016,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.82 $";
+ return "$Revision: 1.83 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
@@ -2112,7 +2112,7 @@
         options->max_data = 1024;
         options->max_depth = 1;
         options->show_hidden = 0;
- options->runtime = (xdebug_var_runtime_page*) xdmalloc(options->max_depth * sizeof(xdebug_var_runtime_page));
+ options->runtime = (xdebug_var_runtime_page*) xdmalloc((options->max_depth + 1) * sizeof(xdebug_var_runtime_page));
         for (i = 0; i < options->max_depth; i++) {
                 options->runtime[i].page = 0;
                 options->runtime[i].current_element_nr = 0;
Received on Tue Feb 21 2006 - 22:25:23 GMT

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