[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath ChangeLog java/util/regex/Matcher.java
From: |
Pekka Enberg |
Subject: |
[commit-cp] classpath ChangeLog java/util/regex/Matcher.java |
Date: |
Wed, 02 Mar 2011 19:40:13 +0000 |
CVSROOT: /sources/classpath
Module name: classpath
Changes by: Pekka Enberg <penberg> 11/03/02 19:40:13
Modified files:
. : ChangeLog
java/util/regex: Matcher.java
Log message:
Fix Matcher.find() infinite loop bug
This patch fixes a problem in Match.find() where the following piece of
code
would enter an infinite loop:
System.out.println("hello, world".split("\uFFFF");
The root cause is that Matcher.find() returns true for the following
snippet:
Pattern p = Pattern.compile("\uFFFF");
Matcher m = p.matcher("hello, world");
System.out.println(m.find());
2011-03-02 Pekka Enberg <address@hidden>
* java/util/regex/Matcher:
(find): Make sure match is within input data limits.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9818&r2=1.9819
http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/regex/Matcher.java?cvsroot=classpath&r1=1.25&r2=1.26
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] classpath ChangeLog java/util/regex/Matcher.java,
Pekka Enberg <=