1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3'

This commit is contained in:
David Carlier
2024-09-11 21:20:14 +01:00
2 changed files with 12 additions and 3 deletions

9
Zend/tests/gh15712.phpt Normal file
View File

@@ -0,0 +1,9 @@
--TEST--
GH-15712: overflow on real number printing
--FILE--
<?php
ini_set('precision', 1100000000);
echo -1 * (2 ** -10);
?>
--EXPECTF--
%s

View File

@@ -3609,11 +3609,11 @@ rv_alloc(i) int i;
rv_alloc(int i)
#endif
{
int j, k, *r;
int k, *r;
j = sizeof(ULong);
size_t j = sizeof(ULong);
for(k = 0;
sizeof(Bigint) - sizeof(ULong) - sizeof(int) + (size_t)j <= (size_t)i;
sizeof(Bigint) - sizeof(ULong) - sizeof(int) + j <= (size_t)i;
j <<= 1)
k++;
r = (int*)Balloc(k);