carld / micro-lisp

๐ŸŽ„A very small Lisp programming language ๐Ÿ˜€that used to be under 200 lines of C๐ŸŽ„
MIT License
798 stars 69 forks source link

Bound checks for gettoken() #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

By the power of SIGSEGV, please bound-check index in gettoken().

carld commented 6 years ago

Hey @mar77i , good catch, if index makes it to 32, things like that can happen.

carld commented 6 years ago

f05c552ae71a8615536d25c49dd4ad0a8e298195 3b9019495ebc1822445a3411e59b9d0d7dd2a607