Valerio Setti cbecd0a40b pkwrite: fix buffer overrun
This commit fixes potential buffer overrun in:
- pk_write_rsa_der
- pk_write_ec_pubkey

In both functions, when dealing with opaque keys, there was no
check that the provided buffer was large enough to contain the
key being exported. This commit fixes this problem and it also
adds some testing in test_suite_pkwrite to trigger these checks.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2024-10-11 19:51:31 +01:00
..
.jenkins
configs Header updates 2023-11-03 12:21:36 +00: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 Misc improvements to comments 2024-09-03 10:10:18 +02:00
opt-testcases Remove "error" allowance in dtls_server 2024-10-01 12:50:13 +02:00
scripts Merge pull request #9669 from gilles-peskine-arm/analyze_outcome-split-3.6 2024-10-10 12:23:50 +00:00
src Fix code style (for real this time, hopefully) 2024-09-02 12:41:05 +02:00
suites pkwrite: fix buffer overrun 2024-10-11 19:51:31 +01:00
.gitignore Automatically generate tests/opt-testcases/tls13-compat.sh 2024-09-20 07:44:36 +02:00
CMakeLists.txt Have make ssl-opt generate tls13-compat.sh 2024-09-25 09:52:28 +02:00
compat-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
compat.sh Replace data_files path with variable in compat.sh 2024-07-08 15:36:48 +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 Have make ssl-opt generate tls13-compat.sh (make edition) 2024-09-25 10:27:47 +02: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