mirror of
https://github.com/openharmony/device_profile_core.git
synced 2026-07-19 17:05:37 -04:00
modify fuzz
Signed-off-by: zjucx <chengxiang4@huawei.com> Change-Id: I0f0d66924d628b977ddc59579d89389b952e8f00
This commit is contained in:
@@ -70,7 +70,7 @@ void FuzzDeviceProfile(const uint8_t* rawData, size_t size)
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
||||
{
|
||||
if (size < OHOS::DeviceProfile::THRESHOLD) {
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
OHOS::DeviceProfile::FuzzDeviceProfile(data, size);
|
||||
|
||||
Reference in New Issue
Block a user