Overrun for CFE_MSG_Message_t
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 29
- Forks
- 50
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 1
Description
Describe the bug
Out-of-bounds access (OVERRUN). Overrunning struct type CFE_MSG_Message_t of 16 bytes by passing it to a function which accesses it at byte offset 39 using argument 40UL.
Expected behavior
Fix overrun
System observed on:
Coverity: https://scan.coverity.com/projects/arielsadamsnasa-cfs-jsf-rules?tab=overview
Reporter Info
Ariel Adams, ASRC Federal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at fsw/src/ci_lab_app.c line 189 and review the Coverity report for the CFE_MSG_Message_t access. Trace why the 16-byte struct is passed to a function using byte offset 39 with argument 40UL. Done means the out-of-bounds access is removed and the Coverity overrun finding is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100