Skip to content

Uninitialized Variables in cf_cfdp_sbintf.c #502

Description

@arielswalker

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
CodeSonar reports the Uninitialized Variable warnings for msg_size in CF_CFDP_ReceiveMessage.

Event 7:  CFE_MSG_GetSize() does not initialize msg_size.

To Reproduce
Run CodeSonar

Expected behavior
Resolve CodeSonar findings by either initializing the variables if needed or suppressing warnings with comments

Code snips

CFE_MSG_GetSize(&bufptr->Msg, &msg_size);

System observed on:
CodeSonar, RedHat, cFS v7.0.0

Reporter Info
Ariel Walker, MCSG TECH.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions