Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8120290

TextInputControl.paste() doesn't strip NULL characters from clipboard

    XMLWordPrintable

Details

    Description

      Strings retrieved from the Clipboard class are often terminated with a \0 character on Windows. Pasting into TextField or TextArea causes the caret position to be corrupted and shouldn't be allowed.

      To reproduce, run HelloTextArea and copy text from the Windows command window into either the TextField or TextArea.

      Attachments

        Issue Links

          Activity

            People

              rbair Richard Bair (Inactive)
              leifs Leif Samuelsson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: