bug-classpath
[Top][All Lists]
Advanced

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

[Bug crypto/28204] PBEKeySpec incorrectly deletes the originally passed


From: mwringe at redhat dot com
Subject: [Bug crypto/28204] PBEKeySpec incorrectly deletes the originally passed password array
Date: 29 Jun 2006 22:07:52 -0000


------- Comment #2 from mwringe at redhat dot com  2006-06-29 22:07 -------
(In reply to comment #0)

> For Example:
> 
> char[] password = "foobar".toCharArray();
> PBEKeySpec keySpec = new PBEKeySpec(password); 
> keySpec.clearPassword();
> System.out.println (password);
> 
> The char array printed will be empty, when it should still contain 'foobar'.

I would like to add a mauve test for this, but I am unclear as to where it
should be added. Any ideas?


-- 


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





reply via email to

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