mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-23 06:59:59 +00:00
update test/fuzztest/sysparamstatic_fuzzer/sysparamstatic_fuzzer.cpp.
Signed-off-by: zhuhongtao666 <zhuhongtao12@huawei.com>
This commit is contained in:
parent
24dac8e7fd
commit
2edc6fd6df
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user