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

Check clipboard TEXT handling #1031

Open
uli42 opened this issue Dec 22, 2021 · 0 comments
Open

Check clipboard TEXT handling #1031

uli42 opened this issue Dec 22, 2021 · 0 comments
Assignees

Comments

@uli42
Copy link
Member

uli42 commented Dec 22, 2021

I read an interesting blog post about Xwayland stuff (see https://roscidus.com/blog/blog/2021/10/30/xwayland/) and came across this section:

A strange problem I had was that, while pasting into GVim worked fine, xterm would segfault shortly after trying to paste into it. This turned out to be a bug in the way I was sending the notifications. If an X11 application requests the special TEXT target, it means that the sender should choose the exact format. You write the property with the chosen type (e.g. UTF8_STRING), but you must still send the notification with the target TEXT. xterm is a C application (thankfully no longer set-uid!) and seems to have a use-after-free bug in the timeout code.

We need to check if the clipboard code is handling the TEXT case correctly - which I doubt.

@uli42 uli42 self-assigned this Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant