ID: 19280
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: IMAP related
Operating System: RedHat 7.3, 2.4.19
PHP Version: 4CVS-2002-09-07
New Comment:
If I edit ext/imap/php_imap.c in the function _php_imap_parse_address()
and comment the call to rfc822_write_address(tmpstr, addresstmp) on
line 3583, then php does not crash. If I modify line 3581 to allocate
more space so that it becomes
tmpstr = (char *) malloc (len + 2048);
not only does php not crash, the call to imap_headerinfo() works.
The kludge in _php_imap_get_address_size() that simply adds MAILTMPLEN
(defined as 1024 in c-client/mail.h) characters to the length of all of
the text is not enough when there is a large number of addresses.
Additional length should be calculated as the product of the total
number of addresses and the maximum number of additional characters per
address that could be expected to be added during a call to
rfc822_write_address().
Previous Comments:
------------------------------------------------------------------------
[2002-09-26 10:28:06] [EMAIL PROTECTED]
The same failure behavior is exhibited with the latest snapshot
php4-200209260600.
------------------------------------------------------------------------
[2002-09-19 09:01:40] [EMAIL PROTECTED]
The same imap_header() problem appears to happen when compiled with
imap-2002.RC6. I downloaded php4-200209190300. Using the same compile
options as for php4-200209070600 causes Apache to hang when the module
is loaded. So, I'm not able to test the latest snapshot. I may try,
again, later today in case it is fixed.
------------------------------------------------------------------------
[2002-09-18 21:38:46] [EMAIL PROTECTED]
Sorry my time has disappeared rather quickly in the last few weeks.
I'll try to get to this soon, but don't hold your breath. Leaving
open.
------------------------------------------------------------------------
[2002-09-18 12:27:39] [EMAIL PROTECTED]
zefef
------------------------------------------------------------------------
[2002-09-17 20:51:04] [EMAIL PROTECTED]
Is that the sound of crickets chirping in the background that I hear?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19280
--
Edit this bug report at http://bugs.php.net/?id=19280&edit=1