Fix #106040: pasting long text fails in Gnome-Shell/Wayland #106091

Closed
Campbell Barton wants to merge 1 commits from ideasman42/blender:pr-106040-fix into blender-v3.5-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Campbell Barton e44c818dbd Fix #106040: pasting long text fails in Gnome-Shell/Wayland
Workaround gnome-shell including uninitialized memory when pasting
from the clipboard. Where `read` would not write data into the range
return by the length.

Reading from the pipe into a power-of-two buffer
works around the problem.

It's not clear why this only impacts gnome-shell - as there is no
significant down-side to changing the buffer size, apply a workaround.
2023-03-24 20:56:49 +11:00