-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P5
-
Affects Version/s: 5.0
-
Component/s: security-libs
-
generic
-
solaris_9
investigate whether an IO stream should be closed:
---------------------------------------------
sun.security.provider.JavaKeyStore
public void engineLoad(InputStream stream, char[] password)
throws IOException, NoSuchAlgorithmException, CertificateException
{
...
if (password != null) {
md = getPreKeyedHash(password);
dis = new DataInputStream(new DigestInputStream(stream, md));
} else {
dis = new DataInputStream(stream);
}
}
public void engineStore(OutputStream stream, char[] password)
throws IOException, NoSuchAlgorithmException, CertificateException
{
...
DataOutputStream dos
= new DataOutputStream(new DigestOutputStream(stream, md));
}
---------------------------------------------
sun.security.provider.JavaKeyStore
public void engineLoad(InputStream stream, char[] password)
throws IOException, NoSuchAlgorithmException, CertificateException
{
...
if (password != null) {
md = getPreKeyedHash(password);
dis = new DataInputStream(new DigestInputStream(stream, md));
} else {
dis = new DataInputStream(stream);
}
}
public void engineStore(OutputStream stream, char[] password)
throws IOException, NoSuchAlgorithmException, CertificateException
{
...
DataOutputStream dos
= new DataOutputStream(new DigestOutputStream(stream, md));
}