You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When SftpFileStream.Seek() is called with the origin parameter set to SeekOrigin.End and a negative offset, the resulting position is greater than the size of the stream. This is because the negative offset is subtracted from the total size, instead of added.
When
SftpFileStream.Seek()
is called with theorigin
parameter set toSeekOrigin.End
and a negative offset, the resulting position is greater than the size of the stream. This is because the negative offset is subtracted from the total size, instead of added.SSH.NET/src/Renci.SshNet/Sftp/SftpFileStream.cs
Line 802 in 7bdfc9e
SSH.NET/src/Renci.SshNet/Sftp/SftpFileStream.cs
Line 853 in 7bdfc9e
Failed test using
SftpFileStream.Seek()
:Furthermore, the tests for
SftpFileStream
only cover cases with theorigin
set toSeekOrigin.Begin
, and notSeekOrigin.Current
orSeekOrigin.End
.The text was updated successfully, but these errors were encountered: