mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Mayaqua/Memory: Fix memory corruption in base64
This commit is contained in:
parent
423631100f
commit
df7ea3c54a
@ -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