-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ExceptionZoo holds static ref #3717
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
Conversation
611d858
to
6a226f8
Compare
Should it maybe be |
Maybe |
IMO if PyStatic is just a wrapper around |
PyStatic will be a wrapper of https://github.com/RustPython/RustPython/blob/main/vm/src/intern.rs#L170-L197 |
Even if we are going to use PyStatic, finishing #3700 first and working on top of it will be better. |
@coolreader18 changing to |
8a833dc
to
4771f93
Compare
idk why but performance drops a lot by this change |
784246b
to
72020ea
Compare
Why? And I don't think that cast is sound, unless it does a check like let pyref = ...;
let static_ref: &'static _ = PyStatic::leak(pyref);
let uaf = static_ref.cast_to_pyref();
let uaf2 = static_ref.cast_to_pyref(); |
And like, can't the current |
I was misunderstanding something. When we have What will be the problem of the example code? It doesn't seem any uaf happen there. If I didn't get which function do you want to refer by |
2cce181
to
bec34fc
Compare
No description provided.