VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@hboeck.de>2019-11-12 18:04:31 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-12 18:04:31 +0100
commitf5aea0628116b7e6bfe958b105a72a254eb19c67 (patch)
tree4a54a651d11d98e2cb5ba2ef37360a97299b50b2
parent8e9627877de933db8870492bd4d17bb019b0b563 (diff)
downloadVeraCrypt-f5aea0628116b7e6bfe958b105a72a254eb19c67.tar.gz
VeraCrypt-f5aea0628116b7e6bfe958b105a72a254eb19c67.zip
Fix off by one overflow with 31 args (#541)
-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 ac8598f0..a21e118d 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