You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2016/09/16 13:52:20 UTC
[jira] [Assigned] (SSHD-699) Server receiving 0-length
SSH_MSG_IGNORE causes Buffer Underflow exception
[ https://issues.apache.org/jira/browse/SSHD-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Goldstein Lyor reassigned SSHD-699:
-----------------------------------
Assignee: Goldstein Lyor
> Server receiving 0-length SSH_MSG_IGNORE causes Buffer Underflow exception
> --------------------------------------------------------------------------
>
> Key: SSHD-699
> URL: https://issues.apache.org/jira/browse/SSHD-699
> Project: MINA SSHD
> Issue Type: Improvement
> Affects Versions: 1.2.0
> Reporter: Johan Östling
> Assignee: Goldstein Lyor
> Priority: Minor
>
> 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:
> {code:title=AbstractSessionTest.java|borderStyle=solid}
> @Test
> public void testZeroLengthIgnoreMessage() throws Exception {
> Buffer msg = session.createBuffer(SshConstants.SSH_MSG_IGNORE, Byte.SIZE);
> session.handleIgnore(msg);
> }
> {code}
> This is a regression since 0.14.0, which did not have this problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)