mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 03:15:38 +00:00
Make a buffer limit more specific
This commit is contained in:
parent
470dfbabb9
commit
dcae78a7a9
|
@ -574,7 +574,8 @@ static int x509_get_crt_ext( unsigned char **p,
|
||||||
end_ext_data = *p + len;
|
end_ext_data = *p + len;
|
||||||
|
|
||||||
/* Get extension ID */
|
/* Get extension ID */
|
||||||
if( ( ret = mbedtls_asn1_get_tag( p, end, &extn_oid.len, MBEDTLS_ASN1_OID ) ) != 0 )
|
if( ( ret = mbedtls_asn1_get_tag( p, end_ext_data, &extn_oid.len,
|
||||||
|
MBEDTLS_ASN1_OID ) ) != 0 )
|
||||||
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS + ret );
|
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS + ret );
|
||||||
|
|
||||||
extn_oid.tag = MBEDTLS_ASN1_OID;
|
extn_oid.tag = MBEDTLS_ASN1_OID;
|
||||||
|
|
Loading…
Reference in a new issue