Bug #1913: eval causes a segfault if there is no ending ;
| From: | ccunning at math dot ohio-state dot edu | Date: | Wed, 28 Jul 1999 22:41:26 +0000 |
| Subject: | Bug #1913: eval causes a segfault if there is no ending ; | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9298@lists.php.net to get a copy of this message | ||
From: ccunning@math.ohio-state.edu
Operating system: Solaris 2.6
PHP version: 4.0b1
PHP Bug Type: Reproduceable crash
Bug description: eval causes a segfault if there is no ending ;
Crash occurs when the evaluated string does not have a closing ;
<?
eval("\$out = 3");
echo $out;
?>
Error Log:
[Wed Jul 28 17:20:35 1999] [notice] child pid 13254 exit signal Segmentation
Fault (11)
dbx:
In add vars
signal SEGV (no mapping at the fault address) in strlen at 0xef5a4614
0xef5a4614: strlen+0x0080: ld [%o1], %o2