2004-09-24 Casey Marshall <csm@gnu.org>
authorCasey Marshall <csm@gnu.org>
Fri, 24 Sep 2004 13:27:57 +0000 (13:27 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Fri, 24 Sep 2004 13:27:57 +0000 (13:27 +0000)
* java/util/PropertyPermissionCollection.java
(implies): avoid infinite loop.

From-SVN: r88033

libjava/ChangeLog
libjava/java/util/PropertyPermissionCollection.java

index 835d744dc2659886c7106e71a7207b50d735955d..8580a9f5b10f785b9abe639792406c2182c67f2c 100644 (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
index 761103495838fc18c0ca9257a0103e18e9fe2ef7..5c799238f3f2cffeff675a390abcbfdde42601e6 100644 (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) + '*';