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

Merge pull request #1815 from domosekai/b64

Mayaqua/Memory: Fix memory corruption in base64
This commit is contained in:
Yihong Wu 2023-04-01 13:16:39 +09:00 committed by GitHub
commit b4e26dec05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{