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

Fix bug in fuzz harness #326

Conversation

kevinbackhouse
Copy link
Collaborator

I made an embarrassing mistake in fuzz_quadratic_brackets.c which means that you can trigger a buffer overflow by feeding it a large file. This bug only affects the fuzzing harness, not cmark-gfm itself. To reproduce the bug:

python3 -c 'n = 0x70000; print("y" * n)' > poc.md
./fuzz/fuzz_quadratic_brackets poc.md

@kevinbackhouse kevinbackhouse merged commit ef63acf into github:master Apr 5, 2023
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