Possible allocation in VST3 processCallback

We do such checks by using the platform specific malloc hook facilities, every allocation triggered by new or malloc can be found this way. But it’s not portable. On macOS, you can inject your own malloc handler to the malloc zone returned by malloc_default_zone, on Windows there is _CrtSetAllocHook.

Sidenote: This won’t work for a plugin loaded in Logic

2 Likes