Naveed e0177ae7e9 Address review: verify pristine load, corrupt ALPN length by exactly one
Load the serialized context once before corrupting it, to check the
data is well-formed to begin with. Shorten the second ALPN protocol so
the corrupted length overruns the serialized data by exactly one byte,
and assert that property at runtime. Document that the corrupted load
usually fails even without the bounds check, so the regression is only
caught when the suite runs under ASan or Valgrind.

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 Address review: verify pristine load, corrupt ALPN length by exactly one 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