mirror of https://github.com/wolfSSL/wolfssl.git
wolfcrypt/src/coding.c: fix incorrect array bounds check in CEscape(), introduced in 8bbe8a7c8a
(before which there was no bounds check at all).
parent
5ef4732745
commit
b07f2cb461
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue