Skip to content

Commit

Permalink
Linux: Fix code dump when built with -D_GLIBCXX_ASSERTIONS caused by …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
idrassi committed Feb 18, 2022
1 parent 662bb60 commit b52ce86
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Platform/Unix/Process.cpp
Expand Up @@ -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 ();
Expand Down

0 comments on commit b52ce86

Please sign in to comment.