mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
Merge pull request #1815 from domosekai/b64
Mayaqua/Memory: Fix memory corruption in base64
This commit is contained in:
commit
b4e26dec05
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user