mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-23 06:59:59 +00:00
update test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp.
Signed-off-by: zhuhongtao666 <zhuhongtao12@huawei.com>
This commit is contained in:
parent
fcf2cea7da
commit
a391ff4229
@ -34,8 +34,7 @@ bool SysparamDynamicFuzzTest(const uint8_t *data, size_t size)
|
||||
union FscryptPolicy *policy = &policy1;
|
||||
int state = *(reinterpret_cast<const int *>(data));
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user