sasagawa888/eisl

edlis runtime-error on RET after a new function

Closed this issue · 2 comments

In xterm: I type the function, close the last parenthesis, and type RET, then edlin gives this error:

$ uname -a
Darwin despina 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64 i386 iMac17,1 Darwin
$ xterm -hold -e edlis /tmp/foo.lisp

Screenshot 2021-11-28 at 15 03 42

edlis.c:1274:6: runtime error: index -1 out of bounds for type 'char [4000][255]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior edlis.c:1274:6 in
poldy commented

Can reproduce. Above symptom is only in DEBUG builds, it's a hidden defect in prod builds.

I also confirmed that it works normally. Thank you.