Bug #71132 [Asn->Csd]: 2 segfaults in PHP's range() function

From: Date: Tue, 12 Jan 2016 07:35:45 +0000
Subject: Bug #71132 [Asn->Csd]: 2 segfaults in PHP's range() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198596@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71132&edit=1

 ID:                 71132
 Updated by:         ab@php.net
 Reported by:        tpunt@php.net
 Summary:            2 segfaults in PHP's range() function
-Status:             Assigned
+Status:             Closed
 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:

Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=391b73b48431aa016e396dc9ad9742e9b1f71cbf
Log: update NEWS for fixed bug #71132, fixed bug #71197


Previous Comments:
------------------------------------------------------------------------
[2015-12-15 23:38:29] tpunt@php.net

PR: https://github.com/php/php-src/pull/1677

------------------------------------------------------------------------
[2015-12-15 23:37:53] tpunt@php.net

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

------------------------------------------------------------------------
[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)

« previous php.bugs (#198596) next »