From: Casey Marshall Date: Fri, 24 Sep 2004 13:27:57 +0000 (+0000) Subject: 2004-09-24 Casey Marshall X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c80a4b7eecfa7fa7d602bb18d668b6678ee6d1c8;p=gcc.git 2004-09-24 Casey Marshall * java/util/PropertyPermissionCollection.java (implies): avoid infinite loop. From-SVN: r88033 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 835d744dc26..8580a9f5b10 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-09-24 Casey Marshall + + * java/util/PropertyPermissionCollection.java + (implies): avoid infinite loop. + 2004-09-24 Andrew John Hughes * javax/security/auth/PrivateCredentialPermission.java diff --git a/libjava/java/util/PropertyPermissionCollection.java b/libjava/java/util/PropertyPermissionCollection.java index 76110349583..5c799238f3f 100644 --- a/libjava/java/util/PropertyPermissionCollection.java +++ b/libjava/java/util/PropertyPermissionCollection.java @@ -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) + '*';