-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"\t//" crashes kilo (sometimes!) #18
Comments
@1-p Thanks for reporting! :-) Are you able to reproduce this? What platform are you using? I'm unable to reproduce. I've tested under both Linux and OS X. |
I was able to reproduce it (Linux, Elementary OS). The PR solves it though. |
It is reproducing for me too. OS X. Always. |
@practicalswift Well, do it in a new line and enter It's due to a negative memset argument, as I said. And the PR I submitted fixed it. (changed a single char) |
to reproduce, start a new line, hit
TAB
, then/
twice.or hit
/
twice and thenTAB
at the beginning of the line.Segmentation fault: 11
Seems like the
while(*p)
loop ineditorUpdateSyntax
has some bug.https://github.com/antirez/kilo/blob/master/kilo.c#L401
The text was updated successfully, but these errors were encountered: