RFR: 8281384: Random chars on paste from Windows clipboard
Kevin Rushforth
kcr at openjdk.org
Tue Feb 25 13:50:08 UTC 2025
On Tue, 25 Feb 2025 13:25:07 GMT, Oliver Schmidtmer <oschmidtmer at openjdk.org> wrote:
> 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.
Reviewers: @kevinrushforth @lukostyra
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1724#issuecomment-2682037632
More information about the openjfx-dev
mailing list