Skip to content

Commit 1cf96eb

Browse files
Merge pull request wolfSSL#7741 from douzzer/20240714-asn-Wconversion
20240714-asn-Wconversion
2 parents baec0ce + 76f669b commit 1cf96eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ int GetLength_ex(const byte* input, word32* inOutIdx, int* len, word32 maxIdx,
23062306
}
23072307

23082308
/* Check the number of bytes required are available. */
2309-
if ((idx + bytes) > maxIdx) {
2309+
if ((idx + (word32)bytes) > maxIdx) {
23102310
WOLFSSL_MSG("GetLength - bad long length");
23112311
return BUFFER_E;
23122312
}

0 commit comments

Comments
 (0)