mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
check on certificate index when getting Name
This commit is contained in:
@ -4102,6 +4102,10 @@ static int GetName(DecodedCert* cert, int nameType)
|
||||
hash = cert->subjectHash;
|
||||
}
|
||||
|
||||
if (cert->srcIdx >= cert->maxIdx) {
|
||||
return BUFFER_E;
|
||||
}
|
||||
|
||||
if (cert->source[cert->srcIdx] == ASN_OBJECT_ID) {
|
||||
WOLFSSL_MSG("Trying optional prefix...");
|
||||
|
||||
|
Reference in New Issue
Block a user