Naveed bccab06703 Keep the out_cid length byte in the CID case's truncated data
With the loaded data cut right after the in_cid bytes, even the
pristine in_cid length tripped the (end - p) < in_cid_len + 1u bounds
check, since the out_cid length byte it accounts for was missing: the
truncation, not the corruption, was what got rejected. Keep the
out_cid length byte in the loaded data, so the pristine length passes
the check and only the corrupted length trips it. Also document why
this pre-existing check is the only one in the in_cid path that a
regression test can guard: the in_cid_len > sizeof(in_cid) cap
protects the memcpy() destination, and without it the overflow lands
in the out_cid field inside the transform structure, where sanitizers
cannot see it.

Signed-off-by: Naveed <naveed@bugqore.com>
2026-10-04 22:44:50 +05:30
..
test_suite_config.function New test suite to report configuration options 2024-06-20 17:10:24 +02:00
test_suite_config.tls_combinations.data New test suite to report configuration options 2024-06-20 17:10:24 +02:00
test_suite_constant_time_hmac.data Move test_suite_constant_time_hmac back to mbedtls 2024-10-01 15:32:01 +02:00
test_suite_constant_time_hmac.function remove MBEDTLS_USE_PSA_CRYPTO from tests 2025-07-30 07:55:14 +01:00
test_suite_debug.data tests: bulk replace MBEDTLS_RSA_C with PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY 2026-03-16 13:52:01 +01:00
test_suite_debug.function test_suite_debug: test the printf used by debug.c 2026-02-26 20:56:03 +01:00
test_suite_error.data tests: avoid useless use of low-level crypto deps 2026-07-15 09:48:05 +01:00
test_suite_error.function Fix test case dependency 2024-10-21 12:07:27 +01:00
test_suite_mps.data Add unit test for integer overflow in mbedtls_mps_reader_reclaim() 2021-03-29 14:20:18 +01:00
test_suite_mps.function Add missing exit labels to MPS tests 2023-10-20 19:14:46 +01:00
test_suite_net.data Add test for mbedtls_net_poll beyond FD_SETSIZE 2021-02-25 15:56:48 +01:00
test_suite_net.function Switch to the new code style 2023-01-11 14:50:10 +01:00
test_suite_pkcs7.data tests: pkcs7: set proper RSA dependencies on pkcs7_verify() test data 2026-09-25 09:18:41 +02:00
test_suite_pkcs7.function tests: pkcs7: remove RSA dependency from pkcs7_verify() 2026-09-25 09:18:41 +02:00
test_suite_ssl_decrypt.function tests: ssl: split ssl_helpers between public and internal functions 2026-06-24 14:42:10 +02:00
test_suite_ssl_decrypt.misc.data Replace MBEDTLS_MD_CAN_SHA1 with PSA_WANT_ALG_SHA_1 2024-09-04 18:12:59 +01:00
test_suite_ssl.data Merge the two ssl_context_load OOB length tests 2026-10-04 22:44:50 +05:30
test_suite_ssl.function Keep the out_cid length byte in the CID case's truncated data 2026-10-04 22:44:50 +05:30
test_suite_ssl.records.data Use HANDSHAKE_OVER in nominal test cases 2025-04-10 10:18:44 +02:00
test_suite_ssl.tls-defrag.data Adapt dependencies to the new world 2025-03-14 09:22:09 +01:00
test_suite_test_helpers.data Basic functional test for memory poisoning 2023-11-29 19:22:03 +01:00
test_suite_test_helpers.function Update documentation regarding metatest 2025-02-19 15:30:25 +00:00
test_suite_timing.data Move back timing.c to mbedtls 2024-12-04 14:25:02 +01:00
test_suite_timing.function Move back timing.c to mbedtls 2024-12-04 14:25:02 +01:00
test_suite_version.data Bump version --version 4.1.1 2026-06-29 18:28:30 +01:00
test_suite_version.function Simplify runtime version info string methods 2025-08-18 11:39:45 +02:00
test_suite_x509_oid.data Remove MBEDTLS_OID_X509_EXT_xxx constants 2025-06-03 15:51:34 +02:00
test_suite_x509_oid.function Replace MBEDTLS_OID_C by function-specific dependencies 2025-06-03 15:51:34 +02:00
test_suite_x509parse.data tests: x509parse: ease RSA requirements in test data 2026-09-25 09:18:39 +02:00
test_suite_x509parse.function inet_pton: help ASan find the underflow 2026-02-12 08:11:37 +00:00
test_suite_x509write.data tests: bulk replace MBEDTLS_RSA_C with PSA_HAVE_ALG_SOME_RSA_SIGN 2026-03-16 13:52:01 +01:00
test_suite_x509write.function Remove internal deprecated items 2025-10-07 08:19:44 +01:00