Skip to content

Fix #2746, cfe use of strcmp#2748

Open
jlombay wants to merge 4 commits into
nasa:devfrom
jlombay:fix-2746-cfe-use-of-strcmp
Open

Fix #2746, cfe use of strcmp#2748
jlombay wants to merge 4 commits into
nasa:devfrom
jlombay:fix-2746-cfe-use-of-strcmp

Conversation

@jlombay
Copy link
Copy Markdown

@jlombay jlombay commented Jun 1, 2026

Checklist (Please check before submitting)

Describe the contribution
Changed strcmp calls to strncmp. These were findings from running CodeSonar static analysis.
Added null check to argument in function CFE_Config_GetIdByName.

Testing performed
Steps taken to test the contribution:

  1. make native_std.install
  2. make native_std.runtest

Expected behavior changes
No impact to behavior.

System(s) tested on

  • Hardware: PC
  • OS: Ubuntu
  • Versions: cFE v7.0.1

Contributor Info - All information REQUIRED for consideration of pull request
José Lombay, NASA GRC

@dzbaker dzbaker added this to the v7.0.2 milestone Jun 1, 2026
@jlombay jlombay marked this pull request as ready for review June 1, 2026 21:39
@jlombay jlombay self-assigned this Jun 1, 2026
@dzbaker dzbaker changed the title Fix 2746 cfe use of strcmp Fix #2746, cfe use of strcmp Jun 2, 2026
@dzbaker dzbaker requested a review from elizabash June 2, 2026 19:01
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.

Use of strcmp

2 participants