bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22713] DigestInputStream computes the wrong result


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22713] DigestInputStream computes the wrong result
Date: 16 Oct 2005 01:26:44 -0000

DigestInputStream passes extra bytes through the
MessageDigest, causing the wrong hash value to be
computed. The bug is obvious once you look at the
erroneous code.. see attached patch.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2003-11-28 
23:03 -------
Thanks a lot. This is obviously correct.
I committed the patch as follows:

2003-11-28  Mark Wielaard  <address@hidden>

        Reported by Archie Cobbs:
        * java/security/DigestInputStream.java (read(byte[], int, int): Call
        digest.update() with temp, not len as lenght.

Will turn the test case into a mauve test.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22713





reply via email to

[Prev in Thread] Current Thread [Next in Thread]