diff options
author | David Horstmann <david.horstmann@arm.com> | 2023-06-02 14:50:35 +0100 |
---|---|---|
committer | David Horstmann <david.horstmann@arm.com> | 2023-06-02 15:51:17 +0100 |
commit | 02127ab02245936cb4869d8e2ed3b3fc378ef32b (patch) | |
tree | 47f0f35af0e955eb64349774640fbaea259cb1c8 /tests/suites/test_suite_oid.data | |
parent | bf95e9a0584c54bf7535c76608de31b0e52d29b2 (diff) | |
download | mbedtls-02127ab02245936cb4869d8e2ed3b3fc378ef32b.zip mbedtls-02127ab02245936cb4869d8e2ed3b3fc378ef32b.tar.gz mbedtls-02127ab02245936cb4869d8e2ed3b3fc378ef32b.tar.bz2 |
Allow subidentifiers of size UINT_MAX
Make overflow check more accurate and add testcases
Signed-off-by: David Horstmann <david.horstmann@arm.com>
Diffstat (limited to 'tests/suites/test_suite_oid.data')
-rw-r--r-- | tests/suites/test_suite_oid.data | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/suites/test_suite_oid.data b/tests/suites/test_suite_oid.data index c5f1317..1435507 100644 --- a/tests/suites/test_suite_oid.data +++ b/tests/suites/test_suite_oid.data @@ -161,3 +161,9 @@ oid_from_numeric_string:"1.2.3/4":MBEDTLS_ERR_ASN1_INVALID_DATA:"" OID from numeric string - OID greater than max length (129 components) oid_from_numeric_string:"1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1.2.3.4.5.6.7.8.1":MBEDTLS_ERR_ASN1_INVALID_DATA:"" + +OID from numeric string - OID with maximum subidentifier +oid_from_numeric_string:"2.4294967215":0:"8FFFFFFF7F" + +OID from numeric string - OID with overflowing subidentifier +oid_from_numeric_string:"2.4294967216":MBEDTLS_ERR_ASN1_INVALID_DATA:"" |