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,22 @@
|
|||||||
|
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
|
||||||
|
index af376aa..5116a4a 100644
|
||||||
|
--- a/ext/openssl/openssl.c
|
||||||
|
+++ b/ext/openssl/openssl.c
|
||||||
|
@@ -4001,6 +4001,9 @@ PHP_FUNCTION(openssl_pkey_export_to_file)
|
||||||
|
|
||||||
|
if (PHP_SSL_REQ_PARSE(&req, args) == SUCCESS) {
|
||||||
|
bio_out = BIO_new_file(filename, "w");
|
||||||
|
+ if (bio_out == NULL) {
|
||||||
|
+ goto clean_exit;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (passphrase && req.priv_key_encrypt) {
|
||||||
|
if (req.priv_key_encrypt_cipher) {
|
||||||
|
@@ -4029,6 +4032,7 @@ PHP_FUNCTION(openssl_pkey_export_to_file)
|
||||||
|
RETVAL_TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+clean_exit:
|
||||||
|
PHP_SSL_REQ_DISPOSE(&req);
|
||||||
|
|
||||||
|
if (key_resource == -1 && key) {
|
||||||
@@ -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));
|
||||||
+221268
File diff suppressed because it is too large.
Load diff
+10434
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user