Bug #71132 [PATCH]: 2 segfaults in PHP's range() function
Edit report at https://bugs.php.net/bug.php?id=71132&edit=1
ID: 71132
Patch added by: tpunt@php.net
Reported by: tpunt@php.net
Summary: 2 segfaults in PHP's range() function
Status: Assigned
Type: Bug
Package: Reproducible crash
Operating System: Mac OS X Yosemite
PHP Version: 7.0.0
Assigned To: tpunt
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: range-segfault-patch
Revision: 1450222672
URL: https://bugs.php.net/patch-display.php?bug=71132&patch=range-segfault-patch&revision=1450222672
Previous Comments:
------------------------------------------------------------------------
[2015-12-15 23:29:38] tpunt@php.net
Description:
------------
There's two segmentation faults in PHP's range() function. These can both be reproduced
below.
I will submit a PR shortly referencing this bug report.
Test script:
---------------
range(PHP_INT_MIN + 513, PHP_INT_MIN); // Seg fault on line 2236
range(PHP_INT_MAX - 512, PHP_INT_MAX); // Seg fault on line 2249
Actual result:
--------------
Segmentation fault: 11
Segmentation fault: 11
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71132&edit=1
Thread (4 messages)