mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-05 16:46:35 -05:00
Windows/Linux/MacOSX: Set maximum PIM value to 2147468 in order to avoid having negative values for iterations count using the formula 15000 + (PIM x 1000). Add specific error message to XML language files.
This commit is contained in:
1 parent
0b914c8f5d
commit
b261177b8f
50 files changed
+88
-15
No files matched your search
@@ -182,6 +182,12 @@ namespace VeraCrypt
|
||||
try
|
||||
{
|
||||
pim = (int) StringConverter::ToUInt32 (pimStr);
|
||||
if (pim > MAX_PIM_VALUE)
|
||||
{
|
||||
pim = -1;
|
||||
ShowError ("PIM_TOO_BIG");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user