mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows: replace insecure wcscpy/wcscat/strcpy runtime functions with secure equivalents
This fixed failure to build driver for ARM64 with latest VS 2019
This commit is contained in:
@@ -707,7 +707,7 @@ BOOL TestSectorBufEncryption (PCRYPTO_INFO ci)
|
||||
if (!EAIsModeSupported (ci->ea, ci->mode))
|
||||
continue;
|
||||
|
||||
EAGetName (name, ci->ea, 0);
|
||||
EAGetName (name, ARRAYSIZE(name), ci->ea, 0);
|
||||
|
||||
if (EAInit (ci->ea, key1, ci->ks) != ERR_SUCCESS)
|
||||
return FALSE;
|
||||
@@ -1188,7 +1188,7 @@ BOOL TestSectorBufEncryption (PCRYPTO_INFO ci)
|
||||
if (!EAIsModeSupported (ci->ea, ci->mode))
|
||||
continue;
|
||||
|
||||
EAGetName (name, ci->ea, 0);
|
||||
EAGetName (name, ARRAYSIZE(name), ci->ea, 0);
|
||||
|
||||
if (EAInit (ci->ea, key1, ci->ks) != ERR_SUCCESS)
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user