-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Pathological input: Unclosed inline links #214
Comments
The commit a9da678 is responsible for the regression. |
This was referenced Jul 12, 2017
mity
added a commit
to mity/md4c
that referenced
this issue
Jul 12, 2017
The permission of nesting (balanced) parenthesis pairs in the link destination opened doors to quadratic time with malicious input like e.g. generated by $ python -c 'print("[a](b" * 50000)' See commonmark/cmark#214 for more info. We solve it by limiting the parenthesis nesting level to 32.
Anything that fixes this should also add this case to the pathological tests in the test suite. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following command generates Markdown input which takes inadequately long time with current Cmark's master head (88c8ad1). (On my Windows machine it takes 13.076 seconds.)
Seems to be regression, Cmark 0.27.1 processes it fine (0.063 s)
The text was updated successfully, but these errors were encountered: