Bug #72538 [Opn->Csd]: readline_redisplay crashes php
| From: | laruence@php.net | Date: | Sun, 03 Jul 2016 15:57:53 +0000 |
| Subject: | Bug #72538 [Opn->Csd]: readline_redisplay crashes php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202023@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72538&edit=1
ID: 72538
Updated by: laruence@php.net
Reported by: fernando at null-life dot com
Summary: readline_redisplay crashes php
-Status: Open
+Status: Closed
Type: Bug
Package: Readline related
Operating System: OS X
PHP Version: 7.0.8
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=612aff3a8a42bb5ef756e60769b16f9879c7f036
Log: Fixed bug #72538 (readline_redisplay crashes php)
Previous Comments:
------------------------------------------------------------------------
[2016-07-03 15:14:18] fernando at null-life dot com
Description:
------------
Attached test script crashes php on OSX. PHP installed using homebrew/php70
pwneable:matatetete fmunozs$ php -v
PHP 7.0.8 (cli) (built: Jun 23 2016 16:32:40) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
Test script:
---------------
<?php
var_dump(readline_info());
readline_redisplay();
Expected result:
----------------
No crash
Actual result:
--------------
$ php 9628255794.mac.php
array(6) {
["line_buffer"]=>
string(0) ""
["point"]=>
int(0)
["end"]=>
int(0)
["library_version"]=>
string(16) "EditLine wrapper"
["readline_name"]=>
string(0) ""
["attempted_completion_over"]=>
int(0)
}
Segmentation fault: 11
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72538&edit=1