mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Fix off by one overflow with 31 args (#541)
This commit is contained in:
committed by
Mounir IDRASSI
parent
8e9627877d
commit
f5aea06281
@@ -30,7 +30,7 @@ namespace VeraCrypt
|
|||||||
string Process::Execute (const string &processName, const list <string> &arguments, int timeOut, ProcessExecFunctor *execFunctor, const Buffer *inputData)
|
string Process::Execute (const string &processName, const list <string> &arguments, int timeOut, ProcessExecFunctor *execFunctor, const Buffer *inputData)
|
||||||
{
|
{
|
||||||
char *args[32];
|
char *args[32];
|
||||||
if (array_capacity (args) <= arguments.size())
|
if (array_capacity (args) <= (arguments.size() + 1))
|
||||||
throw ParameterTooLarge (SRC_POS);
|
throw ParameterTooLarge (SRC_POS);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|||||||
Reference in New Issue
Block a user