-
-
Notifications
You must be signed in to change notification settings - Fork 194
fix(event_controller): set_static_name UAF fixed, name now has static lifetime #2056
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
|
Ready for review @bilelmoussaoui |
gtk4/src/event_controller.rs
Outdated
| #[allow(unused_imports)] | ||
| use glib::translate::*; | ||
|
|
||
| use crate::prelude::*; | ||
| #[allow(unused_imports)] | ||
| use crate::{ffi, EventController}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #[allow(unused_imports)] | |
| use glib::translate::*; | |
| use crate::prelude::*; | |
| #[allow(unused_imports)] | |
| use crate::{ffi, EventController}; | |
| #[cfg(feature = "v4_8")] | |
| use glib::translate::*; | |
| #[cfg(feature = "v4_8")] | |
| use crate::{ffi, prelude::*, EventController}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prelude::* needs to be in scope in order for IsA<EventController> to work
gtk4/Gir.toml
Outdated
| [[object.function]] | ||
| name = "set_static_name" | ||
| manual = true # to make use of a static lifetimed string | ||
| doc_trait_name = "EventControllerExtManual" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| doc_trait_name = "EventControllerExtManual" |
|
Please rebase for the CI to pass. |
|
& squash the commits into a single one. |
dbc1b29 to
153b159
Compare
|
PR converted to draft due what @sdroege commented #2056 (comment) |
Co-authored-by: Sebastian Dröge <[email protected]>
…rs#2056) * fix(event_controller): set_static_name UAF fixed, name now has static lifetime * fix(event_controller): using GStr instead of str Co-authored-by: Sebastian Dröge <[email protected]> --------- Co-authored-by: Sebastian Dröge <[email protected]>
Fixes #2053