raven-rhel6/php53/php-5.3.27-CVE-2013-4248-UML.patch
2024-02-21 20:14:44 +06:00

12 lines
612 B
Diff

diff -up php-5.3.27/ext/openssl/openssl.c.CVE-2013-4248-UML php-5.3.27/ext/openssl/openssl.c
--- php-5.3.27/ext/openssl/openssl.c.CVE-2013-4248-UML 2013-08-26 11:19:55.651251496 +0700
+++ php-5.3.27/ext/openssl/openssl.c 2013-08-26 11:20:13.567356736 +0700
@@ -1502,6 +1502,7 @@ PHP_FUNCTION(openssl_x509_parse)
bio_out = BIO_new(BIO_s_mem());
if (nid == NID_subject_alt_name) {
if (openssl_x509v3_subjectAltName(bio_out, extension) == 0) {
+ BIO_get_mem_ptr(bio_out, &bio_buf);
add_assoc_stringl(subitem, extname, bio_buf->data, bio_buf->length, 1);
} else {
zval_dtor(return_value);