diff options
author | Tom Tromey <tromey@redhat.com> | 2007-01-08 17:00:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2007-01-08 17:00:48 +0000 |
commit | 6fee04220dce32bc4ed8c1432511d3718f7ffea7 (patch) | |
tree | 8b011ee5868c7f30587ba91f202ce2cd6ffd7f59 /tools | |
parent | 731fbbb840175473acfbf154402a2b74ac542996 (diff) | |
download | classpath-6fee04220dce32bc4ed8c1432511d3718f7ffea7.tar.gz |
* tools/gnu/classpath/tools/native2ascii/Native2ASCII.java (run):
Fix length check. PR classpath/30346.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gnu/classpath/tools/native2ascii/Native2ASCII.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java b/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java index dfa364c4e..35e9f481f 100644 --- a/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java +++ b/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java @@ -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 @@ public class Native2ASCII { char c = s.charAt(i); if (reversed - && i + 6 < s.length() + && i + 6 <= s.length() && s.charAt(i) == '\\' && s.charAt(i + 1) == 'u') { |