Skip to content

Conversation

danmar
Copy link
Owner

@danmar danmar commented Aug 21, 2025

No description provided.

Copy link

@@ -72,6 +72,10 @@

std::string toString(Color c)
{

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.
@@ -72,6 +72,10 @@

std::string toString(Color c)
{

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.
@@ -888,6 +888,9 @@

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.

1 participant