From c2d44b43593ec1421f470123738c580aa68346db Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Fri, 1 May 2026 09:37:45 -0600 Subject: [PATCH] Bound by curSz in PKCS12 ContentInfo parsing --- wolfcrypt/src/pkcs12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/pkcs12.c b/wolfcrypt/src/pkcs12.c index 03b61bc058..c700da159a 100644 --- a/wolfcrypt/src/pkcs12.c +++ b/wolfcrypt/src/pkcs12.c @@ -328,7 +328,7 @@ static int GetSafeContent(WC_PKCS12* pkcs12, const byte* input, curIdx = localIdx; if ((ret = GetObjectId(input, &localIdx, &oid, oidIgnoreType, - (word32)size)) < 0) { + curIdx + (word32)curSz)) < 0) { WOLFSSL_LEAVE("Get object id failed", ret); freeSafe(safe, pkcs12->heap); return ret;