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:43:43 +0000 (10:43 -0400)
commit8f078819556da83c15751678c39558a59bc746fc
treea2da600ff9e1a9c3ad82f66f2059c9b14910505d
parentab7d05617a444cfcf4f930f81caa4cf66495ab9b
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)

(cherry picked from commit 01fc9b6bce82f0534d6673659a0e59a71f57ee82)
crypto/x509v3/v3_asid.c
test/v3ext.c