update test/fuzztest/sysparamstatic_fuzzer/sysparamstatic_fuzzer.cpp.

Signed-off-by: zhuhongtao666 <zhuhongtao12@huawei.com>
This commit is contained in:
zhuhongtao666 2022-11-23 00:07:11 +00:00 committed by Gitee
parent 24dac8e7fd
commit 2edc6fd6df
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -28,15 +28,13 @@ bool SysparamStaticFuzzTest(const uint8_t *data, size_t size)
}
char character[MAX_NUM] = { 0x00 };
if (EOK != memcpy_s(character, sizeof(character)-1, data, size))
{
if (EOK != memcpy_s(character, sizeof(character)-1, data, size)) {
return false;
}
unsigned int len[MAX_NUM] = { 0x00 };
if (EOK != memcpy_s(len, sizeof(len)-1, data, size))
{
if (EOK != memcpy_s(len, sizeof(len)-1, data, size)) {
return false;
}