Skip to content

Fix #12653, #12655 fuzzing crashes#6339

Merged
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix12653
Apr 25, 2024
Merged

Fix #12653, #12655 fuzzing crashes#6339
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix12653

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github chrchr-github changed the title Fix #12653 fuzzing crash in Tokenizer::createLinks2() Fix #12653, #12655 fuzzing crashes Apr 24, 2024
@chrchr-github chrchr-github reopened this Apr 24, 2024
@chrchr-github chrchr-github reopened this Apr 24, 2024
@chrchr-github chrchr-github marked this pull request as draft April 24, 2024 16:07
@chrchr-github chrchr-github marked this pull request as ready for review April 24, 2024 21:59
Comment thread lib/tokenize.cpp

void Tokenizer::simplifyCPPAttribute()
{
if (!isCPP() || mSettings.standards.cpp < Standards::CPP11)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the point in not simplifying those attributes. Current compilers only show a warning even with -std=c++03.

" {\n"
" float x = 1.0f;\n"
" }\n"
" };\n"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found these when testing a previous attempt.

@chrchr-github chrchr-github merged commit 4efb001 into cppcheck-opensource:main Apr 25, 2024
@chrchr-github chrchr-github deleted the chr_Fix12653 branch April 25, 2024 19:33
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