Wayland: Fix handling of clipboard set to self

Passing any part of the result of glfwGetClipboardString to
glfwSetClipboardString would result in, at best, a use-after-free error.

(cherry picked from commit 9c95cfb9f1)
This commit is contained in:
Camilla Löwy
2022-03-22 18:46:57 +01:00
parent f93751ce68
commit 22f718dcf4
2 changed files with 11 additions and 11 deletions
+2
View File
@@ -129,6 +129,8 @@ information on what to include when reporting a bug.
match event scancode (#1993)
- [Win32] Bugfix: Instance-local operations used executable instance (#469,#1296,#1395)
- [Cocoa] Bugfix: A connected Apple AirPlay would emit a useless error (#1791)
- [Wayland] Bugfix: `glfwSetClipboardString` would fail if set to result of
`glfwGetClipboardString`
## Contact