forked from commonmark/cmark
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit the recursion in autolink extension. (#125)
This is not really a bug, but it's possible to send an input markdown consisting of lots of @ signs, and the recursion will cause memory explosion. The limit depends on the running environment, but there is no reason to accept arbitrarily long sequence of @, so let's just cut off at 1000.
- Loading branch information
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters