Return-Path: Delivered-To: apmail-incubator-felix-commits-archive@www.apache.org Received: (qmail 93669 invoked from network); 24 Jul 2006 15:28:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 15:28:17 -0000 Received: (qmail 82703 invoked by uid 500); 24 Jul 2006 15:28:17 -0000 Delivered-To: apmail-incubator-felix-commits-archive@incubator.apache.org Received: (qmail 82661 invoked by uid 500); 24 Jul 2006 15:28:17 -0000 Mailing-List: contact felix-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-commits@incubator.apache.org Received: (qmail 82650 invoked by uid 99); 24 Jul 2006 15:28:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 08:28:17 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 08:28:16 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 652671A981F; Mon, 24 Jul 2006 08:27:56 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r425093 - /incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java Date: Mon, 24 Jul 2006 15:27:56 -0000 To: felix-commits@incubator.apache.org From: rickhall@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060724152756.652671A981F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: rickhall Date: Mon Jul 24 08:27:55 2006 New Revision: 425093 URL: http://svn.apache.org/viewvc?rev=425093&view=rev Log: Fixed a bug in the getEntryPaths() enumeration that could lead to a string index out of bounds exception. Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java Modified: incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java URL: http://svn.apache.org/viewvc/incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java?rev=425093&r1=425092&r2=425093&view=diff ============================================================================== --- incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java (original) +++ incubator/felix/trunk/org.apache.felix.framework/src/main/java/org/apache/felix/framework/GetEntryPathsEnumeration.java Mon Jul 24 08:27:55 2006 @@ -44,7 +44,7 @@ m_path = m_path.substring(1); } // Add a '/' to the end if not present. - if ((m_path.length() > 0) && (m_path.charAt(path.length() - 1) != '/')) + if ((m_path.length() > 0) && (m_path.charAt(m_path.length() - 1) != '/')) { m_path = m_path + "/"; }