mbedtls/tests
Demi Marie Obenour 889534a4d2 Fix segfault in mbedtls_oid_get_numeric_string
When passed an empty OID, mbedtls_oid_get_numeric_string would read one
byte from the zero-sized buffer and return an error code that depends on
its value.  This is demonstrated by the test suite changes, which
check that an OID with length zero and an invalid buffer pointer does
not cause Mbed TLS to segfault.

Also check that second and subsequent subidentifiers are terminated, and
add a test case for that.  Furthermore, stop relying on integer division
by 40, use the same loop for both the first and subsequent
subidentifiers, and add additional tests.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2023-03-16 01:06:41 -04:00
..
.jenkins
configs Explicitly disable all DTLS options in tls13-only.h 2023-03-01 19:49:58 +01:00
data_files Add PKCS #7 test files using expired cert 2023-03-11 10:24:30 +00:00
docker/bionic Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Merge pull request #6500 from yanrayw/split-TLS-connection-func-into-ssl_helpers 2023-03-15 10:50:03 +01:00
opt-testcases ssl-opt: remove redundant ECDSA dependencies in TLS1.3 tests 2023-03-06 14:48:39 +01:00
scripts Merge pull request #7243 from valeriosetti/issue7148 2023-03-14 11:07:56 +01:00
src Merge pull request #6500 from yanrayw/split-TLS-connection-func-into-ssl_helpers 2023-03-15 10:50:03 +01:00
suites Fix segfault in mbedtls_oid_get_numeric_string 2023-03-16 01:06:41 -04:00
.gitignore Test the PSA alternative header configuration macros 2023-02-23 17:18:33 +01:00
CMakeLists.txt Fix build errors in CMake 2023-03-13 19:20:42 +08:00
compat-in-docker.sh Use OPENSSL everywhere, not OPENSSL_CMD 2022-12-19 11:42:12 +01:00
compat.sh Update some comments 2023-02-23 16:03:56 +08:00
context-info.sh Modifies tests in context-info.sh 2021-06-16 16:19:53 +01:00
Descriptions.txt
make-in-docker.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
Makefile Fix build errors in CMake 2023-03-13 19:20:42 +08:00
ssl-opt-in-docker.sh Use OPENSSL everywhere, not OPENSSL_CMD 2022-12-19 11:42:12 +01:00
ssl-opt.sh fix extra whitespaces 2023-03-13 13:55:28 +01:00