diff options
Diffstat (limited to 'lib_pypy')
-rw-r--r-- | lib_pypy/_cffi_ssl/_stdssl/certificate.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib_pypy/_cffi_ssl/_stdssl/certificate.py b/lib_pypy/_cffi_ssl/_stdssl/certificate.py index 6b49e88b14..fe660bde81 100644 --- a/lib_pypy/_cffi_ssl/_stdssl/certificate.py +++ b/lib_pypy/_cffi_ssl/_stdssl/certificate.py @@ -265,6 +265,9 @@ def _get_crl_dp(certificate): count = lib.sk_DIST_POINT_num(dps) for i in range(count): dp = lib.sk_DIST_POINT_value(dps, i); + if not dp.distpoint: + # Ignore empty DP value, CVE-2019-5010 + continue gns = dp.distpoint.name.fullname; jcount = lib.sk_GENERAL_NAME_num(gns) |