mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
503d9145e0
When allocating enough room for floats, the allocator used overflows with large ndigits/EG(precision) value which used an signed integer to increase the size of thebuffer. Testing with the zend operator directly is enough to trigger the issue rather than higher level math interface. close GH-15715
10 lines
142 B
PHP
10 lines
142 B
PHP
--TEST--
|
|
GH-15712: overflow on real number printing
|
|
--FILE--
|
|
<?php
|
|
ini_set('precision', 1100000000);
|
|
echo -1 * (2 ** -10);
|
|
?>
|
|
--EXPECTF--
|
|
%s
|