-
Notifications
You must be signed in to change notification settings - Fork 153
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
Incomplete preprocessor tokens at end of file lead to heap-use-after-free #353
Comments
Thank you for reporting this. I'll try to fix it as as soon as possible. |
I've fixed it by recent patches. |
4ff53b1 partially fixes the issue. This file poc2.txt still leads to a heap use-after-free.
|
Sorry for the delay. I fixed this PR in my recent commit 55ec6a7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This has been found while fuzzing c2m compiled from commit d51b45f with ASAN.
Running
c2m poc.txt
with an input file containing#define\
(without trailing newline) leads to a hang. Compilation with ASAN shows that it the underlying problem is a heap-use-after-free inget_next_pptoken_1
. This also happens with#ifdef
or#include
poc.txt
ASAN Output
The text was updated successfully, but these errors were encountered: