Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Crispy-fried-chicken authored Aug 26, 2024
1 parent 41bc5d0 commit 3c2ef6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Logan/mbedtls/library/x509_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid,
{
mbedtls_asn1_named_data *cur;

if (val_len > (SIZE_MAX - 1)) {
return MBEDTLS_ERR_X509_BAD_INPUT_DATA;
}

if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len,
NULL, val_len + 1 ) ) == NULL )
{
Expand Down

0 comments on commit 3c2ef6d

Please sign in to comment.