hello there, this is a patch for the above class. the corresponding ChangeLog entry follows:
2006-01-03 raif <[EMAIL PROTECTED]> * java/security/Security.java (getProvider): Ensures provider's name is not null, not an empty string, and is trimmed before usage. cheers; rsn
Index: Security.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/security/Security.java,v retrieving revision 1.38 diff -u -r1.38 Security.java --- Security.java 12 Dec 2005 15:28:48 -0000 1.38 +++ Security.java 2 Jan 2006 14:22:05 -0000 @@ -354,6 +354,14 @@ */ public static Provider getProvider(String name) { + if (name == null) + return null; + else + { + name = name.trim(); + if (name.length() == 0) + return null; + } Provider p; int max = providers.size (); for (int i = 0; i < max; i++)
pgp5qtAcRPrMo.pgp
Description: PGP signature
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches