Browse Source

AU Client: Avoid potential out-of-bounds read when adding buses

v6.1.6
reuk 4 years ago
parent
commit
423d46c9ba
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm

+ 3
- 1
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm View File

@@ -381,6 +381,8 @@ public:
totalInChannels = juceFilter->getTotalNumInputChannels();
totalOutChannels = juceFilter->getTotalNumOutputChannels();
addSupportedLayoutTagsForDirection (isInput);
if (err != noErr)
return err;
#endif
@@ -2266,7 +2268,7 @@ private:
void addSupportedLayoutTagsForDirection (bool isInput)
{
auto& layouts = isInput ? supportedInputLayouts : supportedOutputLayouts;
layouts.clear();
layouts.clearQuick();
auto numBuses = AudioUnitHelpers::getBusCount (*juceFilter, isInput);
for (int busNr = 0; busNr < numBuses; ++busNr)


Loading…
Cancel
Save