tony2001                Thu Dec  9 03:24:33 2004 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src/ext/mysqli mysqli.c 
  Log:
  MFH: buffer overrun & debug printf()
  
  
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli.c?r1=1.43.2.8&r2=1.43.2.9&ty=u
Index: php-src/ext/mysqli/mysqli.c
diff -u php-src/ext/mysqli/mysqli.c:1.43.2.8 
php-src/ext/mysqli/mysqli.c:1.43.2.9
--- php-src/ext/mysqli/mysqli.c:1.43.2.8        Sat Dec  4 04:01:33 2004
+++ php-src/ext/mysqli/mysqli.c Thu Dec  9 03:24:33 2004
@@ -15,7 +15,7 @@
   | Author: Georg Richter <[EMAIL PROTECTED]>                                |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli.c,v 1.43.2.8 2004/12/04 09:01:33 georg Exp $ 
+  $Id: mysqli.c,v 1.43.2.9 2004/12/09 08:24:33 tony2001 Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -108,7 +108,6 @@
 /* {{{ php_clear_mysql */
 void php_clear_mysql(MY_MYSQL *mysql) {
        if (mysql->li_read) {
-               printf("freeing...\n");
                efree(Z_STRVAL_P(mysql->li_read));
                FREE_ZVAL(mysql->li_read);
                mysql->li_read = NULL;
@@ -919,12 +918,10 @@
        data= (mysqli_local_infile *)ptr;
 
        if (!(mysql = data->userdata)) {
-               efree(data);
                return;
        }
 
        php_stream_close(mysql->li_stream);
-       //efree(data);
        return; 
 }
 /* }}} */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to