Skip to content

Commit

Permalink
Fix #232, Address sanitizer issue
Browse files Browse the repository at this point in the history
Fix #232, set data buffer for CFE_TBL_GetAddress
  • Loading branch information
Anh D Van committed Feb 19, 2025
1 parent ceaf7ab commit 7532a88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unit-test/coveragetest/coveragetest_sample_app_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ void Test_SAMPLE_APP_ProcessCmd(void)
* reporting the table values, and one through the CFE_TBL_ReleaseAddress()
* error path.
*/
UT_SetDataBuffer(UT_KEY(CFE_TBL_GetAddress), &TblPtr, sizeof(TblPtr), false);
UT_SetDefaultReturnValue(UT_KEY(CFE_TBL_GetAddress), CFE_SUCCESS);
UT_SetDefaultReturnValue(UT_KEY(CFE_TBL_ReleaseAddress), CFE_TBL_ERR_NO_ACCESS);
UtAssert_INT32_EQ(SAMPLE_APP_ProcessCmd(&TestMsg), CFE_TBL_ERR_NO_ACCESS);
Expand Down

0 comments on commit 7532a88

Please sign in to comment.