sasagawa888 / eisl

ISLisp interpreter/compiler
Other
273 stars 23 forks source link

edlis runtime-error on RET after a new function #164

Closed informatimago closed 2 years ago

informatimago commented 2 years ago

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 2 years ago

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

sasagawa888 commented 2 years ago

I also confirmed that it works normally. Thank you.