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

Ryosuke Kanda updated SSHD-1244:
--------------------------------
    Description: 
If the new window size specified by SSH_MSG_CHANNEL_WINDOW_ADJUST exceeds 
INT_MAX, it will not be recognized correctly.

I think the cause is in the following places:
org.apache.sshd.common.channel.Window.expand(int)

 

I am doing machine translation, so please allow it to be unnatural.

 

I encountered this issue when I was using ProFTPD as an SFTP server.
The version of ProFTPD is 1.3.5e.

The SFTP feature of ProFTPD notifies 2 ^ 32-1 bytes as the initial window size 
by default.
I've confirmed that SSHD can handle this without any problems, so I sent a 4GB 
file to see what happens when Window Adjust is done.
As a result, a Window Adjust was done and SSHD was unable to handle this 
successfully.

 

 

  was:
If the new window size specified by SSH_MSG_CHANNEL_WINDOW_ADJUST exceeds 
INT_MAX, it will not be recognized correctly.

I think the cause is in the following places:
org.apache.sshd.common.channel.Window.expand(int)

 

I am doing machine translation, so please allow it to be unnatural.

 

I encountered this issue when I was using ProFTPD as an SFTP server.
The version of ProFTPD is 1.3.5e.

The SFTP feature of ProFTPD notifies 2 ^ 32-1 bytes as the initial window size 
by default.
I've confirmed that SSHD can handle this without any problems, so I sent a 4GB 
file to see what happens when Window Adjust is done.
As a result, a Window Adjust was done and SSHD was unable to handle this 
successfully.


> Client fails window adjust above Integer.MAX_VALUE
> --------------------------------------------------
>
>                 Key: SSHD-1244
>                 URL: https://issues.apache.org/jira/browse/SSHD-1244
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.8.0
>            Reporter: Ryosuke Kanda
>            Assignee: Lyor Goldstein
>            Priority: Minor
>
> If the new window size specified by SSH_MSG_CHANNEL_WINDOW_ADJUST exceeds 
> INT_MAX, it will not be recognized correctly.
> I think the cause is in the following places:
> org.apache.sshd.common.channel.Window.expand(int)
>  
> I am doing machine translation, so please allow it to be unnatural.
>  
> I encountered this issue when I was using ProFTPD as an SFTP server.
> The version of ProFTPD is 1.3.5e.
> The SFTP feature of ProFTPD notifies 2 ^ 32-1 bytes as the initial window 
> size by default.
> I've confirmed that SSHD can handle this without any problems, so I sent a 
> 4GB file to see what happens when Window Adjust is done.
> As a result, a Window Adjust was done and SSHD was unable to handle this 
> successfully.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to