Malloc/new in getNextAudioBlock

I just noticed this comment:

// (try to avoid doing a malloc here, as that'll blow up things like Pro-Tools)

Obviously I try and avoid malloc/new in the audio thread since it can be a rather slow. But every once and a while I use a std::vector or an Array to pass events in/out of the audiothread. What will happen if std::vector or Array does a malloc/new internally? Will it crash Pro-Tools /  other hosts?

It won't actually crash anything, but it can cause a glitch. But yeah, I know, it's often just not practical to avoid allocation completely..