Re: [JSch-users] ChannelDirectTCPIP isConnected function and channel ending
Status: Alpha
Brought to you by:
ymnk
From: Eric <eri...@iu...> - 2005-11-18 09:26:41
|
Le Vendredi 18 Novembre 2005 09:19, Atsuhiko Yamanaka a =E9crit=A0: > Hi, > Are you using aes*-cbc for cipher? If so, I found a bug and have fixed i= t. How do you know which cipher you're using ? > Please try > http://www.jcraft.com/jsch/jsch-0.1.24-rc5.zip It didn't fix the bug, I still got the same exception : ASSERT: Buffer.putByte(byte[],int,int): arraycopy(foo[16], 0, buffer[32768]= ,=20 32760, 16); produced by : =2D---8<----8<----8<----8<----8<----8<----8<----8<---- diff -rc includes/jsch-0.1.24-rc5/src/com/jcraft/jsch/Buffer.java=20 includes/jsch-0.1.24-rc5-debug/src/com/jcraft/jsch/Buffer.java *** includes/jsch-0.1.24-rc5/src/com/jcraft/jsch/Buffer.java Fri Jul 15= =20 16:26:11 2005 =2D-- includes/jsch-0.1.24-rc5-debug/src/com/jcraft/jsch/Buffer.java F= ri=20 Nov 18 09:59:18 2005 *************** *** 52,57 **** =2D-- 52,62 ---- putByte(foo, 0, foo.length); } public void putByte(byte[] foo, int begin, int length) { + if (index+length > buffer.length) + System.err.println("ASSERT: Buffer.putByte(byte[],int,int): " + + "arraycopy(foo["+foo.length+"], " + begin + + ", buffer["+buffer.length+"], " + index + + ", " + length + ");"); System.arraycopy(foo, begin, buffer, index, length); index+=3Dlength; } =2D---8<----8<----8<----8<----8<----8<----8<----8<---- Note : it kills abruptly the whole session, not only the involved channel (i hold two ChannelExec, some ChannelForwardedTCPIP, one ForwardedTCPIPDae= mon=20 and the involved ChannelDirectTCPIP) =2D-=20 Eric D=C9CORNOD Ing=E9nieur en d=E9veloppement d'applications ULP Multim=E9dia Universit=E9 Louis Pasteur courriel: eri...@iu... |