Skip to content

Commit 73775f1

Browse files
committed
JUCE/VST2: Prevent crash of effGetSpeakerArrangement with null in/out
Adobe Premier 2023 when scanning for VST2 plugins calls Vst2::effGetSpeakerArrangement with pointer to null in/out speaker arrangement. Not sure if it valid to do for the host, but we have to adapt regardless. See: werman#154 JUCE issue: juce-framework/JUCE#1167
1 parent db45729 commit 73775f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

external/JUCE/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ class JuceVSTWrapper : public AudioProcessorListener,
19721972
auto** pluginInput = reinterpret_cast<Vst2::VstSpeakerArrangement**> (args.value);
19731973
auto** pluginOutput = reinterpret_cast<Vst2::VstSpeakerArrangement**> (args.ptr);
19741974

1975-
if (pluginHasSidechainsOrAuxs() || processor->isMidiEffect())
1975+
if (pluginHasSidechainsOrAuxs() || processor->isMidiEffect() || !*pluginInput || !*pluginOutput)
19761976
return false;
19771977

19781978
auto inputLayout = processor->getChannelLayoutOfBus (true, 0);

0 commit comments

Comments
 (0)