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 2015/02/10 07:10:34 UTC

[jira] [Updated] (SSHD-406) Stop parsing pty-req modes for undefined opcodes

     [ https://issues.apache.org/jira/browse/SSHD-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Goldstein Lyor updated SSHD-406:
--------------------------------
    Attachment: 0015-SSHD-406-Stop-parsing-pty-req-modes-for-undefined-op.patch

Attached proposed code fix

> Stop parsing pty-req modes for undefined opcodes
> ------------------------------------------------
>
>                 Key: SSHD-406
>                 URL: https://issues.apache.org/jira/browse/SSHD-406
>             Project: MINA SSHD
>          Issue Type: Improvement
>            Reporter: Goldstein Lyor
>            Priority: Minor
>             Fix For: 0.14.0
>
>         Attachments: 0015-SSHD-406-Stop-parsing-pty-req-modes-for-undefined-op.patch
>
>
> According to [RFC 4254 - section 8|https://tools.ietf.org/html/rfc4254#section-8]:
> {quote}
>  Opcodes 160 to 255 are not yet defined, and cause parsing to stop.
> {quote}
> The current code does not account for this option and might cause a *NullPointerException* if such opcodes are ever found. While not likely to be "found in nature", I believe the attached fix makes the code more robust.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)