2004-09-24 Casey Marshall <csm@gnu.org>

* java/util/PropertyPermissionCollection.java
	(implies): avoid infinite loop.

From-SVN: r88033
This commit is contained in:
Casey Marshall 2004-09-24 13:27:57 +00:00 committed by Michael Koch
parent 54e075fe1e
commit c80a4b7eec
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-09-24 Casey Marshall <csm@gnu.org>
* java/util/PropertyPermissionCollection.java
(implies): avoid infinite loop.
2004-09-24 Andrew John Hughes <gnu_andrew@member.fsf.org>
* javax/security/auth/PrivateCredentialPermission.java

View File

@ -147,7 +147,7 @@ class PropertyPermissionCollection extends PermissionCollection
return true;
}
prefixLength = name.lastIndexOf('.', prefixLength);
prefixLength = name.lastIndexOf('.', prefixLength - 1);
if (prefixLength < 0)
return false;
name = name.substring(0, prefixLength + 1) + '*';