iliaa           Sun Jul  4 12:53:02 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src    NEWS 
    /php-src/ext/imap   php_imap.c 
  Log:
  MFH: Fixed bug #28963 (Missing space for \0 in address allocation).
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.693&r2=1.1247.2.694&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.693 php-src/NEWS:1.1247.2.694
--- php-src/NEWS:1.1247.2.693   Wed Jun 30 15:53:13 2004
+++ php-src/NEWS        Sun Jul  4 12:53:01 2004
@@ -4,6 +4,7 @@
 - Updated PCRE to provide better error handling in certain cases. (Andrei)
 - NSAPI: added "bucket" parameter to list of non-php.ini-keys of php4_execute
   for doing performance stats without warnings in server-log. (Uwe Schindler)
+- Fixed bug #28963 (Missing space for \0 in address allocation). (Ilia)
 - Fixed bug #28897 (ibase: -1 returned as -0.000 for 64-bit scaled int). (Ard)
 - Fixed bug #28879 (Implicit/Explicit array creation inconsistency when using
   Resources, Arrays, or Objects as indices). (Sara)
http://cvs.php.net/diff.php/php-src/ext/imap/php_imap.c?r1=1.142.2.23&r2=1.142.2.24&ty=u
Index: php-src/ext/imap/php_imap.c
diff -u php-src/ext/imap/php_imap.c:1.142.2.23 php-src/ext/imap/php_imap.c:1.142.2.24
--- php-src/ext/imap/php_imap.c:1.142.2.23      Wed May 12 16:17:21 2004
+++ php-src/ext/imap/php_imap.c Sun Jul  4 12:53:02 2004
@@ -26,7 +26,7 @@
    | PHP 4.0 updates:  Zeev Suraski <[EMAIL PROTECTED]>                       |
    +----------------------------------------------------------------------+
  */
-/* $Id: php_imap.c,v 1.142.2.23 2004/05/12 20:17:21 iliaa Exp $ */
+/* $Id: php_imap.c,v 1.142.2.24 2004/07/04 16:53:02 iliaa Exp $ */
 
 #define IMAP41
 
@@ -3683,7 +3683,7 @@
        addresstmp = addresslist;
 
        if ((len = _php_imap_address_size(addresstmp))) {
-               tmpstr = (char *) malloc (len);
+               tmpstr = (char *) malloc(len + 1);
                tmpstr[0] = '\0';
                rfc822_write_address(tmpstr, addresstmp);
                *fulladdress = tmpstr;

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

Reply via email to