1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Linux: avoid overflow when specifying TiB size in command line

This commit is contained in:
Mounir IDRASSI
2016-08-15 13:18:06 +02:00
parent 2db742f465
commit 1506916487

View File

@@ -622,7 +622,7 @@ namespace VeraCrypt
throw MissingArgument (SRC_POS); throw MissingArgument (SRC_POS);
wstring sizeStr = AskString (options->Type == VolumeType::Hidden ? _("\nEnter hidden volume size (sizeK/size[M]/sizeG): ") : _("\nEnter volume size (sizeK/size[M]/sizeG): ")); wstring sizeStr = AskString (options->Type == VolumeType::Hidden ? _("\nEnter hidden volume size (sizeK/size[M]/sizeG): ") : _("\nEnter volume size (sizeK/size[M]/sizeG): "));
int multiplier = 1024 * 1024; uint64 multiplier = 1024 * 1024;
if (sizeStr.find (L"K") != string::npos) if (sizeStr.find (L"K") != string::npos)
{ {