mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *bin = Malloc(bin_size);
|
void *bin = ZeroMalloc(bin_size + 1);
|
||||||
bin_size = Base64Decode(bin, src, size);
|
bin_size = Base64Decode(bin, src, size);
|
||||||
if (bin_size == 0)
|
if (bin_size == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user