Skip to content
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

Possible race condition in get_window_title #122

Open
gucki opened this issue Apr 15, 2024 · 0 comments
Open

Possible race condition in get_window_title #122

gucki opened this issue Apr 15, 2024 · 0 comments

Comments

@gucki
Copy link

gucki commented Apr 15, 2024

I was looking a bit into the code because I noticed the title of a window's struct is not updated. While looking at the code I saw that first the length of the window title is retrieved, then a vec of that size is created and the title loaded into it. Imo this is prone to a race condition: if the window title length changes during the calls (which is of course very unlikely in that short timeframe, but still possible). Or am I mistaken?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant