php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72538 readline_redisplay crashes php
Submitted: 2016-07-03 15:14 UTC Modified: -
From: fernando at null-life dot com Assigned:
Status: Closed Package: Readline related
PHP Version: 7.0.8 OS: OS X
Private report: No CVE-ID: None
 [2016-07-03 15:14 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-03 15:57 UTC] laruence@php.net
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)
 [2016-07-03 15:57 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-06 05:47 UTC] davey@php.net
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)
 [2016-07-20 11:30 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC