-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Heap buffer overflow #82
Comments
Weird thing about this is that if I change just about anything in the input, the error disappears. E.g. a different number of 0s at the beginning. I'll also note that
produces the error with bash, but not with sh, presumably because of differences in treatment of hex escapes? |
It's a minimized test case. |
None of them seem to crash non-ASan build of cmark, though, so it's probably not exploitable. |
Build
cmark
with-fsanitize=address
, then$ echo -e "# 000000[0\x00\x0000000000000000000\x000\x00000000000](p0000\\" | ./cmark
Output:
afl
The text was updated successfully, but these errors were encountered: