-
Notifications
You must be signed in to change notification settings - Fork 253
Labels
enhancementsecurityunit-testTickets related to the OSAL unit testing (functional and/or coverage)Tickets related to the OSAL unit testing (functional and/or coverage)
Milestone
Description
Is your feature request related to a problem? Please describe.
osal/src/ut-stubs/osapi-utstub-idmap.c
Lines 137 to 152 in 09a2c5e
| OS_common_record_t *OS_ObjectIdGlobalFromToken(const OS_object_token_t *token) | |
| { | |
| static OS_common_record_t fake_record; | |
| int32 status; | |
| OS_common_record_t * recptr; | |
| status = UT_DEFAULT_IMPL(OS_ObjectIdGlobalFromToken); | |
| if (status == 0 && | |
| UT_Stub_CopyToLocal(UT_KEY(OS_ObjectIdGlobalFromToken), &recptr, sizeof(recptr)) < sizeof(recptr)) | |
| { | |
| /* This function should never return null */ | |
| recptr = &fake_record; | |
| } | |
| return recptr; | |
| } |
| OS_DirectoryClose(dirh); |
| OS_DirectoryClose(dirh); |
Note the only one in non-test code is a false alarm so I'm not marking as a bug and not critical, but easy to squash:
osal/src/os/shared/src/osapi-idmap.c
Line 678 in 09a2c5e
| token->obj_idx = OSAL_INDEX_C(local_id); |
Describe the solution you'd like
Fix.
Describe alternatives you've considered
None
Additional context
CodeQL warnings
Requester Info
Jacob Hageman - NASA/GSFC
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementsecurityunit-testTickets related to the OSAL unit testing (functional and/or coverage)Tickets related to the OSAL unit testing (functional and/or coverage)