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

BufferUnderflowException decoding length 6 UTF-8 sequences with direct buffers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      Decoding the sequence
      fd 93 a8 8c b9
      with the charset UTF-8 with direct buffers gives

      java.nio.BufferUnderflowException
      at java.nio.Buffer.nextGetIndex(Buffer.java:492)
      at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:223)
      at sun.nio.cs.UTF_8$Decoder.decodeBufferLoop(UTF_8.java:339)
      at sun.nio.cs.UTF_8$Decoder.decodeLoop(UTF_8.java:378)
      at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:562)

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: