Confirm keys-params is not NULL before dereferencing in wc_XmssKey_GetPubLen.

Fixes F-3980.
This commit is contained in:
Kareem
2026-06-04 17:02:10 -07:00
parent 47bebc6441
commit 00c84ced25
+1 -1
View File
@@ -1575,7 +1575,7 @@ int wc_XmssKey_GetPubLen(const XmssKey* key, word32* len)
int ret = 0;
/* Validate parameters. */
if ((key == NULL) || (len == NULL)) {
if ((key == NULL) || (key->params == NULL) || (len == NULL)) {
ret = BAD_FUNC_ARG;
}
else {