mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Add overflow check for openssl_pkcs12_read
This commit is contained in:
parent
ef063dcb05
commit
7ad1703413
@ -2553,6 +2553,8 @@ PHP_FUNCTION(openssl_pkcs12_read)
|
|||||||
|
|
||||||
RETVAL_FALSE;
|
RETVAL_FALSE;
|
||||||
|
|
||||||
|
PHP_OPENSSL_CHECK_OVERFLOW(zp12_len, pkcs12);
|
||||||
|
|
||||||
bio_in = BIO_new(BIO_s_mem());
|
bio_in = BIO_new(BIO_s_mem());
|
||||||
|
|
||||||
if(0 >= BIO_write(bio_in, zp12, (int)zp12_len))
|
if(0 >= BIO_write(bio_in, zp12, (int)zp12_len))
|
||||||
|
Loading…
Reference in New Issue
Block a user