From 447c760be3c6fff6bd2255d6b3b06e8340feedb0 Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 4 Oct 2022 19:23:38 +0200 Subject: [PATCH] VST2 Host: Fix an incorrect assertion in the VST2 hosting code's handling of channel pointers --- .../juce_audio_processors/format_types/juce_VSTPluginFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index db7cd589ae..8758dcf41d 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -837,7 +837,7 @@ public: { auto& pointers = getPointers (Tag{}); - jassert ((int) pointers.size() < buffer.getNumChannels()); + jassert (buffer.getNumChannels() <= static_cast (pointers.capacity())); pointers.resize (jmax (pointers.size(), (size_t) buffer.getNumChannels())); std::copy (buffer.getArrayOfWritePointers(),