Menu

#13 static variable in Buffer

open
nobody
None
5
2009-01-26
2009-01-26
Anonymous
No

there is a multihreading bug in the class Tamir.SharpSsh.jsch.Buffer, field:
static byte[] tmp=new byte[4];
( java version is : final byte[] tmp=new byte[4]; )
so if multiple session / channels are used ( in multiple threads ) then sent data may be corrupt ( when putInt is used at the same time )

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.