Skip to content

Commit

Permalink
Merge pull request #8309 from douzzer/20241221-fix-CEscape-bounds-check
Browse files Browse the repository at this point in the history
20241221-fix-CEscape-bounds-check
  • Loading branch information
dgarske authored Dec 21, 2024
2 parents 50a0773 + b07f2cb commit 2bcad98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolfcrypt/src/coding.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bcad98

Please sign in to comment.