Skip to content
Snippets Groups Projects
Commit 51c5e1a2 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

Clear static variables in X509 parser on error


In mbedtls_x509_parser.c there are some static arrays that are filled
during the integrity check and then read whenever an authentication
parameter is requested. However, they aren't cleared in case of an
integrity check failure, which can be problematic from a security
point of view. This patch clears these arrays in the case of failure.

Change-Id: I9d48f5bc71fa13e5a75d6c45b5e34796ef13aaa2
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent c8d64c54
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment