Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
md_is_link_destination_B: Protect from quadratic complexity.
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.
- Loading branch information