Skip to content

Fix #502, Initialize Variable msg_size in cf_cfdp_sbintf.c#503

Merged
arielswalker merged 1 commit into
nasa:devfrom
arielswalker:fix-502-initialize-variable-getsize
Jun 23, 2026
Merged

Fix #502, Initialize Variable msg_size in cf_cfdp_sbintf.c#503
arielswalker merged 1 commit into
nasa:devfrom
arielswalker:fix-502-initialize-variable-getsize

Conversation

@arielswalker

@arielswalker arielswalker commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Checklist (Please check before submitting)

Describe the contribution
Fixes #502

Testing performed
Workflows and reran CodeSonar. CodeSonar analysis link provided in the internal GitHub issue.

Expected behavior changes
Resolve CodeSonar warning of Uninitialized Variable in cf_cfdp_sbintf.c

System(s) tested on
GitHub Actions and CodeSonar

Additional context
When only msg_size was updated, CodeSonar flagged bufptr as uninitialized. Therefore, bufptr was also updated and CodeSonar was ran again which resolved both uninitialized variable warnings.

Contributor Info - All information REQUIRED for consideration of pull request
Ariel Walker, MCSG TECH.

@arielswalker arielswalker self-assigned this Jun 16, 2026
Comment thread fsw/src/cf_cfdp_sbintf.c Outdated
Comment thread fsw/src/cf_cfdp_sbintf.c Outdated
@arielswalker arielswalker force-pushed the fix-502-initialize-variable-getsize branch from 2954bc2 to c9e67d5 Compare June 23, 2026 13:19
@arielswalker arielswalker force-pushed the fix-502-initialize-variable-getsize branch from c9e67d5 to e95cbf8 Compare June 23, 2026 13:23
@arielswalker arielswalker requested a review from jphickey June 23, 2026 14:08
@arielswalker arielswalker merged commit 3e24873 into nasa:dev Jun 23, 2026
18 checks passed
@arielswalker arielswalker deleted the fix-502-initialize-variable-getsize branch June 23, 2026 18:45
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.

Uninitialized Variables in cf_cfdp_sbintf.c

3 participants