From c80a4b7eecfa7fa7d602bb18d668b6678ee6d1c8 Mon Sep 17 00:00:00 2001 From: Casey Marshall Date: Fri, 24 Sep 2004 13:27:57 +0000 Subject: [PATCH] 2004-09-24 Casey Marshall * java/util/PropertyPermissionCollection.java (implies): avoid infinite loop. From-SVN: r88033 --- libjava/ChangeLog | 5 +++++ libjava/java/util/PropertyPermissionCollection.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) + '*'; -- 2.30.2