update test/fuzztest/sysparamdynamic_fuzzer/sysparamdynamic_fuzzer.cpp.

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

View File

@ -28,15 +28,13 @@ bool SysparamDynamicFuzzTest(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;
}