diff --git a/wolfcrypt/src/coding.c b/wolfcrypt/src/coding.c index 823799dd92..70717964cb 100644 --- a/wolfcrypt/src/coding.c +++ b/wolfcrypt/src/coding.c @@ -297,7 +297,7 @@ static int CEscape(int escaped, byte e, byte* out, word32* i, word32 maxSz, if (raw) basic = e; - else if (e <= sizeof(base64Encode)) + else if (e < sizeof(base64Encode)) basic = base64Encode[e]; else return BAD_FUNC_ARG;