3 Oct 2005 13:16
toke core dumps
Hello All,
When I try to tokenize a large FCode source file, the
tokenizer crashes with Segmentation Fault.
Debug messages:
tst.fth:6763: debug: tokenizing control word 'endof'
tst.fth:6764: debug: read token 'endcase', length=7
tst.fth:6764: debug: matched internal opcode 0x0013
tst.fth:6764: debug: tokenizing control word 'endcase'
tst.fth:6764: debug: endcase offset 0x8401
tst.fth:6764: debug: endcase offset 0xffff83f1
??????????
Segmentation fault (core dumped)
When I looked at the code, the offending function was
in emit.c :
s16 receive_offset(void)
{
s16 offs=0;
if (offs16) {
offs= ((*opc)<<8)|(*(opc+1));
} else {
offs=(*opc);
}
return offs;
}
(Continue reading)
It contained two minor flaws, both of which are fixed by the
patch. If I apply it, I see the OpenBIOS welcome screen.
You can download it from
RSS Feed