Closed thnkslprpt closed 1 year ago
Looking at the code, it does indeed seem suspicious - but there is a length check against OS_MAX_PATH_LEN
that prevents anything from overflowing a buffer:
Recommendation:
sizeof(ListEntry->EntryName)
and sizeof(LogicalName)
, respectively, rather than assuming OS_MAX_PATH_LEN
CFE_SB_MessageStringSet()
or simply memcpy()
(which is safe if the lengths have all been verified, as they will have been here)
Checklist
Describe the bug I believe these are newly triggered GCC warnings (treated as errors) that are now causing the standard FM Build + Run workflow to fail.
To Reproduce Run the Build + Run GitHub Action on the current main branch FM source code.
Expected behavior Build + Run workflow should run without errors.
Reporter Info Avi @thnkslprpt