/foundation/ability/ability_runtime/test/fuzztest/unlockmissionforcleanup_fuzzer/ |
H A D | unlockmissionforcleanup_fuzzer.cpp | 34 // convert fuzz input data to an integer in GetU32Data() 37 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 43 int32_t missionId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() 53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 55 /* Run your code on data */ in LLVMFuzzerTestOneInput() 56 if (data == nullptr) { in LLVMFuzzerTestOneInput() 57 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 73 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/interfaces/inner_api/dataobs_manager/include/ |
H A D | data_ability_observer_stub.h | 34 int OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override; 38 * @brief Called back to notify that the data being observed has changed. 41 int32_t OnChangeInner(MessageParcel &data, MessageParcel &reply); 44 * @brief Called back to notify that the data being observed has changed. 47 int32_t OnChangeExtInner(MessageParcel &data, MessageParcel &reply); 50 * @brief Called back to notify that the data being observed has changed. 53 int32_t OnChangePreferencesInner(MessageParcel &data, MessageParcel &reply); 55 using RequestFuncType = int (DataAbilityObserverStub::*)(MessageParcel &data, MessageParcel &reply);
|
/foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager/include/ |
H A D | ui_service_stub.h | 35 int32_t OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option) override; 38 int32_t OnRequestCallBackInner(MessageParcel& data, MessageParcel& reply); 39 int32_t OnPushCallBackInner(MessageParcel& data, MessageParcel& reply); 40 int32_t OnReturnRequestInner(MessageParcel& data, MessageParcel& reply); 41 using RequestFuncType = int32_t (UIServiceStub::*)(MessageParcel& data, MessageParcel& reply);
|
/foundation/arkui/napi/test/fuzztest/loadarkmodule_fuzzer/ |
H A D | loadarkmodule_fuzzer.cpp | 61 void LoadArkModuleFuzzTest(const uint8_t* data, size_t size) in LoadArkModuleFuzzTest() argument 70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in LoadArkModuleFuzzTest() 75 const void* buffer = reinterpret_cast<const void*>(data); in LoadArkModuleFuzzTest() 82 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 84 // Run your code on data. in LLVMFuzzerTestOneInput() 85 OHOS::LoadArkModuleFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/arkui/napi/test/fuzztest/runbufferscript_fuzzer/ |
H A D | runbufferscript_fuzzer.cpp | 61 void RunBufferScriptFuzzTest(const uint8_t* data, size_t size) in RunBufferScriptFuzzTest() argument 70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in RunBufferScriptFuzzTest() 75 std::vector<uint8_t> vec(size, *data); in RunBufferScriptFuzzTest() 81 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 83 // Run your code on data. in LLVMFuzzerTestOneInput() 84 OHOS::RunBufferScriptFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/arkui/napi/test/fuzztest/runscriptpath_fuzzer/ |
H A D | runscriptpath_fuzzer.cpp | 61 void RunScriptPathFuzzTest(const uint8_t* data, size_t size) in RunScriptPathFuzzTest() argument 70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in RunScriptPathFuzzTest() 75 std::string result(reinterpret_cast<const char*>(data), size); in RunScriptPathFuzzTest() 81 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 83 // Run your code on data. in LLVMFuzzerTestOneInput() 84 OHOS::RunScriptPathFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/arkui/napi/test/fuzztest/executejsbin_fuzzer/ |
H A D | executejsbin_fuzzer.cpp | 61 void ExecuteJsBinFuzzTest(const uint8_t* data, size_t size) in ExecuteJsBinFuzzTest() argument 70 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in ExecuteJsBinFuzzTest() 75 std::string name(reinterpret_cast<const char*>(data), size); in ExecuteJsBinFuzzTest() 84 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 86 // Run your code on data. in LLVMFuzzerTestOneInput() 87 OHOS::ExecuteJsBinFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleresourcehost_fuzzer/ |
H A D | bundleresourcehost_fuzzer.cpp | 37 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 43 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 57 /* Run your code on data */ in LLVMFuzzerTestOneInput() 58 if (data == nullptr) { in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/defaultapphost_fuzzer/ |
H A D | defaultapphost_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
in DoSomethingInterestingWithMyAPI() argument 36 datas.WriteBuffer(data, size);
in DoSomethingInterestingWithMyAPI() 48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
in LLVMFuzzerTestOneInput() argument 50 /* Run your code on data */
in LLVMFuzzerTestOneInput() 51 if (data == nullptr) {
in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size, data, size) != EOK) {
in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallersendbundlesystemevent_fuzzer/ |
H A D | appservicefwkinstallersendbundlesystemevent_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 33 std::vector<std::string> hspPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI() 44 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 46 /* Run your code on data */ in LLVMFuzzerTestOneInput() 47 if (data == nullptr) { in LLVMFuzzerTestOneInput() 66 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/recentlyunusedagingmgr_fuzzer/ |
H A D | recentlyunusedagingmgr_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 43 bundleAgingMgr.UnInstallBundle(std::string(data, size)); in DoSomethingInterestingWithMyAPI() 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 51 /* Run your code on data */ in LLVMFuzzerTestOneInput() 52 if (data == nullptr) { in LLVMFuzzerTestOneInput() 68 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleinstalldhost_fuzzer/ |
H A D | bundleinstalldhost_fuzzer.cpp | 33 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 39 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 51 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 53 /* Run your code on data */ in LLVMFuzzerTestOneInput() 54 if (data == nullptr) { in LLVMFuzzerTestOneInput() 73 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlestreaminstallerhost_fuzzer/ |
H A D | bundlestreaminstallerhost_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 50 /* Run your code on data */ in LLVMFuzzerTestOneInput() 51 if (data == nullptr) { in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixmanagerhost_fuzzer/ |
H A D | quickfixmanagerhost_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 50 /* Run your code on data */ in LLVMFuzzerTestOneInput() 51 if (data == nullptr) { in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundlemutiuserinstaller_fuzzer/ |
H A D | bundlemutiuserinstaller_fuzzer.cpp | 28 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 31 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 45 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 47 /* Run your code on data */ in LLVMFuzzerTestOneInput() 48 if (data == nullptr) { in LLVMFuzzerTestOneInput() 67 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/overlaymanagerhost_fuzzer/ |
H A D | overlaymanagerhost_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 50 /* Run your code on data */ in LLVMFuzzerTestOneInput() 51 if (data == nullptr) { in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/appcontrolhost_fuzzer/ |
H A D | appcontrolhost_fuzzer.cpp | 31 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 37 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 51 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 53 /* Run your code on data */ in LLVMFuzzerTestOneInput() 54 if (data == nullptr) { in LLVMFuzzerTestOneInput() 73 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrhost_fuzzer/ |
H A D | bundlemgrhost_fuzzer.cpp | 31 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 37 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 51 /* Run your code on data */ in LLVMFuzzerTestOneInput() 52 if (data == nullptr) { in LLVMFuzzerTestOneInput() 71 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleusermgrhost_fuzzer/ |
H A D | bundleusermgrhost_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 50 /* Run your code on data */ in LLVMFuzzerTestOneInput() 51 if (data == nullptr) { in LLVMFuzzerTestOneInput() 70 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/agingrequest_fuzzer/ |
H A D | agingrequest_fuzzer.cpp | 29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 40 int64_t dataBytes = reinterpret_cast<uintptr_t>(data); in DoSomethingInterestingWithMyAPI() 56 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 58 /* Run your code on data */ in LLVMFuzzerTestOneInput() 59 if (data == nullptr) { in LLVMFuzzerTestOneInput() 75 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallercheckandparsefiles_fuzzer/ |
H A D | appservicefwkinstallercheckandparsefiles_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 std::vector<std::string> hspPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI() 44 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 46 /* Run your code on data */ in LLVMFuzzerTestOneInput() 47 if (data == nullptr) { in LLVMFuzzerTestOneInput() 66 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallercheckapplabelinfo_fuzzer/ |
H A D | appservicefwkinstallercheckapplabelinfo_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 36 std::string path = std::string(data, size); in DoSomethingInterestingWithMyAPI() 44 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 46 /* Run your code on data */ in LLVMFuzzerTestOneInput() 47 if (data == nullptr) { in LLVMFuzzerTestOneInput() 66 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundlemanagercallbackproxy_fuzzer/ |
H A D | bundlemanagercallbackproxy_fuzzer.cpp | 38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 const std::string RpcIdResult(data, size); in DoSomethingInterestingWithMyAPI() 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 51 /* Run your code on data */ in LLVMFuzzerTestOneInput() 52 if (data == nullptr) { in LLVMFuzzerTestOneInput() 68 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleoverlayinstallchecker_fuzzer/ |
H A D | bundleoverlayinstallchecker_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 44 checker.CheckTargetModule(TEST_BUNDLE_NAME, std::string(data, size)); in DoSomethingInterestingWithMyAPI() 50 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 52 /* Run your code on data */ in LLVMFuzzerTestOneInput() 53 if (data == nullptr) { in LLVMFuzzerTestOneInput() 72 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/servicecenterstatuscallback_fuzzer/ |
H A D | servicecenterstatuscallback_fuzzer.cpp | 39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
in DoSomethingInterestingWithMyAPI() argument 41 std::string installResult(data, size);
in DoSomethingInterestingWithMyAPI() 52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
in LLVMFuzzerTestOneInput() argument 54 /* Run your code on data */
in LLVMFuzzerTestOneInput() 55 if (data == nullptr) {
in LLVMFuzzerTestOneInput() 74 if (memcpy_s(ch, size, data, size) != EOK) {
in LLVMFuzzerTestOneInput()
|