-
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
cFE Integration candidate: Caelum-rc4+dev60 #2452
Conversation
Move the current CRC-16 algorithm to a separate source file and better structure the code to support future CRC algorithm alternatives. Improve documentation to better indicate what the current algorithm is and what to expect going forward. Also corrects for issues in the CRC functional test: - Use the standard check input and compare against the standard check value for CRC-16/ARC. - Change cases from MIR to a normal test case - given a specific algorithm with specific input, the return value should be the same.
Fix #2436, Adds an empty string or null pointer check for pipe creation
Fix #2449, crc calculation refactor
return 0; | ||
} | ||
|
||
uint32 CFE_ES_ComputeCRC_Algo_16_ARC(const void *DataPtr, size_t DataLength, uint32 InputCRC) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
return Crc; | ||
} | ||
|
||
CFE_ES_ComputeCRC_Params_t *CFE_ES_ComputeCRC_GetParams(CFE_ES_CrcType_Enum_t CrcType) |
Check notice
Code scanning / CodeQL-coding-standard
Long function without assertion
#include "common_types.h" | ||
#include "cfe_es.h" | ||
|
||
typedef uint32 (*const CFE_ES_ComputeCRC_Algo_t)(const void *DataPtr, size_t DataLength, uint32 InputCRC); |
Check notice
Code scanning / CodeQL-coding-standard
Hidden pointer indirection
Fix #2436, Adds an empty string or null pointer check for pipe creation
Checklist (Please check before submitting)
Describe the contribution
Testing 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
@chillfig
@jphickey