1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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
This commit is contained in:
Mounir IDRASSI
2022-02-18 01:23:26 +01:00
parent 662bb60fe4
commit b52ce86040

View File

@@ -119,7 +119,6 @@ namespace VeraCrypt
throw_sys_if (fcntl (exceptionPipe.GetReadFD(), F_SETFL, O_NONBLOCK) == -1); throw_sys_if (fcntl (exceptionPipe.GetReadFD(), F_SETFL, O_NONBLOCK) == -1);
vector <char> buffer (4096), stdOutput (4096), errOutput (4096), exOutput (4096); vector <char> buffer (4096), stdOutput (4096), errOutput (4096), exOutput (4096);
buffer.clear ();
stdOutput.clear (); stdOutput.clear ();
errOutput.clear (); errOutput.clear ();
exOutput.clear (); exOutput.clear ();