edlis runtime-error on RET after a new function
Closed this issue · 2 comments
informatimago commented
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
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.
sasagawa888 commented
I also confirmed that it works normally. Thank you.