Fix dumb memory error when reading buffers

Not sure how this got in, and I'm even less sure why this has not caused
any issues before this. In the particular case that was causing a crash,
the host was sending 138 sample sized buffers. This error likely only
became visible because the lack of memory alignment caused writes to
parts of the vector objects themselves.
This commit is contained in:
Robbert van der Helm
2020-06-18 18:37:07 +02:00
parent d032405c78
commit 471d87bc16
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -18,6 +18,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
### Fixed
- Fixed memory error that was causing playback issues with some buffer sizes in
Mixbus6.
- Fixed plugin group socket name generation. This prevented plugin groups with
the same name from being used simultaneously in multiple Wine prefixes.
+1 -1
View File
@@ -512,7 +512,7 @@ void PluginBridge::process_replacing(AEffect* /*plugin*/,
std::vector<std::vector<float>> input_buffers(
plugin.numInputs, std::vector<float>(sample_frames));
for (int channel = 0; channel < plugin.numInputs; channel++) {
std::copy(inputs[channel], inputs[channel] + sample_frames + 1,
std::copy(inputs[channel], inputs[channel] + sample_frames,
input_buffers[channel].begin());
}