VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Unix
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2022-02-18 01:23:26 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2022-02-18 01:24:32 +0100
commitb52ce86040e25dc5906adab872558547355b5637 (patch)
tree3d3b4b5f856d1f64f1cf2ed7e5c6bf4344832d30 /src/Platform/Unix
parent662bb60fe433506d2a556170c3000c101eeb7bd7 (diff)
downloadVeraCrypt-b52ce86040e25dc5906adab872558547355b5637.tar.gz
VeraCrypt-b52ce86040e25dc5906adab872558547355b5637.zip
Linux: Fix code dump when built with -D_GLIBCXX_ASSERTIONS caused by an assert in libstdc++.
The variable has enough capacity so pointer &buffer[0] is valid but since clear method was called, we are not supposed to access element at index 0. Related to Github issue #896
Diffstat (limited to 'src/Platform/Unix')
-rw-r--r--src/Platform/Unix/Process.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Platform/Unix/Process.cpp b/src/Platform/Unix/Process.cpp
index d148a686..36b01e6b 100644
--- a/src/Platform/Unix/Process.cpp
+++ b/src/Platform/Unix/Process.cpp
@@ -119,7 +119,6 @@ namespace VeraCrypt
throw_sys_if (fcntl (exceptionPipe.GetReadFD(), F_SETFL, O_NONBLOCK) == -1);
vector <char> buffer (4096), stdOutput (4096), errOutput (4096), exOutput (4096);
- buffer.clear ();
stdOutput.clear ();
errOutput.clear ();
exOutput.clear ();