I'm checking this in.

This fixes PR 30346, an off-by-one error in native2ascii.

Tom

Index: ChangeLog
from  Tom Tromey  <[EMAIL PROTECTED]>

        * tools/gnu/classpath/tools/native2ascii/Native2ASCII.java (run):
        Fix length check.  PR classpath/30346.

Index: tools/gnu/classpath/tools/native2ascii/Native2ASCII.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java,v
retrieving revision 1.4
diff -u -r1.4 Native2ASCII.java
--- tools/gnu/classpath/tools/native2ascii/Native2ASCII.java 15 Dec 2006 
19:45:39 -0000 1.4
+++ tools/gnu/classpath/tools/native2ascii/Native2ASCII.java 8 Jan 2007 
17:00:05 -0000
@@ -1,5 +1,5 @@
 /* Native2ASCII.java - native2ascii program
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2007 Free Software Foundation, Inc.
 
  This file is part of GNU Classpath.
 
@@ -143,7 +143,7 @@
               {
                 char c = s.charAt(i);
                 if (reversed
-                    && i + 6 < s.length()
+                    && i + 6 <= s.length()
                     && s.charAt(i) == '\\'
                     && s.charAt(i + 1) == 'u')
                   {

Reply via email to