Skip to content

test#7764

Draft
danmar wants to merge 1 commit intodanmar:mainfrom
cppchecksolutions:test-github-sarif
Draft

test#7764
danmar wants to merge 1 commit intodanmar:mainfrom
cppchecksolutions:test-github-sarif

Conversation

@danmar
Copy link
Copy Markdown
Owner

@danmar danmar commented Aug 21, 2025

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

Comment thread lib/color.cpp
{

std::string st;
st[0] = 'x';

Check failure

Code scanning / CppCheck

Out of bounds access in expression 'st[0]' because 'st' is empty. Critical

Out of bounds access in expression 'st[0]' because 'st' is empty.
Comment thread lib/color.cpp
{

std::string st;
st[0] = 'x';

Check warning

Code scanning / CppCheck

Variable 'st[0]' is assigned a value that is never used. Warning

Variable 'st[0]' is assigned a value that is never used.
Comment thread lib/cppcheck.cpp
mLogger->resetExitCode();

std::string str;
str[0] = 'x';

Check failure

Code scanning / CppCheck

Out of bounds access in expression 'st[0]' because 'st' is empty. Critical

Out of bounds access in expression 'str[0]' because 'str' is empty.
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