mbedtls/tests
Paul Elliott 319b5939dd Remove Extraneous bytes from buffer post pem write
In order to remove large buffers from the stack, the der data is written
into the same buffer that the pem is eventually written into, however
although the pem data is zero terminated, there is now data left in the
buffer after the zero termination, which can cause
mbedtls_x509_crt_parse to fail to parse the same buffer if passed back
in. Patches also applied to mbedtls_pk_write_pubkey_pem, and
mbedtls_pk_write_key_pem, which use similar methods of writing der data
to the same buffer, and tests modified to hopefully catch any future
regression on this.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2020-12-07 16:47:02 +00:00
..
.jenkins Add Jenkinsfile for PR job 2018-10-19 15:25:10 +01:00
configs Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
data_files Merge pull request #3596 from gilles-peskine-arm/cert-gen-cleanup-202008-2.16 2020-10-15 13:33:12 +02:00
git-scripts Fix license header in pre-commit hook 2020-08-19 17:54:47 +02:00
scripts Add a build with MBEDTLS_ERROR_STRERROR_DUMMY 2020-11-16 13:09:41 +01:00
suites Remove Extraneous bytes from buffer post pem write 2020-12-07 16:47:02 +00:00
.gitignore
CMakeLists.txt Merge remote-tracking branch 'origin/pr/2293' into mbedtls-2.16 2019-03-05 16:31:02 +00:00
compat.sh Fix printf escape errors in shell scripts 2020-10-27 23:41:28 +01:00
Descriptions.txt
Makefile Merge remote-tracking branch 'origin/pr/2053' into mbedtls-2.16 2019-06-21 15:59:16 +01:00
ssl-opt.sh Fix printf escape errors in shell scripts 2020-10-27 23:41:28 +01:00