wolfcrypt/src/asn.c: fix -Wconversion in GetLength_ex() added in fea7a89b86.

This commit is contained in:
Daniel Pouzzner
2024-07-11 14:47:58 -05:00
parent 3cc7bbea67
commit 76f669b1cc

View File

@ -2306,7 +2306,7 @@ int GetLength_ex(const byte* input, word32* inOutIdx, int* len, word32 maxIdx,
}
/* Check the number of bytes required are available. */
if ((idx + bytes) > maxIdx) {
if ((idx + (word32)bytes) > maxIdx) {
WOLFSSL_MSG("GetLength - bad long length");
return BUFFER_E;
}