note 99037 added to function.imap-rfc822-parse-headers

From: Date: Fri, 23 Jul 2010 16:10:42 +0000
Subject: note 99037 added to function.imap-rfc822-parse-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-171077@lists.php.net to get a copy of this message
This function will cause a PHP Fatal Error if the text you're passing to it overflows a 16 KB buffer internally (SENDBUFLEN in the source). I haven't looked into it in depth yet, but limiting the input text to less than 16,384 characters still produced this in one error case on our servers, but reducing the boundary to 12,000 fixed it. Most real-world mail headers are well under 4 KB. ---- Server IP: 192.41.42.26 Probable Submitter: 72.248.218.162 ---- Manual Page -- http://www.php.net/manual/en/function.imap-rfc822-parse-headers.php Edit -- https://master.php.net/note/edit/99037 Del: integrated -- https://master.php.net/note/delete/99037/integrated Del: useless -- https://master.php.net/note/delete/99037/useless Del: bad code -- https://master.php.net/note/delete/99037/bad+code Del: spam -- https://master.php.net/note/delete/99037/spam Del: non-english -- https://master.php.net/note/delete/99037/non-english Del: in docs -- https://master.php.net/note/delete/99037/in+docs Del: other reasons-- https://master.php.net/note/delete/99037 Reject -- https://master.php.net/note/reject/99037 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171077) next »