However, back in the days I was developing VST plug-ins without JUCE, I noticed that some hosts are using the same buffer for input and output samples, whereas others are not. Consequently, what is wrong is doing some processes involving any input sample, if you have given a value to the corresponding output sample yet.