This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Java segfault in predict.c
Geoff Keating wrote:
>>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?
>
I added it as libjava.compile/T20020529.java
regards
Bryce.