#45729 [NoF->Fbk]: Crash when fetching mails with long to-address field via pop3
| From: | pajoye@php.net | Date: | Thu, 30 Apr 2009 20:29:05 +0000 |
| Subject: | #45729 [NoF->Fbk]: Crash when fetching mails with long to-address field via pop3 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136610@lists.php.net to get a copy of this message | ||
ID: 45729
Updated by: pajoye@php.net
Reported By: kirsch at mediafinanz dot de
-Status: No Feedback
+Status: Feedback
Bug Type: IMAP related
Operating System: Windows
PHP Version: 5.2.6
-Assigned To:
+Assigned To: pajoye
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-08-15 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-08-07 09:52:08] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2008-08-06 09:37:37] kirsch at mediafinanz dot de
Description:
------------
When trying to receive a mail with a really long to-address field (e.g.
Spam with 276 receivers) over pop3, PHP crashes. But it seems that it
depends of the way I open the connection to the mailbox.
PHP crashes on long to-address mail if I use $mailbox =
imap_open('{mail.myserver.net:110/pop3/novalidate-cert}INBOX',
'php@myserver.net', 'mydamnsecretpassword');, but everything works fine
if I use $mailbox = imap_open('{mail.myserver.net:143}INBOX',
'php@myserver.net', 'mydamnsecretpassword');
Reproduce code:
---------------
//you'll need a mail with a lot of receivers for this test
$mailbox =
imap_open('{mail.myserver.net:110/pop3/novalidate-cert}INBOX',
'php@myserver.net', 'mydamnsecretpassword');
$check = imap_check($mailbox);
for ($i=1; $i <= $check->Nmsgs; $i++)
{
$uid = imap_uid($mailbox, $i);
echo 'UID: '.$uid;
$messageNumber = imap_msgno($mailbox, $uid);
echo 'MessageNo: '.$messageNumber;
$headerinfo = imap_headerinfo($mailbox, $messageNumber);
[...]
}
Expected result:
----------------
$headerinfo contains an stdObject with headerinformation, like it does
if it is a 'normal' mail
Actual result:
--------------
Crash with message 'This application has requested the Runtime to
terminiate it in an unusual way. Please contact the application's
support team for more information'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45729&edit=1