#47373 [NEW]: imap_headerinfo crash from field

From: Date: Thu, 12 Feb 2009 19:44:23 +0000
Subject: #47373 [NEW]: imap_headerinfo crash from field
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-133774@lists.php.net to get a copy of this message
From:             joao dot alfredo at gmail dot com
Operating system: ubuntu 8.10
PHP version:      5.2CVS-2009-02-12 (CVS)
PHP Bug Type:     IMAP related
Bug description:  imap_headerinfo crash from field

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

-- 
Edit bug report at http://bugs.php.net/?id=47373&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47373&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47373&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47373&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47373&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47373&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47373&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47373&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47373&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47373&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47373&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47373&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47373&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47373&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47373&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47373&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47373&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47373&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47373&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47373&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47373&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47373&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#133774) next »