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  <penb...@kernel.org>
        
                * 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

Reply via email to