We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Checklist (Please check before submitting)
Describe the bug While compiling the latest version of CS, my build environment gave me the following error:
error: 'strncmp' specified bound 40 exceeds source size 20 [-Werror=stringop-overread]
Code snips The bug relates to this line:
CS/fsw/src/cs_table_processing.c
Line 245 in 1ce636e
Based on checking the types for both table entries (CS_Def_App_Table_Entry_t), it seems that it would make sense to instead do the strncmp like so:
CS_Def_App_Table_Entry_t
if (strncmp(OuterEntry->Name, (&StartOfTable[InnerLoop])->Name, OS_MAX_API_NAME) == 0)
After changing to this locally, my build works fine.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Checklist (Please check before submitting)
Describe the bug
While compiling the latest version of CS, my build environment gave me the following error:
Code snips
The bug relates to this line:
CS/fsw/src/cs_table_processing.c
Line 245 in 1ce636e
Based on checking the types for both table entries (
CS_Def_App_Table_Entry_t
), it seems that it would make sense to instead do the strncmp like so:After changing to this locally, my build works fine.
The text was updated successfully, but these errors were encountered: