RFR: 8281384: Random chars on paste from Windows clipboard [v9]
Oliver Schmidtmer
oschmidtmer at openjdk.org
Mon Mar 31 17:48:50 UTC 2025
> Windows programs may reuse a clipboard buffer that is larger than the new content. In this case de NUL terminator is not at the end of the buffer, but within it.
> The current implementation copys the whole buffer into a text field, including the NUL terminator and the remaining chars.
>
> The JIRA ticket contains a JNA based sample program, which prefills the buffer for demonstrating this issue.
> If this should be added as a unit test, I'm open for advice how to do that.
Oliver Schmidtmer has updated the pull request incrementally with one additional commit since the last revision:
explicit break
-------------
Changes:
- all: https://git.openjdk.org/jfx/pull/1724/files
- new: https://git.openjdk.org/jfx/pull/1724/files/3a4eb33a..337a67fd
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jfx&pr=1724&range=08
- incr: https://webrevs.openjdk.org/?repo=jfx&pr=1724&range=07-08
Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jfx/pull/1724.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1724/head:pull/1724
PR: https://git.openjdk.org/jfx/pull/1724
More information about the openjfx-dev
mailing list