Skip to content

Commit

Permalink
Fixed bug #74947 (Segfault in scanner on INF number)
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jul 21, 2017
1 parent ce06677 commit 95d2908
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 198 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2017 PHP 7.0.23

- Core:
. Fixed bug #74947 (Segfault in scanner on INF number). (Laruence)

- SPL:
. Fixed bug #74669 (Unserialize ArrayIterator broken). (Andrew Nester)

Expand Down
12 changes: 12 additions & 0 deletions Zend/tests/bug74947.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--TEST--
Bug #74947 (Segfault in scanner on INF number)
--FILE--
<?php

echo 200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;

echo -200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;

?>
--EXPECTF--
INF-INF

0 comments on commit 95d2908

Please sign in to comment.