Open escape bracket causes compile call to hang forever and run out of memory
Hoeksema opened this issue · 0 comments
Hoeksema commented
Describe the bug
When a template is given that has an open escape bracket, the compile call hangs and the app runs out of memory eventually.
Expected behavior:
It should produce some sort of parse exception to indicate invalid template string.
Test to reproduce
e.g. this template string:
{{ [test }}
Other related info
After a while, the program will output "Out of memory." and exit
After submitting the issue
Please consider contributing to the project by submitting a PR with a fix to the issue.
This would help to solve your problem in a shorter time as well as help other users of the project.
In case you do not know where to start - feel free to ask for help in the issue thread.
Building an active community is essential for any project survival as time of maintainers is limited.