/foundation/ability/ability_runtime/test/fuzztest/abilitystubdisconnectabilitydone_fuzzer/ |
H A D | abilitystubdisconnectabilitydone_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubdisconnectability_fuzzer/ |
H A D | abilitystubdisconnectability_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetmissioninfos_fuzzer/ |
H A D | abilitystubgetmissioninfos_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubgetmissioninfo_fuzzer/ |
H A D | abilitystubgetmissioninfo_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystublockmissionforcleanup_fuzzer/ |
H A D | abilitystublockmissionforcleanup_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubminimizeability_fuzzer/ |
H A D | abilitystubminimizeability_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubregisterconnectionobserver_fuzzer/ |
H A D | abilitystubregisterconnectionobserver_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubregistercollaborator_fuzzer/ |
H A D | abilitystubregistercollaborator_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubstartabilityascallerforoptions_fuzzer/ |
H A D | abilitystubstartabilityascallerforoptions_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubstartabilityascallerbytoken_fuzzer/ |
H A D | abilitystubstartabilityascallerbytoken_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubunregistercancellistener_fuzzer/ |
H A D | abilitystubunregistercancellistener_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilitystubunlockmissionforcleanup_fuzzer/ |
H A D | abilitystubunlockmissionforcleanup_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 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 70 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, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/connectability_fuzzer/ |
H A D | connectability_fuzzer.cpp | 43 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 55 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI() 77 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 85 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 86 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 90 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 96 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 97 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/extensionconfig_fuzzer/ |
H A D | extensionconfig_fuzzer.cpp | 50 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 52 std::string strParam(data, size); in DoSomethingInterestingWithMyAPI() 71 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 79 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 80 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 84 char *ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() 90 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 91 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/ability/ability_runtime/test/fuzztest/uiextensionrecordfactory_fuzzer/ |
H A D | uiextensionrecordfactory_fuzzer.cpp | 51 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument 56 std::string strParam(data, size); in DoSomethingInterestingWithMyAPI() 66 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 74 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 75 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 79 char *ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput() 85 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 86 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixdatamgr_fuzzer/ |
H A D | quickfixdatamgr_fuzzer.cpp | 34 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 39 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 63 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 64 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 68 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 73 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 74 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixdeleter_fuzzer/ |
H A D | quickfixdeleter_fuzzer.cpp | 40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 42 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 58 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 65 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 66 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 70 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 76 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 77 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundlemanagercallbackstub_fuzzer/ |
H A D | bundlemanagercallbackstub_fuzzer.cpp | 48 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 54 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 65 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 72 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 73 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 77 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput() 83 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 84 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixmanagerrdb_fuzzer/ |
H A D | quickfixmanagerrdb_fuzzer.cpp | 35 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 40 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI() 53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 60 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 64 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 65 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 69 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 74 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 75 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixstatuscallbackproxy_fuzzer/ |
H A D | quickfixstatuscallbackproxy_fuzzer.cpp | 36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 41 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI() 56 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 63 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 67 /* Validate the length of size */ in LLVMFuzzerTestOneInput() 68 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput() 72 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput() 77 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput() 78 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/defaultapphost_fuzzer/ |
H A D | defaultapphost_fuzzer.cpp | 37 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
in DoSomethingInterestingWithMyAPI() argument 43 datas.WriteBuffer(data, size);
in DoSomethingInterestingWithMyAPI() 59 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
in LLVMFuzzerTestOneInput() argument 66 if (size < OHOS::U32_AT_SIZE) {
in LLVMFuzzerTestOneInput() 70 /* Validate the length of size */
in LLVMFuzzerTestOneInput() 71 if (size > OHOS::FOO_MAX_LEN) {
in LLVMFuzzerTestOneInput() 75 char* ch = static_cast<char*>(malloc(size + 1));
in LLVMFuzzerTestOneInput() 80 (void)memset_s(ch, size + 1, 0x00, size + 1);
in LLVMFuzzerTestOneInput() 81 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/servicecenterstatuscallbackstub_fuzzer/ |
H A D | servicecenterstatuscallbackstub_fuzzer.cpp | 50 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
in DoSomethingInterestingWithMyAPI() argument 54 datas.WriteBuffer(data, size);
in DoSomethingInterestingWithMyAPI() 65 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
in LLVMFuzzerTestOneInput() argument 72 if (size < OHOS::U32_AT_SIZE) {
in LLVMFuzzerTestOneInput() 76 /* Validate the length of size */
in LLVMFuzzerTestOneInput() 77 if (size > OHOS::FOO_MAX_LEN) {
in LLVMFuzzerTestOneInput() 81 char* ch = static_cast<char*>(malloc(size + 1));
in LLVMFuzzerTestOneInput() 86 (void)memset_s(ch, size + 1, 0x00, size + 1);
in LLVMFuzzerTestOneInput() 87 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput() [all...] |
/foundation/multimedia/audio_framework/test/fuzztest/audiopowerstatelistener_fuzzer/ |
H A D | audio_power_state_listener_fuzzer.cpp | 93 void InitAudioInterruptInfoFuzzTest(const uint8_t *rawData, size_t size) in InitAudioInterruptInfoFuzzTest() argument 95 if (rawData == nullptr || size < LIMITSIZE) { in InitAudioInterruptInfoFuzzTest() 104 void ControlAudioFocusFuzzTest(const uint8_t *rawData, size_t size) in ControlAudioFocusFuzzTest() argument 106 if (rawData == nullptr || size < LIMITSIZE) { in ControlAudioFocusFuzzTest() 115 void SyncControlAudioFocusFuzzTest(const uint8_t *rawData, size_t size) in SyncControlAudioFocusFuzzTest() argument 117 if (rawData == nullptr || size < LIMITSIZE) { in SyncControlAudioFocusFuzzTest() 129 extern "C" int LLVMFuzzerInitialize(const uint8_t *data, size_t size) in LLVMFuzzerInitialize() argument 136 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *rawData, size_t size) in LLVMFuzzerTestOneInput() argument 139 OHOS::AudioStandard::InitAudioInterruptInfoFuzzTest(rawData, size); in LLVMFuzzerTestOneInput() 140 OHOS::AudioStandard::ControlAudioFocusFuzzTest(rawData, size); in LLVMFuzzerTestOneInput() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/ |
H A D | linear_allocator.h | 28 explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in LinearAllocator() argument 33 LinearAllocator(size_t size, size_t alignment) in LinearAllocator() argument 34 : size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1)) in LinearAllocator() 47 void* Allocate(size_t size) in Allocate() argument 49 return Allocate(size, 1); in Allocate() 52 void* Allocate(size_t size, size_t alignment) in Allocate() argument 54 if (std::align(alignment, size, current_, free_)) { in Allocate() 57 current_ = static_cast<char*>(current_) + size; in Allocate() [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | linear_allocator.h | 28 explicit LinearAllocator(size_t size) : size_(size), data_(BASE_NS::make_unique<uint8_t[]>(size)) in LinearAllocator() argument 33 LinearAllocator(size_t size, size_t alignment) in LinearAllocator() argument 34 : size_(size), alignment_(alignment), data_(BASE_NS::make_unique<uint8_t[]>(size_ + alignment_ - 1)) in LinearAllocator() 47 void* Allocate(size_t size) in Allocate() argument 49 return Allocate(size, 1); in Allocate() 52 void* Allocate(size_t size, size_t alignment) in Allocate() argument 54 if (std::align(alignment, size, current_, free_)) { in Allocate() 57 current_ = static_cast<char*>(current_) + size; in Allocate() [all...] |