word32 casting inSz, wolfSSL_d2i_PrivateKey

This commit is contained in:
Takashi Kojo
2017-03-26 21:20:50 +09:00
committed by Jacob Barthelmeh
parent c20bff79ad
commit 91632d64f1

View File

@@ -7129,7 +7129,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey(int type, WOLFSSL_EVP_PKEY** out,
/* advance pointer with success */
if (local != NULL) {
if ((idx + local->pkey_sz) <= inSz) {
if ((idx + local->pkey_sz) <= (word32)inSz) {
*in = *in + idx + local->pkey_sz;
}
}