VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 13:18:06 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 13:18:06 +0200
commit15069164872bc6324a9c4201b91329d92cd23cfa (patch)
tree2bca5a032520620fca98b8523781c9d760693ad0
parent2db742f465be1527cbf5d6a1b64d9dba89c3eaf5 (diff)
downloadVeraCrypt-15069164872bc6324a9c4201b91329d92cd23cfa.tar.gz
VeraCrypt-15069164872bc6324a9c4201b91329d92cd23cfa.zip
Linux: avoid overflow when specifying TiB size in command line
-rw-r--r--src/Main/TextUserInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp
index 32c34fd3..542468b5 100644
--- a/src/Main/TextUserInterface.cpp
+++ b/src/Main/TextUserInterface.cpp
@@ -622,7 +622,7 @@ namespace VeraCrypt
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): "));
- int multiplier = 1024 * 1024;
+ uint64 multiplier = 1024 * 1024;
if (sizeStr.find (L"K") != string::npos)
{