lci icon indicating copy to clipboard operation
lci copied to clipboard

SIGSEV

Open jD91mZM2 opened this issue 8 years ago • 3 comments

An unclosed OBTW result in a segmation fault.

jD91mZM2 avatar Aug 01 '17 15:08 jD91mZM2

Hi could you provide an example code (and perhaps environment)?

initbar avatar Oct 15 '17 14:10 initbar

To me it worked every time I had an unclosed statement, although I no longer have lolcode installed

jD91mZM2 avatar Oct 15 '17 17:10 jD91mZM2

@jD91mZM2 sorry for the late reply.

Nice catch ! I was also able to verify this bug and it's likely that the issue is from tokenization process of incrementing start index until TLDR token is found:

bug

Since TLDR is not in the string, it's just going to increment the index until it's greater than the total string length:

bug12

I'll create a PR but I think adding a constraint to the while statement would fix this issue.

initbar avatar Nov 01 '17 15:11 initbar