Bug #63923 [NEW]: filter_var( $mail, FILTER_VALIDATE_EMAIL) crash Apache if $mail longer than 155
| From: | remi at minimal-beton dot com | Date: | Sun, 06 Jan 2013 20:09:31 +0000 |
| Subject: | Bug #63923 [NEW]: filter_var( $mail, FILTER_VALIDATE_EMAIL) crash Apache if $mail longer than 155 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-175799@lists.php.net to get a copy of this message | ||
From: remi at minimal-beton dot com
Operating system: Windows 7
PHP version: 5.3.20
Package: Reproducible crash
Bug Type: Bug
Bug description:filter_var( $mail, FILTER_VALIDATE_EMAIL) crash Apache if $mail longer than 155
Description:
------------
WHEN USING
filter_var( $mail, FILTER_VALIDATE_EMAIL)
It EVERY TIME crashes Apache
IF $mail is longer than 155 characters
-----------------------------------------
[Mon Dec 10 14:08:34 2012] [notice] Parent: Received shutdown signal --
Shutting
down the server.
[Mon Dec 10 14:08:34 2012] [notice] Child 4212: Exit event signaled. Child
process is ending.
[Mon Dec 10 14:08:35 2012] [notice] Child 4212: Released the start mutex
[Mon Dec 10 14:08:36 2012] [notice] Child 4212: All worker threads have
exited.
[Mon Dec 10 14:08:36 2012] [notice] Child 4212: Child process is exiting
[Mon Dec 10 14:08:36 2012] [notice] Parent: Child process exited
successfully.
[Mon Dec 10 14:08:36 2012] [notice] Apache/2.2.22 (Win64) PHP/5.3.13
configured
-- resuming normal operations
[Mon Dec 10 14:08:36 2012] [notice] Server built: May 13 2012 19:41:17
[Mon Dec 10 14:08:36 2012] [notice] Parent: Created child process 2096
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Child process is running
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Acquired the start mutex.
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Starting 64 worker
threads.
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Starting thread to listen
on
port 80.
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Starting thread to listen
on
port 80.
Test script:
---------------
filter_var( "maiuuuuooumaidtotypo3mailtotypo3iiiiimailtotypo3mailtotypo3mailtotypo3mailtosssssmailtotypo3ppppppppppmailtotypo3mailtopdsdmarcheddefensedbrandolin@iiii.fr",
FILTER_VALIDATE_EMAIL));
Expected result:
----------------
function must return FALSE or TRUE
Actual result:
--------------
It EVERY TIME crashes Apache
-----------------------------------------
[Mon Dec 10 14:08:34 2012] [notice] Parent: Received shutdown signal --
Shutting
down the server.
[Mon Dec 10 14:08:34 2012] [notice] Child 4212: Exit event signaled. Child
process is ending.
[Mon Dec 10 14:08:35 2012] [notice] Child 4212: Released the start mutex
[Mon Dec 10 14:08:36 2012] [notice] Child 4212: All worker threads have
exited.
[Mon Dec 10 14:08:36 2012] [notice] Child 4212: Child process is exiting
[Mon Dec 10 14:08:36 2012] [notice] Parent: Child process exited
successfully.
[Mon Dec 10 14:08:36 2012] [notice] Apache/2.2.22 (Win64) PHP/5.3.13
configured
-- resuming normal operations
[Mon Dec 10 14:08:36 2012] [notice] Server built: May 13 2012 19:41:17
[Mon Dec 10 14:08:36 2012] [notice] Parent: Created child process 2096
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Child process is running
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Acquired the start mutex.
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Starting 64 worker
threads.
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Starting thread to listen
on
port 80.
[Mon Dec 10 14:08:36 2012] [notice] Child 2096: Starting thread to listen
on
port 80.
--
Edit bug report at https://bugs.php.net/bug.php?id=63923&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63923&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63923&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63923&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63923&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63923&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63923&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63923&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63923&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63923&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63923&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63923&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63923&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63923&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63923&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63923&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63923&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63923&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63923&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63923&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63923&r=mysqlcfg