1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 17:49:52 +03:00

Mayaqua/Memory: Fix memory corruption in base64

This commit is contained in:
Yihong Wu 2023-03-31 09:14:39 +00:00
parent 423631100f
commit df7ea3c54a

View File

@ -3463,7 +3463,7 @@ void *Base64ToBin(UINT *out_size, const void *src, const UINT size)
return NULL;
}
void *bin = Malloc(bin_size);
void *bin = ZeroMalloc(bin_size + 1);
bin_size = Base64Decode(bin, src, size);
if (bin_size == 0)
{