Hello, Florian,
I don't see any problem in this.
Even if an extension function receives a pointer to a local variable,
it should be fine as long as the variable is up the stack. Should it be
downwards, it is undefined behavior anyways, linked or not.
Maybe I have just misunderstood, can you please come up with a specific
scenario, even better an example, where the problem occurs?
Thank you,
Marcel Plch