-
Notifications
You must be signed in to change notification settings - Fork 252
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
[BUG] AddressSanitizer: heap-buffer-overflow in in cpp2::lex_line #1158
Comments
Thanks! I'm not able to reproduce this with the current I get the following:
|
I am able to reproduce this on latest main.
This is on virtual Ubuntu computer.
I just checked, and there might be a new line character at the end of the file. |
Visual Studio 2022:
|
Oh right, it's not a general "this code crashes," it's an ASAN diagnostic. Thanks, will look again... |
... found it, and there were four other similar occurrences, now all fixed. Thanks! |
Steps To Reproduce
cppfront
source code.cppfront
withASAN
enabled.g++ -std=c++20 -fsanitize=address cppfront.cpp -o cppfront
cppfront
on a test file../cppfront test.cpp2
Expected behavior
Actual behavior
ASAN
crash!Additional context
16
bytes long and it isQ1this:<tP0]"\\\
.The text was updated successfully, but these errors were encountered: