Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Invalid Memory Access in CFE_MSG_Init #2583

Closed
tandharia opened this issue Jul 21, 2024 · 0 comments
Closed

Possible Invalid Memory Access in CFE_MSG_Init #2583

tandharia opened this issue Jul 21, 2024 · 0 comments

Comments

@tandharia
Copy link

Describe the bug
Static code analysis with TrustInSoft identified a potential issue in cfe_msg_init.c, line 34 (based on the equuleus-rc1 tag). The function initializes a buffer (MsgPtr) with a size (Size) that could be smaller than the expected size of the message structure (CFE_MSG_Message_t). If the size is smaller, only part of the buffer is initialized, leading to undefined behavior when the uninitialized parts are accessed.

To Reproduce
Run TrustInSoft Static Code Analysis on the codebase

Reporter Info
Tvisha Andharia - GSFC 582 Intern

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

No branches or pull requests

1 participant