mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Reported by Archie Cobbs:
2003-12-02 Mark Wielaard <mark@klomp.org> Reported by Archie Cobbs: * java/security/DigestInputStream.java (read(byte[], int, int): Call digest.update() with temp, not len as lenght. From-SVN: r74186
This commit is contained in:
committed by
Michael Koch
parent
1c59130c86
commit
54cfd51955
@@ -1,5 +1,5 @@
|
||||
/* DigestInputStream.java --- An Input stream tied to a message digest
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -138,7 +138,7 @@ public class DigestInputStream extends FilterInputStream
|
||||
int temp = in.read(b, off, len);
|
||||
|
||||
if (state == true && temp != -1)
|
||||
digest.update(b, off, len);
|
||||
digest.update(b, off, temp);
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user