-
Notifications
You must be signed in to change notification settings - Fork 206
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
cFE Integration candidate: Equuleus-rc1+dev13 #2555
Conversation
Cleans up the internal SB implementation so it can better support future enhancements such as message integrity, additional header fields and timestamping.
Use a resourceID value for access into the validation result structure array. This allows for consistent lookup, matching, and free/in-use determination, as well as improved resilience to race conditions and stale data.
Use a resourceID value for access into the dump control structure array. This allows for consistent lookup, matching, and free/in-use determination, as well as improved resilience to race conditions and stale data.
Restructure some switch statements and add a "default" case so they are not flagged as having a missing branch in the coverage test.
Fix #2553, fix test that was passing null value into vsnprintf
Fix #2550, use resourceids for internal table validation and dump control blocks
Fix #2378, refactor SB to support additional use cases
Fix #2536, msg api test buffer overrun
* Not invoked outside of this unit | ||
* | ||
*-----------------------------------------------------------------*/ | ||
void CFE_SB_MessageTxn_GetEventDetails(const CFE_SB_MessageTxn_State_t *TxnPtr, const CFE_SB_PipeSetEntry_t *ContextPtr, |
Check warning
Code scanning / CodeQL
Poorly documented large function Warning
DumpCtrlPtr->State = CFE_TBL_DUMP_PENDING; | ||
DumpCtrlPtr->BlockId = CFE_TBL_DUMPCTRLID_C(PendingId); | ||
DumpCtrlPtr->RegRecPtr = RegRecPtr; | ||
DumpCtrlPtr->DumpBufferPtr = DumpBufferPtr; |
Check warning
Code scanning / CodeQL
Local variable address stored in non-local memory Warning
parameter
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.
CodeQL-coding-standard found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
…aracter truncation
…_report Fix #2559, Improve CFE_SB_AllocateMessageBuffer error report
Fix #2343, Update CFE_PLATFORM_ES_DEFAULT_SYSLOG_MODE macro in es_verify.h
…n-for-CFE-PLATFORM-SB-HIGHEST-VALID-MSGID Fix #2116, Update comment re. limits of CFE_PLATFORM_SB_HIGHEST_VALID_MSGID
…-variables-and-parameters Fix #2375, Use size_t for variables/parameters representing size
…tatus-assignment-in-CFE_SB_CreatePipe Fix #2495, Remove superfluous status assignment in CFE_SB_CreatePipe
Fix #2553, null value in vsnprintf
Fix #2552, Adds JSC 2.1 Static Analysis comments
Fix #2529, Reduces CFE_EVS_MAX_PORT_MSG_LENGTH to prevent new line character truncation
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.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Checklist (Please check before submitting)
Describe the contribution
CFE_PLATFORM_ES_DEFAULT_SYSLOG_MODE
macro in es_verify.h #2344. Addresses Issue Out-of-dateCFE_PLATFORM_ES_DEFAULT_SYSLOG_MODE
macro in cfe_es_verify.h #2343CFE_PLATFORM_SB_HIGHEST_VALID_MSGID
#2359. Addresses Issue Update wrong comment regarding the value of CFE_SB_INVALID_MSG_ID #2116size_t
for variables/parameters representing size #2376. Addresses Issue Usesize_t
for variables/parameters representing size #2375CFE_SB_CreatePipe
#2496. Addresses Issue Superfluous status assignment inCFE_SB_CreatePipe
after return fromOS_QueueCreate
#2495Testing performed
cFS Bundle Checks
cFE Checks
Expected behavior changes
See PRs
System(s) tested on
Ubuntu 20.04
Additional context
Add any other context about the contribution here.
Third party code
If included, identify any third party code and provide text file of license
Contributor Info - All information REQUIRED for consideration of pull request
@jphickey
@skliper
@thnkslprpt
@avan989
@chillfig