-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML mode memory leak crash #3747
Comments
I've identified the issue as this line: Line 479 in dbdf8aa
A small problem is that the document will stop tokenizing after the broken CDATA[ string so we lose syntax highlighting. It would be nice if we could somehow keep the syntax highlighting. |
the sax.js is a third party library that is used for linting, it should not affect syntax highlighting. |
Another alternative might be https://github.com/lddubeau/saxes An issue for me is the current xml mode linting is validating for an xml fragment not a xml document. I put together a repl page to show |
Just for the record, there is other content that triggers the same memory leak. Go to https://ace.c9.io/build/kitchen-sink.html and switch to XML mode. Somewhere in the middle, type |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This is a problem in |
Typing a certain sequence of characters in XML mode results in a memory leak/infinite loop which eventually crashes the page. To reproduce:
<A><![CDATA[</A>
This bug is present in the current version of Ace, and at least as far back as Ace 1.2.3.
Crashes on Windows 7 and 10, in Chrome.
The text was updated successfully, but these errors were encountered: