----- Forwarded Message -----
From: Nguyen Tran Vu Linh <[email protected]>
To: "[email protected]" <[email protected]>
Cc: 
Sent: Wednesday, February 9, 2011 10:54 AM
Subject: Sending .pgp with Jsch and Jzlib ArrayIndexOutOfBound Exception


Hi,

I got ArrayIndexOutOfBound while using Jsch-0.1.4.x to send medium/large 
(encrypted/signed) .pgp files (>=60KB and without ARMOR). I just set the 
session config (compression.c2s and compression.s2c) to use packet compression 
algorithm ("zlib") and always got the above exception. The exception only 
occurs with .pgp file without ARMOR; with ARMOR files or normal files (not 
encrypted/signed) or small .pgp files (<10KB), everything is okay. I debug my 
application many times and I guess the bug come from Jzlib library (Compression 
class) because without using packet compression algorithm (e.g. keep the 2 
compression parameters as default value - "none"), the client works fine.

Maybe Jsch does not fully support packet compression, please confirm.

For more details, you can see it here: 
https://sourceforge.net/tracker/?func=detail&aid=3138525&group_id=64920&atid=509122
 (last update)
 
Regards,

------
Steven Nguyen


      
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to