From: Trevor P. <tr...@tr...> - 2003-11-20 00:25:03
|
Hello Jython developers, I noticed a bug in the sha module, in jython 2.1. copy() appears to initialize a new sha instance, not copy the old one. A cursory glance at the code in SHA1.java looks like not all the member variables are being copied. In particular, the 'buffer', 'buffered', and 'count' variables aren't being copied: private SHA1 (SHA1 md) { this(); data = (int[])md.data.clone(); digest = (int[])md.digest.clone(); tmp = (byte[])md.tmp.clone(); w = (int[])md.w.clone(); } Trevor |