Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-1032

java.lang.ArrayIndexOutOfBoundsException arraycopy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • None
    • Important

    Description

      When invoking writePacket, I quite often get the following exception:

      Caused by: java.lang.ArrayIndexOutOfBoundsException arraycopy: last source index 32768 out of bounds for byte[8192] 
      at java.base/java.lang.System.arraycopy(Native Method) 
      at org.apache.sshd.common.util.buffer.ByteArrayBuffer.putRawBytes(ByteArrayBuffer.java:230) 
      at org.apache.sshd.common.channel.ChannelAsyncOutputStream.createSendBuffer(ChannelAsyncOutputStream.java:229) 
      at org.apache.sshd.common.channel.ChannelAsyncOutputStream.doWriteIfPossible(ChannelAsyncOutputStream.java:164) 
      at org.apache.sshd.common.channel.ChannelAsyncOutputStream.writePacket(ChannelAsyncOutputStream.java:70)

      This never happened in 2.4.0, so it is definitely a regression

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              xvost Evgeny Pasynkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m