非安全函数告警清理

Signed-off-by: xuxinyu <xuxinyu6@huawei.com>
Change-Id: I45bbaa3568be3679b34b1e8b072d19d878fdbf02
This commit is contained in:
xuxinyu
2022-08-25 20:50:48 +08:00
parent 236e316568
commit b746ddd9d6
7 changed files with 21 additions and 28 deletions

View File

@@ -40,7 +40,7 @@ static UINT32 TestCase(VOID)
src = LOS_MemAlloc(m_aucSysMem0, 9);
ICUNIT_ASSERT_NOT_EQUAL(src, NULL, src);
(VOID)memset(src, 0, 9);
(void)memset_s(src, 9, 0, 9);
src[0] = 49;
src[1] = 50;
src[2] = 51;

View File

@@ -40,7 +40,7 @@ static UINT32 TestCase(VOID)
src = LOS_MemAlloc(m_aucSysMem0, 9);
ICUNIT_ASSERT_NOT_EQUAL(src, NULL, src);
(VOID)memset(src, 0, 9);
(void)memset_s(src, 9, 0, 9);
src[0] = 49;
src[1] = 50;
src[2] = 51;