This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Java segfault in predict.c
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: gcc at gcc dot gnu dot org
- Date: 29 May 2002 10:36:26 -0700
- Subject: Re: Java segfault in predict.c
- References: <3CF4842F.8020802@waitaki.otago.ac.nz>
Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> public class Crash
> {
> public void checkXMLLangAttributeValue(String lang)
> {
> int offset = -1;
> if (lang.length() >= 2) {
> char ch0 = lang.charAt(0);
> }
> if (offset > 0) {
> char ch = lang.charAt(offset++);
> if (ch != '-') {
> offset = -1;
> } else {
> while (true)
> {
> if (ch == '-')
> ch = lang.charAt(offset++);
> ch = lang.charAt(offset++);
> }
> }
> }
> }
> }
Can you add this as a testcase?
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>