From 07201fa1aeecd81138887277f0fb5ce313455f24 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 24 May 2026 14:37:06 +0200 Subject: [PATCH] [NSS] Initialize src in SEC_PKCS5GetIV --- security/nss/lib/pk11wrap/pk11pbe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/nss/lib/pk11wrap/pk11pbe.c b/security/nss/lib/pk11wrap/pk11pbe.c index 1e2fabd24b..a62774ecdf 100644 --- a/security/nss/lib/pk11wrap/pk11pbe.c +++ b/security/nss/lib/pk11wrap/pk11pbe.c @@ -1103,7 +1103,7 @@ SEC_PKCS5GetIV(SECAlgorithmID *algid, SECItem *pwitem, PRBool faulty3DES) CK_MECHANISM_TYPE type; SECItem *param = NULL; SECItem *iv = NULL; - SECItem src; + SECItem src = { siBuffer, NULL, 0 }; int iv_len = 0; PK11SymKey *symKey; PK11SlotInfo *slot; @@ -1143,7 +1143,7 @@ SEC_PKCS5GetIV(SECAlgorithmID *algid, SECItem *pwitem, PRBool faulty3DES) type = PK11_AlgtagToMechanism(pbeAlg); param = PK11_ParamFromAlgid(algid); if (param == NULL) { - goto done; + goto loser; } slot = PK11_GetInternalSlot(); symKey = PK11_RawPBEKeyGen(slot, type, param, pwitem, faulty3DES, NULL);