Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: ZeroBytes in ShellStream [1525]

$
0
0
Somethimes in a shellstream there can be zero bytes found.
It was gone after the update in 12/2012 and appiert back
with the update in ~02/2013.

In the buffer i can find then lots of zero bytes, some text of the last read
and some of the new text. So the data without the zerobytes is currupt.

After the first accur the following reads will be damaged too.

Only after a reconnect the behaivor is gone.

I think, it is a miss callculatat index or buffer size on a buffer-resize situation.

Sould i try it, too fix it be myself?

Initialize Code:

var keyFile = new PrivateKeyFile(privateKey, passPhrase);
var connectionInfo = new PrivateKeyConnectionInfo(host, port, userName, keyFile);

var client = new SshClient(connectionInfo);

client.Connect();

var stream = client.CreateShellStream("", 80, 24, 800, 600, 1024);
Comments: ** Comment from web user: drieseng **

I failed to reproduce this issue, and also couldn't find a an explanation in our code.
Can you still reproduce this issue with the latest beta release (or SSH.NET built from TFS/SVN) ?


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>