Browse Source

Fix out of bounds write on vst state save

pull/6/head
falkTX 8 years ago
parent
commit
19f82001a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/src/DistrhoPluginVST.cpp

+ 1
- 1
distrho/src/DistrhoPluginVST.cpp View File

@@ -546,7 +546,7 @@ public:

fStateChunk = new char[chunkSize];
std::memcpy(fStateChunk, chunkStr.buffer(), chunkStr.length());
fStateChunk[chunkSize] = '\0';
fStateChunk[chunkSize-1] = '\0';

for (std::size_t i=0; i<chunkSize; ++i)
{


Loading…
Cancel
Save