Johan Östling created SSHD-699:

             Summary: Server receiving 0-length SSH_MSG_IGNORE causes Buffer 
Underflow exception
                 Key: SSHD-699
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Johan Östling

Trying to establish the length of a message with only a header byte will cause 
a buffer underflow exception. I noticed it on SSH_MSG_IGNORE, but it is 
probably general to all messages.

Reproducible with unit test: (in AbstractSessionTest)
    public void testZeroLengthIgnoreMessage() throws Exception {
        Buffer msg = session.createBuffer(SshConstants.SSH_MSG_IGNORE, 

This is a regression since 0.14.0, which did not have this problem.

This message was sent by Atlassian JIRA

Reply via email to