#18909 [Com]: Stack overflow error.
| From: | carl at theloop dot com | Date: | Thu, 15 Aug 2002 01:11:36 +0000 |
| Subject: | #18909 [Com]: Stack overflow error. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16862@lists.php.net to get a copy of this message | ||
ID: 18909
Comment by: carl@theloop.com
Reported By: jon@jellybob.co.uk
Status: Open
Bug Type: Reproducible crash
Operating System: Linux/Max OS X
PHP Version: 4CVS-2002-08-14
New Comment:
<?function f(){f();}f();?>
Previous Comments:
------------------------------------------------------------------------
[2002-08-14 21:02:17] jon@jellybob.co.uk
OK, so this was created when I *tried* to crash PHP, but hey, every
little helps.
Should PHP detect a stack overflow, because at the moment it doesn't -
the script...
<?php
function foo()
{
foo()
}
foo();
?>
Will seg-fault PHP, which I guess makes it possible for anyone to kill
it off with a bit of effort.
And for the leet of you out there - the following script is the
shortest one we've found to do this with :P (A friend and I were
looking for the shortest PHP script that will run, but crash...
<? function foo(){foo();}foo(); ?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18909&edit=1