Crash on ill-formed input.
mocabe opened this issue · 4 comments
Summary
Following code crashes mdmath extension.
>$$
$$
Actual behavior
After allocating huge amount of memory, extension crashes with error "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory".
Steps to reproduce
Save following code as .md and open it with mdmath extension enabled.
>$$
$$
Related links
Environment
Operating system: Win64
VSCode version: Insider 1.25.0
Markdown+Math version: v2.2.1
Yes ... I can reproduce this ... even with vscode version 1.24.
I need to have a deeper look into this and will come back to you here..
thanks
Implemented a bug fix with markdown-it-texmath.
But now fatal bug with ill behavior is gone with VSCode 1.26.0.
Thanks
It seems that this issue reappeared on VSCode 1.30.2
with Markdown+Math 2.3.7
...
This is quite a pathological bug only occuring, if
- a display formula is opened inside of a blockquote section
- followed by an empty line outside of the blockquote section
- closing the display formula on a line followed outside of the blockquote section
i.e
>$$
$$
This bug in markdown-it-texmath is resolved with version 0.5.4. and also resolved therefore with mdmath version 2.3.8 available in a couple of days.