com php-src: Add overflow check for openssl_pkcs12_read : ext/openssl/openssl.c
| From: | Jakub Zelenka | Date: | Thu, 20 Aug 2015 18:29:54 +0000 |
| Subject: | com php-src: Add overflow check for openssl_pkcs12_read : ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88705@lists.php.net to get a copy of this message | ||
Commit: 7ad170341303933eae4e9d30e5048cb462f0817d
Author: Jakub Zelenka <bukka@php.net> Thu, 20 Aug 2015 19:29:54 +0100
Parents: ef063dcb055aa1b3d04c5500ded76c13a581d97d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7ad170341303933eae4e9d30e5048cb462f0817d
Log:
Add overflow check for openssl_pkcs12_read
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 9deef36..7dcc16b 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -2553,6 +2553,8 @@ PHP_FUNCTION(openssl_pkcs12_read)
RETVAL_FALSE;
+ PHP_OPENSSL_CHECK_OVERFLOW(zp12_len, pkcs12);
+
bio_in = BIO_new(BIO_s_mem());
if(0 >= BIO_write(bio_in, zp12, (int)zp12_len))