mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
word32 casting inSz, wolfSSL_d2i_PrivateKey
This commit is contained in:
committed by
Jacob Barthelmeh
parent
c20bff79ad
commit
91632d64f1
@@ -7129,7 +7129,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey(int type, WOLFSSL_EVP_PKEY** out,
|
|||||||
|
|
||||||
/* advance pointer with success */
|
/* advance pointer with success */
|
||||||
if (local != NULL) {
|
if (local != NULL) {
|
||||||
if ((idx + local->pkey_sz) <= inSz) {
|
if ((idx + local->pkey_sz) <= (word32)inSz) {
|
||||||
*in = *in + idx + local->pkey_sz;
|
*in = *in + idx + local->pkey_sz;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user