Add security patches for PHP 5.6.40.
From omega8cc/boa (5.x-dev, aegir/patches/php-sec): php-5.6.40-openssl3-pkey-export.patch, php-5.6.40-round-places-overflow.patch, php-5.6.40-sury-105.patch, php-5.6.40-xlts-1.patch, php-5.6.40-xlts-2.patch. sury-105 contains the 5.6 backport of the CVE-2026-109618/109619 fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e73064d2b0
commit
7b6bb066dc
5 files changed
+233123
No files matched your search
@@ -0,0 +1,20 @@
|
||||
--- a/ext/standard/math.c
|
||||
+++ b/ext/standard/math.c
|
||||
@@ -141,7 +141,7 @@
|
||||
double tmp_value;
|
||||
int precision_places;
|
||||
|
||||
- if (!php_math_is_finite(value)) {
|
||||
+ if (!php_math_is_finite(value) || value == 0.0) {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
/* If the decimal precision guaranteed by FP arithmetic is higher than
|
||||
the requested places BUT is small enough to make sure a non-zero value
|
||||
is returned, pre-round the result to the precision */
|
||||
- if (precision_places > places && precision_places - places < 15) {
|
||||
+ if (precision_places > places && precision_places - 15 < places) {
|
||||
int64_t use_precision = precision_places < INT_MIN+1 ? INT_MIN+1 : precision_places;
|
||||
|
||||
f2 = php_intpow10(abs((int)use_precision));
|
||||
Reference in new issue
Block a user