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

cFE Integration candidate: Equuleus-rc1+dev13 #2555

Merged
merged 25 commits into from
Jul 2, 2024
Merged
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
008609b
Fix #2343, Update `CFE_PLATFORM_ES_DEFAULT_SYSLOG_MODE` macro in
thnkslprpt May 21, 2023
c92df5f
Fix #2116, Update comment re. limits of
thnkslprpt May 29, 2023
99eb3c3
Fix #2375, Use `size_t` for variables/parameters representing size
thnkslprpt Jun 15, 2023
7d7a826
Fix #2495, Remove superfluous status assignment in `CFE_SB_CreatePipe`
thnkslprpt Jan 15, 2024
550e7f7
Fix #2378, refactor SB to support additional use cases
jphickey Jun 16, 2023
1272f6d
Fix #2550, Use resource ID for validation index
jphickey Apr 18, 2024
b906671
Fix #2550, Use resource ID for dump control index
jphickey Apr 18, 2024
48dd153
Fix #2378, update for code coverage
jphickey Apr 19, 2024
9fd5a13
fix-2553-address-sanitizer-error-in-es_UT
Apr 25, 2024
0a253d9
Merge pull request #2551 from jphickey:fix-2550-tbl-val-dump-resourceid
dzbaker May 2, 2024
64b6837
Merge pull request #2381 from jphickey:fix-2378-sb-refactor
dzbaker May 2, 2024
ef14d5a
Merge pull request #2537 from jphickey:fix-2536-msgapi-buffer
dzbaker May 2, 2024
e346973
Updating documentation and version numbers for equuleus-rc1+dev141
dzbaker May 6, 2024
374d851
Fix #2559, Improve CFE_SB_AllocateMessageBuffer error report
skliper May 10, 2024
27fba65
Fix #2529, Reduces CFE_EVS_MAX_PORT_MSG_LENGTH to prevent new line ch…
May 22, 2024
0dc799d
Fix #2552, Adds JSC 2.1 Static Analysis comments
Jun 13, 2024
ab69280
Merge pull request #2560 from skliper:fix2559-improve_allocatemsg_err…
dzbaker Jul 1, 2024
319dac1
Merge pull request #2344 from thnkslprpt:fix-2343-update-syslog-macro
dzbaker Jul 1, 2024
cb2762e
Merge pull request #2359 from thnkslprpt:fix-2116-update-documentatio…
dzbaker Jul 1, 2024
6059459
Merge pull request #2376 from thnkslprpt:fix-2375-use-size-t-for-size…
dzbaker Jul 1, 2024
d6bfc2f
Merge pull request #2496 from thnkslprpt:fix-2495-remove-superflous-s…
dzbaker Jul 1, 2024
4990c4e
Merge pull request #2554 from avan989:Fix-2553-address-sanitizer
dzbaker Jul 1, 2024
653c058
Merge pull request #2568 from chillfig:SA_jsc2_1
dzbaker Jul 1, 2024
6b40010
Merge pull request #2566 from chillfig:portTruncation
dzbaker Jul 1, 2024
0c7b073
Updating documentation and version numbers for equuleus-rc1+dev163
dzbaker Jul 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions modules/sb/fsw/src/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1389,21 +1389,27 @@ CFE_Status_t CFE_SB_ReceiveBuffer(CFE_SB_Buffer_t **BufPtr, CFE_SB_PipeId_t Pipe
CFE_SB_Buffer_t *CFE_SB_AllocateMessageBuffer(size_t MsgSize)
{
CFE_ES_AppId_t AppId;
char AppName[OS_MAX_API_NAME] = {""};
CFE_SB_BufferD_t *BufDscPtr;
CFE_SB_Buffer_t * BufPtr;
CFE_Status_t Status;

AppId = CFE_ES_APPID_UNDEFINED;
BufDscPtr = NULL;
BufPtr = NULL;

Status = CFE_ES_GetAppID(&AppId);

if (MsgSize > CFE_MISSION_SB_MAX_SB_MSG_SIZE)
{
CFE_ES_WriteToSysLog("%s: ZeroCopyGetPtr-Failed, MsgSize is too large\n", __func__);
CFE_ES_GetAppName(AppName, AppId, sizeof(AppName));
CFE_ES_WriteToSysLog("%s %s: Failed, requested size %ld larger than allowed %d\n",
AppName, __func__, MsgSize, CFE_MISSION_SB_MAX_SB_MSG_SIZE);
return NULL;
}

/* get callers AppId */
if (CFE_ES_GetAppID(&AppId) == CFE_SUCCESS)
if (Status == CFE_SUCCESS)
{
CFE_SB_LockSharedData(__func__, __LINE__);

Expand Down