Bug #77439 [Asn->Csd]: parse_str segfaults when inserting item into existing array
| From: | nikic@php.net | Date: | Thu, 10 Jan 2019 09:58:48 +0000 |
| Subject: | Bug #77439 [Asn->Csd]: parse_str segfaults when inserting item into existing array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218880@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77439&edit=1
ID: 77439
Updated by: nikic@php.net
Reported by: sjon at hortensius dot net
Summary: parse_str segfaults when inserting item into
existing array
-Status: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 7.3.0
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5d33024a5dc40a45c986deb37282e54e80058b6f
Log: Fixed bug #77439
Previous Comments:
------------------------------------------------------------------------
[2019-01-10 09:42:01] sjon at hortensius dot net
Description:
------------
While deprecated, this shouldn't segfault
Test script:
---------------
See https://3v4l.org/mj3d2
<?php
$a = [];
parse_str('a[1]=1');
Expected result:
----------------
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/mj3d2
on line 3
Actual result:
--------------
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in /in/mj3d2
on line 3
Process exited with code 139.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77439&edit=1