VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/TextUserInterface.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 11:18:06 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 11:18:06 (GMT)
commit15069164872bc6324a9c4201b91329d92cd23cfa (patch)
tree2bca5a032520620fca98b8523781c9d760693ad0 /src/Main/TextUserInterface.cpp
parent2db742f465be1527cbf5d6a1b64d9dba89c3eaf5 (diff)
downloadVeraCrypt-15069164872bc6324a9c4201b91329d92cd23cfa.zip
VeraCrypt-15069164872bc6324a9c4201b91329d92cd23cfa.tar.gz
Linux: avoid overflow when specifying TiB size in command line
Diffstat (limited to 'src/Main/TextUserInterface.cpp')
-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 32c34fd..542468b 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)
{