http://nagoya.apache.org/bugzilla/show_bug.cgi?id=623 *** shadow/623 Wed Jun 13 07:54:37 2001 --- shadow/623.tmp.24206 Thu Jul 12 13:30:39 2001 *************** *** 1,9 **** +============================================================================+ ! | Infinite Loop in org/apache/xerces/utils/URI.java V1.3.0 | +----------------------------------------------------------------------------+ | Bug #: 623 Product: Xerces-J | ! | Status: RESOLVED Version: unspecified | ! | Resolution: FIXED Platform: All | | Severity: Major OS/Version: All | | Priority: High Component: Core | +----------------------------------------------------------------------------+ --- 1,9 ---- +============================================================================+ ! | Infinite Loop in org/apache/xerces/utils/URI.java V1.7.0 - the fix cause n | +----------------------------------------------------------------------------+ | Bug #: 623 Product: Xerces-J | ! | Status: REOPENED Version: unspecified | ! | Resolution: Platform: All | | Severity: Major OS/Version: All | | Priority: High Component: Core | +----------------------------------------------------------------------------+ *************** *** 44,47 **** // complete path segment ------- Additional Comments From [EMAIL PROTECTED] 2001-06-13 07:54 ------- ! A little variation from the patch provided by Paul. --- 44,68 ---- // complete path segment ------- Additional Comments From [EMAIL PROTECTED] 2001-06-13 07:54 ------- ! A little variation from the patch provided by Paul. ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-07-12 13:30 ------- ! Hi, the index is juming way too far too soon. if the original path ! is "a/b/c/d/../../../e", it will become "a/b/c/e". ! ! // line 510 -------------- ! while ((index = path.indexOf("/../", index)) > 0) { ! tempString = path.substring(0, path.indexOf("/../")); ! segIndex = tempString.lastIndexOf('/'); ! if (segIndex != -1) { ! if (!tempString.substring(segIndex).equals("..")) { ! path = path.substring(0, segIndex).concat(path.substring(index+3)); ! index = segIndex - 1; // here is a quick fix... ! } ! else ! index += 4; ! } ! else ! index += 4; ! } ! // line 525 -------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
