VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Platform
diff options
context:
space:
mode:
authorHanno Böck <hanno@hboeck.de>2019-11-12 17:04:31 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-12 17:04:31 (GMT)
commitf5aea0628116b7e6bfe958b105a72a254eb19c67 (patch)
tree4a54a651d11d98e2cb5ba2ef37360a97299b50b2 /src/Platform
parent8e9627877de933db8870492bd4d17bb019b0b563 (diff)
downloadVeraCrypt-f5aea0628116b7e6bfe958b105a72a254eb19c67.zip
VeraCrypt-f5aea0628116b7e6bfe958b105a72a254eb19c67.tar.gz
Fix off by one overflow with 31 args (#541)
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/Unix/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Platform/Unix/Process.cpp b/src/Platform/Unix/Process.cpp
index ac8598f..a21e118 100644
--- a/src/Platform/Unix/Process.cpp
+++ b/src/Platform/Unix/Process.cpp
@@ -30,7 +30,7 @@ namespace VeraCrypt
string Process::Execute (const string &processName, const list <string> &arguments, int timeOut, ProcessExecFunctor *execFunctor, const Buffer *inputData)
{
char *args[32];
- if (array_capacity (args) <= arguments.size())
+ if (array_capacity (args) <= (arguments.size() + 1))
throw ParameterTooLarge (SRC_POS);
#if 0