mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -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())
|
if (pimStr.IsEmpty())
|
||||||
return 0;
|
return 0;
|
||||||
if (((size_t) wxNOT_FOUND == pimStr.find_first_not_of (wxT("0123456789")))
|
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;
|
return (int) pim;
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user