Fix a crash in X509v3_asid_subset()
authorMatt Caswell <matt@openssl.org>
Thu, 9 Jun 2022 15:57:30 +0000 (16:57 +0100)
committerTodd Short <todd.short@me.com>
Wed, 15 Jun 2022 14:21:29 +0000 (10:21 -0400)
commit01fc9b6bce82f0534d6673659a0e59a71f57ee82
tree647a38a19bc75b2b8d48f1142c995b9985809e09
parent0feb138fbeeec9ae09e63b212a0a6e345ed0dc30
Fix a crash in X509v3_asid_subset()

If the asnum or rdi fields are NULL and the ASIdentifiers are otherwise
subsets then this will result in a crash. Of note is that rdi will usually
be NULL.

Reported by Theo Buehler (@botovq)

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18514)
crypto/x509/v3_asid.c
test/v3ext.c