update test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp.

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

View File

@ -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;
}