From b8427fcf6c6fc828ae740036a7441056507bf246 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 11 Apr 2015 08:57:10 +0200 Subject: [PATCH] Misc --- source/backend/plugin/CarlaPluginLV2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/backend/plugin/CarlaPluginLV2.cpp b/source/backend/plugin/CarlaPluginLV2.cpp index eae5993fd..6dcb11360 100644 --- a/source/backend/plugin/CarlaPluginLV2.cpp +++ b/source/backend/plugin/CarlaPluginLV2.cpp @@ -2692,6 +2692,7 @@ public: if (fEventsIn.ctrl != nullptr && (fEventsIn.ctrl->type & CARLA_EVENT_TYPE_MIDI) != 0) { const uint32_t j = fEventsIn.ctrlIndex; + CARLA_SAFE_ASSERT(j < fEventsIn.count); if (pData->options & PLUGIN_OPTION_SEND_ALL_SOUND_OFF) {