Browse Source

Prevent out of bounds parameter touch in carla-native plugin

Fixes #992

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc2
falkTX 4 years ago
parent
commit
37b6f040ca
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      source/backend/engine/CarlaEngineNative.cpp

+ 4
- 1
source/backend/engine/CarlaEngineNative.cpp View File

@@ -366,7 +366,7 @@ public:
}
}

void setParameterTouchFromUI(const uint32_t pluginId, uint32_t index, const bool touch)
void setParameterTouchFromUI(const uint32_t pluginId, const uint32_t index, const bool touch)
{
uint32_t rindex = index;
if (_getRealIndexForPluginParameter(pluginId, rindex))
@@ -1714,6 +1714,9 @@ private:
rindex += plugin->getParameterCount();
}

if (rindex >= kNumInParams)
return false;

return true;
}



Loading…
Cancel
Save