Title: [273405] trunk/Source/ThirdParty/libwebrtc
Revision
273405
Author
you...@apple.com
Date
2021-02-24 09:26:46 -0800 (Wed, 24 Feb 2021)

Log Message

Fix null pointer deref in X509_issuer_and_serial_hash
https://bugs.webkit.org/show_bug.cgi?id=222353
<rdar://problem/74446806>

Reviewed by Eric Carlson.

Cherry-picking of https://github.com/openssl/openssl/commit/8130d654d1de922ea224fa18ee3bc7262edc39c0.

* Source/third_party/boringssl/src/crypto/x509/x509_cmp.c:
(X509_issuer_and_serial_hash):

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/libwebrtc/ChangeLog (273404 => 273405)


--- trunk/Source/ThirdParty/libwebrtc/ChangeLog	2021-02-24 17:26:08 UTC (rev 273404)
+++ trunk/Source/ThirdParty/libwebrtc/ChangeLog	2021-02-24 17:26:46 UTC (rev 273405)
@@ -1,3 +1,16 @@
+2021-02-24  Youenn Fablet  <you...@apple.com>
+
+        Fix null pointer deref in X509_issuer_and_serial_hash
+        https://bugs.webkit.org/show_bug.cgi?id=222353
+        <rdar://problem/74446806>
+
+        Reviewed by Eric Carlson.
+
+        Cherry-picking of https://github.com/openssl/openssl/commit/8130d654d1de922ea224fa18ee3bc7262edc39c0.
+
+        * Source/third_party/boringssl/src/crypto/x509/x509_cmp.c:
+        (X509_issuer_and_serial_hash):
+
 2021-02-18  Youenn Fablet  <you...@apple.com>
 
         libwebrtc installs some files into incorrect locations in /usr/local/include

Modified: trunk/Source/ThirdParty/libwebrtc/Source/third_party/boringssl/src/crypto/x509/x509_cmp.c (273404 => 273405)


--- trunk/Source/ThirdParty/libwebrtc/Source/third_party/boringssl/src/crypto/x509/x509_cmp.c	2021-02-24 17:26:08 UTC (rev 273404)
+++ trunk/Source/ThirdParty/libwebrtc/Source/third_party/boringssl/src/crypto/x509/x509_cmp.c	2021-02-24 17:26:46 UTC (rev 273405)
@@ -92,6 +92,8 @@
 
     EVP_MD_CTX_init(&ctx);
     f = X509_NAME_oneline(a->cert_info->issuer, NULL, 0);
+    if (f == NULL)
+        goto err;
     if (!EVP_DigestInit_ex(&ctx, EVP_md5(), NULL))
         goto err;
     if (!EVP_DigestUpdate(&ctx, (unsigned char *)f, strlen(f)))
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to