From 638787e2966ce48ca40f078d1c0ea923e0e012ff Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:03:50 -0700 Subject: [PATCH] cast malloc result --- tools/keytools/keygen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/keytools/keygen.c b/tools/keytools/keygen.c index 826eb7d75..986325193 100644 --- a/tools/keytools/keygen.c +++ b/tools/keytools/keygen.c @@ -1109,7 +1109,7 @@ static void keygen_ml_dsa(const char *priv_fname, uint32_t id_mask) exit(1); break; } - pubDer = malloc(pubDerSz); + pubDer = (uint8_t*)malloc(pubDerSz); if (pubDer == NULL) { fprintf(stderr, "Error: Failed to allocate memory for DER export\n");