From b52ce86040e25dc5906adab872558547355b5637 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 18 Feb 2022 01:23:26 +0100 Subject: 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 --- src/Platform/Unix/Process.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/Platform') 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 buffer (4096), stdOutput (4096), errOutput (4096), exOutput (4096); - buffer.clear (); stdOutput.clear (); errOutput.clear (); exOutput.clear (); -- cgit v1.2.3