zserge / partcl

ParTcl - a micro Tcl implementation
https://zserge.com/posts/tcl-interpreter/
MIT License
476 stars 50 forks source link

Fixing mem issue in test, fixing unbalanced bracket/brace issue #12

Closed skrasser closed 3 years ago

skrasser commented 3 years ago

Moving struct declaration in test to outer scope. Otherwise, it is used after going out of scope causing corruption of the stack.

Adding check for a closing ] or } without a matching opening one. This issue caused the REPL to hang or (new) tests to segfault.