mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix potential NULL pointer dereference before calling EVP_SignInit
This commit is contained in:
commit
07fe3b2920
2 changed files with 8 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -30,6 +30,7 @@ PHP NEWS
|
||||||
filename causes a NULL pointer dereference). (nielsdos)
|
filename causes a NULL pointer dereference). (nielsdos)
|
||||||
. Fixed bug GH-13833 (Applying zero offset to null pointer in zend_hash.c).
|
. Fixed bug GH-13833 (Applying zero offset to null pointer in zend_hash.c).
|
||||||
(nielsdos)
|
(nielsdos)
|
||||||
|
. Fix potential NULL pointer dereference before calling EVP_SignInit. (icy17)
|
||||||
|
|
||||||
- PHPDBG:
|
- PHPDBG:
|
||||||
. Fixed bug GH-13827 (Null pointer access of type 'zval' in phpdbg_frame).
|
. Fixed bug GH-13827 (Null pointer access of type 'zval' in phpdbg_frame).
|
||||||
|
|
|
@ -1890,6 +1890,13 @@ int phar_create_signature(phar_archive_data *phar, php_stream *fp, char **signat
|
||||||
}
|
}
|
||||||
|
|
||||||
md_ctx = EVP_MD_CTX_create();
|
md_ctx = EVP_MD_CTX_create();
|
||||||
|
if (md_ctx == NULL) {
|
||||||
|
EVP_PKEY_free(key);
|
||||||
|
if (error) {
|
||||||
|
spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname);
|
||||||
|
}
|
||||||
|
return FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
siglen = EVP_PKEY_size(key);
|
siglen = EVP_PKEY_size(key);
|
||||||
sigbuf = emalloc(siglen + 1);
|
sigbuf = emalloc(siglen + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue