Add overflow check for openssl_pkcs12_read

This commit is contained in:
Jakub Zelenka 2015-08-20 19:29:54 +01:00
parent ef063dcb05
commit 7ad1703413

View File

@ -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))