Gilles Peskine 5dea5f355a mbedtls_ecdsa_raw_to_der and mbedtls_ecdsa_der_to_raw: reject bits==0
Cleanly reject bits == 0 when calling mbedtls_ecdsa_raw_to_der() and
mbedtls_ecdsa_der_to_raw(). This can plausibly happen when bits is
user-provided data that the calling application doesn't check.

Before this patch, there was typically-benign undefined behavior, such as
adding 0 to a null pointer or calling memcpy on a null pointer with a size
of 0.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-10-28 10:09:18 +01:00
..
.jenkins
configs Add missing algorithm in the test driver configuration 2024-10-10 18:18:45 +02:00
docker/bionic Header updates 2023-11-03 12:21:36 +00:00
git-scripts Header updates 2023-11-03 12:21:36 +00:00
include fix PR9302 backporting issues 2024-10-22 13:31:19 +02:00
opt-testcases Add ignore list entries for TLS tests that are not executed 2024-10-10 18:02:12 +02:00
scripts Merge pull request #9608 from gilles-peskine-arm/outcome-check-repeated-configurations-all.sh-preliminaries-3.6 2024-10-25 11:47:48 +00:00
src Revert "Add generated files" 2024-10-15 12:06:18 +02:00
suites mbedtls_ecdsa_raw_to_der and mbedtls_ecdsa_der_to_raw: reject bits==0 2024-10-28 10:09:18 +01:00
.gitignore Declare a generated file that was added after 3.6.1 2024-10-15 12:06:18 +02:00
CMakeLists.txt Adjust file path for generate_tls13_compat_tests.py 2024-10-15 12:41:42 +01:00
compat-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
compat.sh Adjust file path for translate_ciphers.py 2024-10-15 12:41:42 +01:00
context-info.sh Update directory-climbing path in context-info.sh 2024-07-08 15:36:48 +01:00
Descriptions.txt
make-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
Makefile Adjust file path for generate_tls13_compat_tests.py 2024-10-15 12:41:42 +01:00
ssl-opt-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
ssl-opt.sh Skip ssl_server in config-suite-b 2024-09-25 17:53:39 +02:00