Skip to content

Commit

Permalink
Merge pull request nasa#92 from avan989/Fix-91-buffer-overflow-covera…
Browse files Browse the repository at this point in the history
…ge-test

Fix-91-buffer-overflow-unit-test
  • Loading branch information
dzbaker authored Apr 4, 2024
2 parents 9b358b0 + dc75bdc commit 69fc1b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unit-test/cs_compute_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ void CS_RecomputeAppChildTask_Test_Nominal(void)
void CS_RecomputeAppChildTask_Test_CouldNotGetAddress(void)
{
CS_Res_App_Table_Entry_t RecomputeAppEntry;
CS_Def_App_Table_Entry_t DefAppTbl[10];
CS_Def_App_Table_Entry_t DefAppTbl[CS_MAX_NUM_APP_TABLE_ENTRIES];

memset(&RecomputeAppEntry, 0, sizeof(RecomputeAppEntry));
memset(&DefAppTbl, 0, sizeof(DefAppTbl));
Expand Down Expand Up @@ -1637,7 +1637,7 @@ void CS_RecomputeTablesChildTask_Test_Nominal(void)
void CS_RecomputeTablesChildTask_Test_CouldNotGetAddress(void)
{
CS_Res_Tables_Table_Entry_t RecomputeTablesEntry;
CS_Def_Tables_Table_Entry_t DefTablesTbl[10];
CS_Def_Tables_Table_Entry_t DefTablesTbl[CS_MAX_NUM_APP_TABLE_ENTRIES];

memset(&RecomputeTablesEntry, 0, sizeof(RecomputeTablesEntry));
memset(&DefTablesTbl, 0, sizeof(DefTablesTbl));
Expand Down

0 comments on commit 69fc1b9

Please sign in to comment.