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.