php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26160 imap_fetch_overview crashes on certain malformed messages
Submitted: 2003-11-06 20:44 UTC Modified: 2003-11-17 18:18 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: dkoopman at godaddy dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.3.2 OS: RH 9.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dkoopman at godaddy dot com
New email:
PHP Version: OS:

 

 [2003-11-06 20:44 UTC] dkoopman at godaddy dot com
Description:
------------
This email will crash imap_fetch_overview and make apache report a segmentation fault:
[notice] child pid 6249 exit signal Segmentation fault (11)

(notice the malformed To line):

Subject: This message will crash imap_fetch_overview function
To: <xxxxxxxxx@xxxxxxxxxxx, xxxxxxxxxx@xxxxxxxxxxxxxxxx,
        xxxxxx@xxxxxxxxxxxxxxx, xxxx@xxxxxxxxxx, xxxxxx@xxxxxxxxxxxxxxx,
        xxxxx@xxxxxxxxxxxxx, xxxxxx@xxxxxxxxxxxxxxxxxx,
        xxxxxxxx@xxxxxxxxxxxxxxxxx, xxxxx@xxxxxxxxxxxxxx, xxx@xxxxxxxxxxxx,
        xxxxxx@xxxxxxxxxxxxx, xx@xxxxxxxxxxxxxxxxxxxxxx,
        xxxxx@xxxxxxxxxxxxxxxx, xxxxxxx@xxxxxxxxxxxxxxxxx,
        xxxxxx@xxxxxxxxxxxxx, xxxxxx@xxxxxxxxxxx, xxxxxxxxx@xxxxxxxxxxxxx,
        xxxxxxx@xxxxxxxxxxxxx, xxx@xxxxxxxxxxxxxxx, xxxxxxxxx@xxxxxxxxx,
        xxxxxx@xxxxxxxxxxxxxxx, xxxxxxxxxx@xxxxxxxxxxxxxxxx,
        xxxxxx@xxxxxxxxxxxxxxx, xxxx@xxxxxxxxxxxxxxxxxxxxxxx,
        xxxx@xxxxxxxxxxxxxxx, xxxx@xxxxxxxxxxxxxxxxxxxxx,
        xxxx@xxxxxxxxxxxxxxxx, xxxxxxxxx@xxxxxxxxxxxx,
        xxx@xxxxxxxxxxxxxxxxxxxxxx, xxxxx@xxxxxxxxxxxx, xxxxxxx@xxxxxxxxxxxxx,
        xxxx@xxxxxxxxxxx, xxxxxxx@xxxxxxxxxxxxx, xxxxxxxxx@xxxxxxx,
        xxxxxxxxx@xxxxxxxxxxxxxxxxxx, xxxxxxxx@xxxxxxxxxxx,
        xxxxx@xxxxxxxxxxxxxxxxxxxx, xxxxxxxxx@xxxxxxx, xxxxxxxxxx@xxxxxx,
        xxxxxxx@xxxxxxxxxxx, xxxxxxxx@xxxxxxxxxxx, xxxxxxx@xxxxxxxxxxxx,
        xxxxxxxx@xxxxxxxxxxxxxxxxx, xxxx@xxxxxxxxxxxxxxxxxxxxx,
        xxxxxxxxx@xxxxxxxxxxxxx, xxxxxx@xxxxxxxxxxx, xxxxx@xxxxxxxxxxx,
        xxxxxxx@xxxxxxxxxxx, xxxxxxxxxxxxx@xxxxxxxxxxx, xxxxxxx@xxxxxxxxxxxxxx,
        xxxx@xxxxxxxxxxxxxxxx, xxxxxx@xxxxxxxxxxx, xxxxxx@xxxxxxxxxxx,
        xxxxxxxxxx@xxxxxxxxx, xxxxx@xxxxxxxxxxxxxxx,
        xxxxxxx@xxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxx@xxxxxxx,
        xxxxxxxxx@xxxxxxxxx, xxxxxx@xxxxxxxxxxxxxxxxxxx,
        xxxxxxxx@xxxxxxxxxxxxxxxx, xxxx@xxxxxxxxxxxxxxxx,
        xxxxx@xxxxxxxx xxxxxxxxx, xxx@xxxxxxxxxx, xxxxxxxxxx@xxxxxxxxxxxxx,
        xxxxxxxx@xxxxxxxxxx, xxxxxxxx@xxxxxxxxxxxxxxxxx,
        xxxxxx@xxxxxxxxxxxxxxxxxxx, xxxxxxx@xxxxxxxx
From: test@koopman.com

test


Reproduce code:
---------------
see description

Expected result:
----------------
see description

Actual result:
--------------
see description

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 18:18 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2004-02-03 11:58 UTC] jw at jwscripts dot com
tried it with the latest snapshot (Version 4.3.5RC2-dev) on a Windows system and the problem seems to be fixed.

Will try it on an unix system also and report my findings.

BTW, if you want to reproduce this bug, just cut and paste the following source, which will produce a mail as mentioned, into a file:

http://www.jwscripts.com/playground/sendoffending.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 22:01:28 2024 UTC