!1066 fuzz用例修改

Merge pull request !1066 from Shenyx/fu
This commit is contained in:
openharmony_ci 2024-11-12 11:33:32 +00:00 committed by Gitee
commit d17c154ebc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -73,7 +73,7 @@ void GrantNativePermission()
delete[] perms;
}
void CreateRequestFuzzTest(const uint8_t *data, size_t size)
void CreateRequestFuzzTest(size_t size)
{
Config config;
auto tid = std::to_string(size);
@ -962,7 +962,7 @@ void RequestSyncLoadFuzzTestOnLoadSystemAbility(const uint8_t *data, size_t size
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
/* Run your code on data */
OHOS::CreateRequestFuzzTest(data, size);
OHOS::CreateRequestFuzzTest(size);
OHOS::StartRequestFuzzTest(data, size);
OHOS::StopRequestFuzzTest(data, size);
OHOS::ShowRequestFuzzTest(data, size);