From a391ff422964fcc1baa6996d9543efe92506c305 Mon Sep 17 00:00:00 2001 From: zhuhongtao666 Date: Wed, 23 Nov 2022 00:05:49 +0000 Subject: [PATCH] update test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp. Signed-off-by: zhuhongtao666 --- test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp b/test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp index 4f7037f3..a68f8058 100644 --- a/test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp +++ b/test/fuzztest/keycontrol_fuzzer/keycontrol_fuzzer.cpp @@ -34,8 +34,7 @@ bool SysparamDynamicFuzzTest(const uint8_t *data, size_t size) union FscryptPolicy *policy = &policy1; int state = *(reinterpret_cast(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; }