classpath
[Top][All Lists]
Advanced

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

java.security.Security bug


From: Casey Marshall
Subject: java.security.Security bug
Date: Thu, 12 Dec 2002 20:59:50 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021130

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(Not sure if this has been caught yet, but it is still in the CVS sources)

The loadProviders method of java.security.Security has a rather silly
bug in it:

- --- LINE 92 ---
~ while ((name = secprops.getProperty("security.provider." + i++)) !=
~        null)
~   {
~     Exception exception = null;

~     try
~       {
         providers.addElement(Class.forName(name).newInstance());
         i++;

(etc.)
- -----

The value `i' is incremented twice in the `while' loop. Remove one of
them for the correct behavior.

Cheers,

- --
Casey Marshall < address@hidden > http://metastatic.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9+WlGgAuWMgRGsWsRArCEAJ4iiNp8Id6uGYC/5P0KDakOQ9Y8jwCfYHCn
PgMtjnykxhRMArRvfG84AHc=
=vtaa
-----END PGP SIGNATURE-----




reply via email to

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