Subject: | infinite loop caused by malformed header |
Date: | Tue, 27 Nov 2007 14:42:40 -0800 |
To: | bug-Mail-Box [...] rt.cpan.org |
From: | Jason He <jhe [...] proofpoint.com> |
Hi,
We noticed that Mail::Message::Field::Structured::parse() function can
get into an infinite loop when parsing a malformed email header (missing
end quote) like the one below:
Content-Disposition: attachment;
filename="Movie_0074.mpeg.pif
The loop is in the second while() loop of parse(). Because of the
missing end quote, both consumePhrase() and consumeComment(), which are
implemented in Mail::Message::Field::Full, consume nothing.
Thank you for looking into this issue.
-Jason