-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rhai is unsound (use after free) #894
Comments
I'm outside right now but on the surface it looks legit... Why do you say therr is OB? |
Ah I see it now. The Sneaky... I must have a way to distinguish between |
So far I have not been able to find a way to avoid the user passing in That's because, to the Rust compiler, lifetimes do not form part of a type's ID. Therefore, it merrily thinks that |
Do you have any reason to allow registered functions take any non- |
Well, non- Therefore, I'm free to assume that, as long as the reference passed into the function outlives the function call, everything is OK. Except that if that reference is It is only with |
Consider the following example:
rhai v1.19.0
The text was updated successfully, but these errors were encountered: