Skip to content

Commit 4e92920

Browse files
cast variable to word32 for compare
1 parent 12cfca4 commit 4e92920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12518,7 +12518,7 @@ int wc_PKCS7_DecodeEnvelopedData(wc_PKCS7* pkcs7, byte* in,
1251812518
#ifndef NO_PKCS7_STREAM
1251912519
/* advance idx past recipient info set if not all recipients
1252012520
* parsed */
12521-
if (pkcs7->stream->totalRd < (pkcs7->stream->recipientSz +
12521+
if (pkcs7->stream->totalRd < ((word32)pkcs7->stream->recipientSz +
1252212522
tmpIdx)) {
1252312523
idx = tmpIdx + (word32)pkcs7->stream->recipientSz;
1252412524

0 commit comments

Comments
 (0)