Skip to content
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

Limit the recursion in autolink extension. #125

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Limit the recursion in autolink extension. #125

merged 1 commit into from
Oct 17, 2018

Conversation

Xadeck
Copy link

@Xadeck Xadeck commented Oct 17, 2018

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.

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.
@Xadeck
Copy link
Author

Xadeck commented Oct 17, 2018

The bug in this PR was found through fuzzing through the Google Autofuzz project. Autofuzz is an internal project, but a similar service is offered for free to open-source software. This is called OSS-Fuzz and described on the Google Opensource blog.

@kivikakk
Copy link

Thank you!

@kivikakk kivikakk merged commit 21f7420 into github:master Oct 17, 2018
talum pushed a commit that referenced this pull request Sep 14, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants