php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47373 imap_headerinfo crash from field
Submitted: 2009-02-12 19:44 UTC Modified: 2009-02-18 20:28 UTC
From: joao dot alfredo at gmail dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 5.2CVS-2009-02-12 (CVS) OS: ubuntu 8.10
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: joao dot alfredo at gmail dot com
New email:
PHP Version: OS:

 

 [2009-02-12 19:44 UTC] joao dot alfredo at gmail dot com
Description:
------------
imap_headerinfo crash on trying get the header of a message with a huge(100Kb) FROM field.

Reproduce code:
---------------
$header = imap_headerinfo($connection, 20);

Expected result:
----------------
Warning: imap_headerinfo(): To length must be less than or equal to %d
bytes
bool(false)


Actual result:
--------------
PHP Crash

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-12 20:00 UTC] pajoye@php.net
Which imap version do you use?
 [2009-02-13 12:55 UTC] joao dot alfredo at gmail dot com
Cyrus IMAP4 v2.2.13-Debian-2.2.13-14ubuntu2.

Thanks.
 [2009-02-13 21:20 UTC] felipe@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.


 [2009-02-18 20:28 UTC] joao dot alfredo at gmail dot com
Sorry Guys,

this bug is related only with ubuntu packages. (php 5.2.6-2ubuntu4.1)

Compiling versions 5.2.5, 5.2.6 and 5.2.8 from the source works fine.

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 16:01:31 2024 UTC