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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 18:01:31 2025 UTC