Skip to content

Commit b3030d9

Browse files
committed
Fix magic number in multiclient DMA test and document breaking default-deny change in PR description
1 parent e2e7b47 commit b3030d9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/wh_test_multiclient.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,12 @@ static int _testGlobalKeyDma(whClientContext* client1, whServerContext* server1,
452452

453453
static whServerDmaAddrAllowList dmaAllowList = {0};
454454

455-
memcpy(keyData1, "GlobalDmaCacheTestKey123456!", 28);
456-
memcpy(keyData2, "GlobalDmaExportTestKey12345!", 28);
455+
memset(keyData1, 0, sizeof(keyData1));
456+
memcpy(keyData1, "GlobalDmaCacheTestKey123456!",
457+
sizeof("GlobalDmaCacheTestKey123456!") - 1);
458+
memset(keyData2, 0, sizeof(keyData2));
459+
memcpy(keyData2, "GlobalDmaExportTestKey12345!",
460+
sizeof("GlobalDmaExportTestKey12345!") - 1);
457461
memset(outBuf, 0, sizeof(outBuf));
458462

459463
/* Register DMA allow list for both servers */

0 commit comments

Comments
 (0)