Add changelog entry for x509 cert_write null dereference fix

Also fix a typo in cert_write.c

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
Waleed Elmelegy 2023-10-12 14:31:06 +01:00
parent 476c1198e8
commit 1444c0eb20
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
Bugfix
* Fix possible NULL dereference issue in X509 cert_write program if an entry in the san parameter is not separated by a colon.

View File

@ -584,7 +584,7 @@ usage:
if ((subtype_value = strchr(q, ':')) != NULL) {
*subtype_value++ = '\0';
} else {
mbedtls_printf("Invalid argument for option SAN: Entry should be seperated by a colon\n");
mbedtls_printf("Invalid argument for option SAN: Entry should be separated by a colon\n");
goto usage;
}
if (strcmp(q, "RFC822") == 0) {