/foundation/ability/ability_base/test/fuzztest/wantparamsthird_fuzzer/ |
H A D | wantparamsthird_fuzzer.cpp | 39 // convert fuzz input data to an integer in GetU32Data() 42 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 47 char charValue = *data; in DoSomethingInterestingWithMyAPI() 69 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 71 /* Run your code on data */ in LLVMFuzzerTestOneInput() 72 if (data == nullptr) { in LLVMFuzzerTestOneInput() 73 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 89 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_base/test/fuzztest/wantsecond_fuzzer/ |
H A D | wantsecond_fuzzer.cpp | 36 // convert fuzz input data to an integer in GetU32Data() 39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 std::string type(data, size); in DoSomethingInterestingWithMyAPI() 60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 62 /* Run your code on data */ in LLVMFuzzerTestOneInput() 63 if (data == nullptr) { in LLVMFuzzerTestOneInput() 64 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 80 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityframeworkscjenvironment_fuzzer/ |
H A D | abilityframeworkscjenvironment_fuzzer.cpp | 47 // convert fuzz input data to an integer in GetU32Data() 66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 68 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPI() 75 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 77 /* Run your code on data */ in LLVMFuzzerTestOneInput() 78 if (data == nullptr) { in LLVMFuzzerTestOneInput() 94 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubcleanallmissions_fuzzer/ |
H A D | abilitystubcleanallmissions_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubcleanmission_fuzzer/ |
H A D | abilitystubcleanmission_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubdumpabilityinfodone_fuzzer/ |
H A D | abilitystubdumpabilityinfodone_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubdoabilityforeground_fuzzer/ |
H A D | abilitystubdoabilityforeground_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetpendingwantuserid_fuzzer/ |
H A D | abilitystubgetpendingwantuserid_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetpendingwantuid_fuzzer/ |
H A D | abilitystubgetpendingwantuid_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubmovemissionstoforeground_fuzzer/ |
H A D | abilitystubmovemissionstoforeground_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubmovemissionstobackground_fuzzer/ |
H A D | abilitystubmovemissionstobackground_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubreportdrawncompleted_fuzzer/ |
H A D | abilitystubreportdrawncompleted_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubrequestdialogservice_fuzzer/ |
H A D | abilitystubrequestdialogservice_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubstartspecifiedabilitybyscb_fuzzer/ |
H A D | abilitystubstartspecifiedabilitybyscb_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubstartsyncmissions_fuzzer/ |
H A D | abilitystubstartsyncmissions_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/closeability_fuzzer/ |
H A D | closeability_fuzzer.cpp | 47 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 65 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI() 83 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 85 /* Run your code on data */ in LLVMFuzzerTestOneInput() 86 if (data == nullptr) { in LLVMFuzzerTestOneInput() 87 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 103 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/unregistermissionlistener_fuzzer/ |
H A D | unregistermissionlistener_fuzzer.cpp | 56 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 68 std::string deviceId(data, size); in DoSomethingInterestingWithMyAPI() 79 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 81 /* Run your code on data */ in LLVMFuzzerTestOneInput() 82 if (data == nullptr) { in LLVMFuzzerTestOneInput() 83 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 99 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_base/test/fuzztest/wantsixth_fuzzer/ |
H A D | wantsixth_fuzzer.cpp | 36 // convert fuzz input data to an integer in GetU32Data() 39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 std::string key(data, size); in DoSomethingInterestingWithMyAPI() 62 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 64 /* Run your code on data */ in LLVMFuzzerTestOneInput() 65 if (data == nullptr) { in LLVMFuzzerTestOneInput() 66 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 82 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubaddfreeinstallobserver_fuzzer/ |
H A D | abilitystubaddfreeinstallobserver_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubacquiresharedata_fuzzer/ |
H A D | abilitystubacquiresharedata_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubdoabilitybackground_fuzzer/ |
H A D | abilitystubdoabilitybackground_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetappmemorysize_fuzzer/ |
H A D | abilitystubgetappmemorysize_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetabilitytoken_fuzzer/ |
H A D | abilitystubgetabilitytoken_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubisrunninginstabilitytest_fuzzer/ |
H A D | abilitystubisrunninginstabilitytest_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|
/foundation/ability/ability_runtime/test/fuzztest/abilitystubkillprocess_fuzzer/ |
H A D | abilitystubkillprocess_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 /* Run your code on data */ in LLVMFuzzerTestOneInput() 60 if (data == nullptr) { in LLVMFuzzerTestOneInput() 61 std::cout << "invalid data" << std::endl; in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
|