mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
add check on decode subtree return value
This commit is contained in:
@ -8408,7 +8408,10 @@ static int DecodeNameConstraints(const byte* input, int sz, DecodedCert* cert)
|
||||
return ASN_PARSE_E;
|
||||
}
|
||||
|
||||
DecodeSubtree(input + idx, length, subtree, cert->heap);
|
||||
if (DecodeSubtree(input + idx, length, subtree, cert->heap) < 0) {
|
||||
WOLFSSL_MSG("\terror parsing subtree");
|
||||
return ASN_PARSE_E;
|
||||
}
|
||||
|
||||
idx += length;
|
||||
}
|
||||
|
Reference in New Issue
Block a user