Bug #72538 [NEW]: readline_redisplay crashes php

From: Date: Sun, 03 Jul 2016 15:14:19 +0000
Subject: Bug #72538 [NEW]: readline_redisplay crashes php
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202021@lists.php.net to get a copy of this message
From: fernando at null-life dot com Operating system: OS X PHP version: 7.0.8 Package: Readline related Bug Type: Bug Bug description:readline_redisplay crashes php 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 bug report at https://bugs.php.net/bug.php?id=72538&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72538&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72538&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72538&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72538&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72538&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72538&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72538&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72538&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72538&r=support Expected behavior: https://bugs.php.net/fix.php?id=72538&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72538&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72538&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72538&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72538&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72538&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72538&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72538&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72538&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72538&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72538&r=mysqlcfg

« previous php.bugs (#202021) next »