Skip to content

Commit

Permalink
Merge pull request #77 from jphickey/fix-47-init-input-params
Browse files Browse the repository at this point in the history
Fix nasa#47, init data passed as const input
  • Loading branch information
astrogeco authored Dec 8, 2021
2 parents ad602ec + 75321f4 commit 3f2b3ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unit-test/cf_cfdp_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -8533,6 +8533,8 @@ void Test_CF_CFDP_CopyDataToLv_FailsBecause_len_IsGreaterThan_sizeof_dest_lv_dat
uint32 arg_len = Any_uint32_GreaterThan(sizeof(arg_dest_lv->data));
int local_result;

memset(arg_data, 0xEE, sizeof(arg_data));

/* Act */
local_result = CF_CFDP_CopyDataToLv(arg_dest_lv, arg_data, arg_len);

Expand All @@ -8550,7 +8552,7 @@ void Test_CF_CFDP_CopyDataToLv_FailsBecause_len_IsEqTo_sizeof_dest_lv_data_Retur
uint32 arg_len = sizeof(arg_dest_lv->data);
int local_result;

// AnyBufferOf_uint8_WithSize(arg_data, arg_len);
memset(arg_data, 0xEE, sizeof(arg_data));

/* Act */
local_result = CF_CFDP_CopyDataToLv(arg_dest_lv, arg_data, arg_len);
Expand Down

0 comments on commit 3f2b3ae

Please sign in to comment.