php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77439 parse_str segfaults when inserting item into existing array
Submitted: 2019-01-10 09:42 UTC Modified: 2019-01-10 09:52 UTC
From: sjon at hortensius dot net Assigned: nikic (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.3.0 OS:
Private report: No CVE-ID: None
 [2019-01-10 09:42 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-10 09:52 UTC] nikic@php.net
-Assigned To: +Assigned To: nikic
 [2019-01-10 09:58 UTC] nikic@php.net
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
 [2019-01-10 09:58 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Aug 22 16:01:28 2019 UTC