php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47704 PHP crashes on some "bad" operations with string offsets
Submitted: 2009-03-18 10:39 UTC Modified: 2009-03-18 13:13 UTC
From: dmitry@php.net Assigned: dmitry
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3CVS-2009-03-18 (CVS) OS: *
Private report: No CVE-ID:
 [2009-03-18 10:39 UTC] dmitry@php.net
Description:
------------
The following script chrashes

Reproduce code:
---------------
<?php
$s = "abd";
$s[0]->a += 4;
echo "ok\n";
?>

Expected result:
----------------
ok

Actual result:
--------------
Segmentation fault


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-18 13:13 UTC] dmitry@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 20:01:57 2014 UTC