-
Notifications
You must be signed in to change notification settings - Fork 207
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
Fix #705, Use cFE defines to size arrays #899
Fix #705, Use cFE defines to size arrays #899
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like there is more work to do here.... ?
- As the structures (
CFE_ES_AppInfo_t
) are actually part of the IPC interface (msg), the definition of these shouldn't be incfe_es.h
but rather incfe_es_msg.h
where all other structures used within messages are defined. - Anywhere that the
Name
,EntryPoint
, orFileName
members are filled should useCFE_SB_MessageStringSet
- which is similar to strncpy but takes both a source and dest length. It is intended for this use case where the local/platform and global/mission sizes might be different and this handles padding/termination issues.
I suggest new issue(s) since at least the second change sounds like a useful one to get documented separately, the old one just covered the array sizing. |
FYI given this development, I'm wondering of the wisdom of having return status int32's intermixing CFE and OSAL return status...I realize that'll mean a lot of duplication where we remap OSAL status to CFE status with the same name, but in a lot of cases I'm guessing CFE can simplify the return status. |
CCB 2020-09-23 write up extra issues based on conversation. @jphickey to update function calls. |
Is this in reference to a different issue? This just changed array sizes... |
Just saying, philosophically we are "divorcing" array sizes from OSAL defs, while we continue to be "married" to the OSAL return codes. :) A general philosophical matter but one I think is a bit of conflict. |
Also check/ensure null termination of output
Also check/ensure null termination of output
@skliper - My suggested update to fix the output sizes is here: skliper/cFE@fix705-rm-os-dependence...jphickey:fix-705-outarray-size If you want, you can either merge this into your PR or I can submit a new PR that has both. To summarize, I decided against using |
APPROVED |
@skliper can you clear the conflicts? |
Also check/ensure null termination of output
ca3fca3
to
590025a
Compare
@astrogeco conflicts resolved. |
Describe the contribution
Fixes #705, also a similar issue in TBL
Change from OS_MAX* defines to CFE defines for array sizing
Testing performed
Built and ran unit tests, passed. Visually confirmed sizes matched.
Expected behavior changes
No impact as long as the sizes are the same. Now scoped appropriately such that OS's can be configured differently and won't break cFE (as long as the cFE defines are max of the set)
System(s) tested on
Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC