Browse Source

Refuse to load plugin bridges that have mismatched struct size

tags/1.9.4
falkTX 10 years ago
parent
commit
b8e4582c4a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      source/backend/engine/CarlaEngineBridge.cpp

+ 3
- 0
source/backend/engine/CarlaEngineBridge.cpp View File

@@ -320,6 +320,9 @@ public:
carla_stdout(" sizeof(BridgeRtData): %i/" P_SIZE, shmRtDataSize, sizeof(BridgeRtData));
carla_stdout(" sizeof(BridgeNonRtData): %i/" P_SIZE, shmNonRtDataSize, sizeof(BridgeNonRtData));

if (shmRtDataSize != sizeof(BridgeRtData) || shmNonRtDataSize != sizeof(BridgeNonRtData))
return false;

startThread();

CarlaEngine::init(clientName);


Loading…
Cancel
Save