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

parser still crashes and loops forever under fuzzing #32

Open
dimbleby opened this issue May 3, 2021 · 1 comment
Open

parser still crashes and loops forever under fuzzing #32

dimbleby opened this issue May 3, 2021 · 1 comment

Comments

@dimbleby
Copy link

dimbleby commented May 3, 2021

Hi,

I thought I'd see how the parser did with the new TREE_SITTER_MARKDOWN_AVOID_CRASH trick against the fuzzer. Unfortunately, the fuzzer still finds crashes, and infinite loops.

Here are a couple of examples, I guess that there may be more.

[foo](*https://example.com
[foo](*https://example.com

result: parser loops and eats up all available memory.

[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[

result:

fatal runtime error: Rust cannot catch foreign exceptions
Aborted
@m-novikov
Copy link

According to the markdown spec

Implementations may impose limits on parentheses nesting to avoid performance issues, but at least three levels of nesting should be supported.

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

No branches or pull requests

2 participants