#011582: Endless loop in ezcMailImapSet with special mail headers

Description:

The problem appears when parsing a mail which contains the string 'A0000' in the header.
If this happens, the method getNextLine() wont switch to the next mail line because of the if statement in line 125:


if ( strpos( $data, $this->currentTag ) === false || true)
{

So the script will fill the whole memory and then crashes.

Script: ezcMailImapSet (mail/transports/imap/imap_set.php)


Environment:

Operating System: linux gentoo
PHP Version: 5.x
Database and version: mysql
Browser (and version): any


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. 6418. It will be available in Mail 1.4alpha2.

#254101 by Alexandru Stanoi on October 11th, 2007 [Permanent Link]

Fixed also for Mail 1.3 in rev. 6467. It will be available in Mail 1.3.2 (stable).

#254144 by Alexandru Stanoi on October 16th, 2007 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Mail
Affects 1.3 - Mail 1.3
Fix Versions 2007.2alpha1 - eZ components 2007.2alpha1
1.3.2 - Mail 1.3.2
1.4alpha2 - Mail 1.4alpha2
Reporter Thilo Haas
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Fixed
Created October 8th, 2007
Updated October 16th, 2007
Resolved October 11th, 2007
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels