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

BufferUnderflowException decoding length 6 UTF-8 sequences with direct buffers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • core-libs
    • b27
    • generic
    • generic
    • Not verified

      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)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: