You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
CFE_SB_GetUserDataLength use of TotalMsgSize causes static analysis warning. False alarm since MsgPtr is checked before CFE_MSG_GetSize, and &TotalMsgSize will never be NULL, so it's always set.
Describe the solution you'd like
Initialize to 0 to squash the warning.
Describe alternatives you've considered
Still dislike this function... don't use it.
skliper
changed the title
CFE_SB_GetUserDataLength doesn't handle failures well - static analysis
CFE_SB_GetUserDataLength possible uninitialized variable (false alarm)
Mar 17, 2021
skliper
added a commit
to skliper/cFE
that referenced
this issue
Mar 17, 2021
Is your feature request related to a problem? Please describe.
CFE_SB_GetUserDataLength use of TotalMsgSize causes static analysis warning. False alarm since MsgPtr is checked before CFE_MSG_GetSize, and &TotalMsgSize will never be NULL, so it's always set.
Describe the solution you'd like
Initialize to 0 to squash the warning.
Describe alternatives you've considered
Still dislike this function... don't use it.
Additional context
#1190, static analysis warnings
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: