mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux/MacOSX: add missing check for PIM max value on volume creation wizard
This commit is contained in:
@@ -39,7 +39,8 @@ namespace VeraCrypt
|
||||
if (pimStr.IsEmpty())
|
||||
return 0;
|
||||
if (((size_t) wxNOT_FOUND == pimStr.find_first_not_of (wxT("0123456789")))
|
||||
&& pimStr.ToLong (&pim))
|
||||
&& pimStr.ToLong (&pim)
|
||||
&& pim <= MAX_PIM_VALUE)
|
||||
return (int) pim;
|
||||
else
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user