mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 08:20:58 +02:00
Bound by curSz in PKCS12 ContentInfo parsing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user