#19685 [Bgs]: apache crash on imap_rfc822_parse_headers
| From: | sundaydriver at hushmail dot com | Date: | Thu, 03 Oct 2002 03:03:59 +0000 |
| Subject: | #19685 [Bgs]: apache crash on imap_rfc822_parse_headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21344@lists.php.net to get a copy of this message | ||
ID: 19685
User updated by: sundaydriver@hushmail.com
Reported By: sundaydriver@hushmail.com
Status: Bogus
Bug Type: IMAP related
Operating System: FreeBSD 4.5-RELEASE
PHP Version: 4.2.0
New Comment:
$msg = imap_fetchheader($imap_stream, $message_id);
$headers = imap_rfc822_parse_headers($msg);
I believe it is cause by a long recipient list (To field) wrapped many
times with a final address that looks like:
user@juno.com (Blah Blah))))
Looks like the extra parentheses (which have no previous matching
parentheses) cause the crash.
If the user grants us permission, I'll update this report to include
the
entire message.
Regards,
Brian Smith
VP, Engineering
Hush Communications Corporation
Got the user's permission. Here's the message. Will update this bug
after testing on most recent PHP.
Message that caused crash retrieved directly from Cyrus using FETCH
(rfc822) - reprinted with user's permission:
Return-Path: <cyrus@imap3.hushmail.com>
X-Sieve: cmu-sieve 2.0
Return-Path: <SLOLEYC@aol.com>
Received: from smtp2.hushmail.com (smtp2.hushmail.com [64.40.111.32])
by imap3.hushmail.com (Postfix) with ESMTP id 9CE5139416C
for <light2morocco_40hushmail_2ecom@imap3.hushmail.com>; Thu,
29 Aug 2002 13:13:11 -0700 (PDT)
Received: from imo-m05.mx.aol.com (imo-m05.mx.aol.com [64.12.136.8])
by smtp2.hushmail.com (Postfix) with ESMTP id 17E0A1A9C2
for <Light2Morocco@hushmail.com>; Thu, 29 Aug 2002 13:13:09
-0700 (PDT)
Received: from SLOLEYC@aol.com
by imo-m05.mx.aol.com (mail_out_v34.10.) id 9.113.168afbde
(30960);
Thu, 29 Aug 2002 16:03:44 -0400 (EDT)
From: SLOLEYC@aol.com
Message-ID: <113.168afbde.2a9fd81f@aol.com>
Date: Thu, 29 Aug 2002 16:03:43 EDT
Subject: Address Change
To: ArielGallop@aol.com, Dunesummer@aol.com, ILBAS@aol.com,
AFCowgirl04@aol.com, mgocio@scirex.com (Michele Gocio),
gracechurchalvin@hotmail.com (Adam Goren (E-mail),
txag99@hotmail.com (Adam Goren), Ty514@yahoo.com (Ty Griffin),
TamJoGross@aol.com, lhaines@saintdunstans.org,
Redeemerrat@aol.com,
GenMusic@aol.com, terryheatherhall@juno.com,
Spiritchic04@aol.com,
KHall95950@aol.com, Thundersoccer1606@yahoo.com (Nicole Hand),
jmhaney@prodigy.net (John Haney (E-mail), Othatmitzi@aol.com,
r_hatheway@juno.com (Richard Hatheway),
Richard_Hatheway@Dell.com (Richard Hatheway work),
tomstarla@paoline.com, MHangel@aol.com,
Thenry@houston.rr.com (Ted Henry),
homewardbound@sbcglobal.net,
LilC299@aol.com, TerTer40s@aol.com, mah@austin.rr.com (Mary
Ann),
scott@oax.com, joe@daystarideas.com, stmom2@juno.com (Candace
Ibbotson),
SIMDude32@aol.com, Frjpjameson@aol.com, JPJameson@aol.com,
Sharp1653@aol.com, KJJensen@austin.rr.com (Jason Jensen),
ewartj@rocketmail.com (Ewart Jones), AKeith1@aol.com,
jkeith@us.ibm.com (Joyce Keith), Lefty13Mel@aol.com,
Shell13Frog@aol.com, kentres@msn.com (Kelly Kent),
petekingsley@hotmail.com (Peter Kingsley),
newspk@ev1.net (Peggie Klema), mkorte@austin.rr.com (Karol
Korte),
Light2Morocco@Hushmail.com, sarah_monty@yahoo.com,
sarahdean@houston.rr.com, 2lawsons@seacove.net (Sandra
Lawson),
kari@orbitworld.net (Kari Lessner (E-mail),
karil@stjohns-laporte.org,
FrJimbo@msn.com (Jim Liberatore), ericliles@yahoo.com (Eric
Liles),
Eric@StMattsAustin.org (Eric Liles),
JSCLindstrom@prodigy.net (Susan Lindstrom),
simplistics@hotmail.com,
Nicloos@yahoo.com (Nicol Loos), dlugo@austin.rr.com (Debbie
Lugo),
hazel413@austin.rr.com (Jessica Lugo),
misa113@hotmail.com (Marisa Lugo), ETRIPP4@aol.com,
KirKir@juno.com (Kirsten Lynch), Rainbow88@juno.com (Mary
Lynch))))
Cc: vberry@stlukesonthelake.org (St Lukes EYC)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="part1_113.168afbde.2a9fd81f_boundary"
X-Mailer: AOL 6.0 for Windows US sub 10572
--part1_113.168afbde.2a9fd81f_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Hey Y'all!
St. Luke's has changed to a high speed interent system and we have new
addresses now!! So, effective immediately, please change my work
address, as
well as the EYC address, vberry@stlukesonthelake
Thanks so much,
Veta Berry
PS my personal email is still vetasings@yahoo.com
--part1_113.168afbde.2a9fd81f_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
<HTML><FONT FACE=arial,helvetica><FONT SIZE=2>Hey Y'all!
<BR>
<BR>St. Luke's has changed to a high speed interent system and we have
new addresses now!! So, effective immediately, please change my work
address, as well as the EYC address, vberry@stlukesonthelake
<BR>
<BR>Thanks so much,
<BR>
<BR>Veta Berry
<BR>
<BR>PS my personal email is still vetasings@yahoo.com</FONT></HTML>
--part1_113.168afbde.2a9fd81f_boundary--
Previous Comments:
------------------------------------------------------------------------
[2002-10-01 05:36:35] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2002-10-01 04:36:07] sundaydriver@hushmail.com
Code that caused crash:
$msg = imap_fetchheader($imap_stream, $message_id);
$headers = imap_rfc822_parse_headers($msg);
I believe it is cause by a long recipient list (To field) wrapped many
times with a final address that looks like:
user@juno.com (Blah Blah))))
Looks like the extra parentheses (which have no previous matching
parentheses) cause the crash.
If the user grants us permission, I'll update this report to include
the entire message.
Regards,
Brian Smith
VP, Engineering
Hush Communications Corporation
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19685&edit=1