Skip to content

Fix bug in fuzz harness#326

Merged
kevinbackhouse merged 1 commit intogithub:masterfrom
kevinbackhouse:fuzz-quadratic-brackets-overflow
Apr 5, 2023
Merged

Fix bug in fuzz harness#326
kevinbackhouse merged 1 commit intogithub:masterfrom
kevinbackhouse:fuzz-quadratic-brackets-overflow

Conversation

@kevinbackhouse
Copy link

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