Home
last modified time | relevance | path

Searched refs:size (Results 1126 - 1150 of 33845) sorted by relevance

1...<<41424344454647484950>>...1354

/foundation/ability/ability_runtime/test/fuzztest/startupresidentprocess_fuzzer/
H A Dstartupresidentprocess_fuzzer.cpp36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
51 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
60 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
64 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
70 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
71 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/codec/
H A Dbyte_buffer_operator.cpp22 int32_t size = -1; in ReadData() local
23 if (!ReadData(size) || size < 0) { in ReadData()
24 LOGW("Could not read map size or map size is invalid"); in ReadData()
32 for (int32_t idx = 0; idx < size; ++idx) { in ReadData()
44 int32_t size = -1; in ReadData() local
45 if (!ReadData(size) || size < 0) { in ReadData()
46 LOGW("Could not read map size o in ReadData()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleagingmgr_fuzzer/
H A Dbundleagingmgr_fuzzer.cpp27 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
45 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
52 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
53 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
57 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
63 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
64 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresconfiguration_fuzzer/
H A Dbundleresconfiguration_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
42 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
49 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
53 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
54 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
58 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
63 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
64 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixswitcher_fuzzer/
H A Dquickfixswitcher_fuzzer.cpp35 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
62 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
66 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
67 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
71 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
76 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
77 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/servicecenterconnection_fuzzer/
H A Dservicecenterconnection_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
61 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
65 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
66 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
70 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
75 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
76 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/agingrequest_fuzzer/
H A Dagingrequest_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
56 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
63 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
64 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
68 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
74 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
75 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundlemanagercallback_fuzzer/
H A Dbundlemanagercallback_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
51 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
58 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
59 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
63 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
69 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
70 if (memcpy_s(ch, size + 1, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplgetrealpath_fuzzer/
H A Dverifymanagerhostimplgetrealpath_fuzzer.cpp30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
46 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
53 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
57 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
58 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
62 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
67 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
68 if (memcpy_s(ch, size, data, size) ! in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksubscribebackgroundtask_fuzzer/
H A Dbgtasksubscribebackgroundtask_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
61 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
65 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
70 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
71 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
77 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskupdatebackgroundrunning_fuzzer/
H A Dbgtaskupdatebackgroundrunning_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetefficiencyresourcesinfos_fuzzer/
H A Dbgtaskgetefficiencyresourcesinfos_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetcontinuoustaskapps_fuzzer/
H A Dbgtaskgetcontinuoustaskapps_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstartbackgroundrunning_fuzzer/
H A Dbgtaskstartbackgroundrunning_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksetbgtaskconfig_fuzzer/
H A Dbgtasksetbgtaskconfig_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskapplyefficiencyresources_fuzzer/
H A Dbgtaskapplyefficiencyresources_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskbackgroundrunningforinner_fuzzer/
H A Dbgtaskbackgroundrunningforinner_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
60 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
64 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
69 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
70 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
76 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskcancelsuspenddelay_fuzzer/
H A Dbgtaskcancelsuspenddelay_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetremainingdelaytime_fuzzer/
H A Dbgtaskgetremainingdelaytime_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgettransienttaskapps_fuzzer/
H A Dbgtaskgettransienttaskapps_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskresetallefficiencyresources_fuzzer/
H A Dbgtaskresetallefficiencyresources_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskrequestsuspenddelay_fuzzer/
H A Dbgtaskrequestsuspenddelay_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstopbackgroundrunning_fuzzer/
H A Dbgtaskstopbackgroundrunning_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstopcontinuoustask_fuzzer/
H A Dbgtaskstopcontinuoustask_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskunsubscribebackgroundtask_fuzzer/
H A Dbgtaskunsubscribebackgroundtask_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
61 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
65 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
70 (void)memset_s(ch, size + 1, 0x00, size+1); in LLVMFuzzerTestOneInput()
71 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
77 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]

Completed in 8 milliseconds

1...<<41424344454647484950>>...1354