Bug #75075 [Opn->Csd]: unpack with X* causes infinity loop
| From: | laruence@php.net | Date: | Tue, 15 Aug 2017 04:36:50 +0000 |
| Subject: | Bug #75075 [Opn->Csd]: unpack with X* causes infinity loop | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210683@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75075&edit=1
ID: 75075
Updated by: laruence@php.net
Reported by: erik at datahack dot se
Summary: unpack with X* causes infinity loop
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
PHP Version: 7.1.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=d8c80af71e9b43e9adec9e3f57f2732a0ac95d71
Log: Fixed bug #75075 (unpack with X* causes infinity loop)
Previous Comments:
------------------------------------------------------------------------
[2017-08-14 16:19:42] erik at datahack dot se
Description:
------------
Using unpack with "X*" causes an infinity loop
Test script:
---------------
<?php
unpack("X*", "");
Expected result:
----------------
I would expect either
A. * to not be a valid repeater for X
B. cause it to rewind to zero.
Actual result:
--------------
100% CPU usage
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75075&edit=1