DLP
2005-04-15
 
I don't segfault

I've finally found the source of the bug in RPGScript's ASCII parser. For some reason I had put the null-terminator ('\0') in the list of blank characters. When the parser is skipping blank lines and comments, it will just jump over the null-terminator. This is obviously a Bad Thing. There is now an update on the web page and I've released an update source package.

The next step is to get the ASCII parser to create the binary representation of it so we can do it actually clearly with the binary parser. This should be fun.


2005-04-14
 
Parse this, parse that, parse what?

So, the ASCII parser for RPGScript is finally working. It doesn't support all the features on the candidate-1, but it doesn't segfault. I still don't actually know what the real problem is, but it seems that when we're at the end, strlen(ptr) actually returns 3. This happens after we skip the comments and blanks, since strlen returns 2 before, which is what it should. I've added some checks to the functions, but they don't seem to work. As soon as I'm sure it works, I'll release a patch for the developer release.

This summer I'm gonna have to learn to drive. This came as quite a suprise, since I wasn't expecting to learn it untill I could in Spain. To add another thing to my internationalisation, I'm gonna get it in England, because I can get it now, instead of having to wait 'till next year.



Powered by Blogger