Parsing bug?

Notices and updates
Locked
Cyril
Posts: 183
Joined: Tue Oct 30, 2007 6:27 pm
Location: Moscow, Russia
Contact:

Parsing bug?

Post by Cyril »

Seems like a bug in newlisp:

Code: Select all

newLISP v.9.3.0 on Win32, execute 'newlisp -h' for more info.

> {

string token too long : "\r\n\000\0046\0047\0048\0049\004:\004;\004<004>\0
04?\004@\004A\004B\004C\004D\004E\004F\004G\004"
Seems like parsing of {)-balanced string doesn't stop on \r\n or even on null byte. parse function is also affected.
With newLISP you can grow your lists from the right side!

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

No worries. This is only an issue with the error reporting 40 bytes of un-ininialized token buffer and will be fixed in a future version. The parser code itself is safely stopping at the first 0 byte it finds and will never overrun the token buffer.

Lutz

Locked