File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ PHP NEWS
12
12
- Opcache:
13
13
. Fixed build for macOS to cater with pkg-config settings. (David Carlier)
14
14
15
+ - OpenSSL:
16
+ . Add missing error checks on file writing functions. (nielsdos)
17
+
15
18
- Phar:
16
19
. Fixed bug GH-10766 (PharData archive created with Phar::Zip format does
17
20
not keep files metadata (datetime)). (nielsdos)
Original file line number Diff line number Diff line change @@ -5406,7 +5406,11 @@ PHP_FUNCTION(openssl_pkcs7_verify)
5406
5406
}
5407
5407
5408
5408
if (p7bout ) {
5409
- PEM_write_bio_PKCS7 (p7bout , p7 );
5409
+ if (PEM_write_bio_PKCS7 (p7bout , p7 ) == 0 ) {
5410
+ php_error_docref (NULL , E_WARNING , "Failed to write PKCS7 to file" );
5411
+ php_openssl_store_errors ();
5412
+ RETVAL_FALSE ;
5413
+ }
5410
5414
}
5411
5415
}
5412
5416
} else {
You can’t perform that action at this time.
0 commit comments