Home
last modified time | relevance | path

Searched refs:size (Results 2701 - 2725 of 58262) sorted by relevance

1...<<101102103104105106107108109110>>...2331

/third_party/skia/src/utils/
H A DSkJSON.cpp83 static void* MakeVector(const void* src, size_t size, SkArenaAlloc& alloc) { in MakeVector() argument
84 // The Ts are already in memory, so their size should be safe. in MakeVector()
85 const auto total_size = sizeof(size_t) + size * sizeof(T) + extra_alloc_size; in MakeVector()
88 *size_ptr = size; in MakeVector()
89 sk_careful_memcpy(size_ptr + 1, src, size * sizeof(T)); in MakeVector()
94 ArrayValue::ArrayValue(const Value* src, size_t size, SkArenaAlloc& alloc) { in ArrayValue() argument
95 this->init_tagged_pointer(Tag::kArray, MakeVector<Value>(src, size, alloc)); in ArrayValue()
107 // null terminator when size == max_len (this works 'cause kShortString == 0).
119 FastString(const char* src, size_t size, const char* eos, SkArenaAlloc& alloc) { in FastString() argument
122 if (size > kMaxInlineStringSiz in FastString()
142 initLongString(const char* src, size_t size, SkArenaAlloc& alloc) initLongString() argument
151 initShortString(const char* src, size_t size) initShortString() argument
159 initFastShortString(const char* src, size_t size) initFastShortString() argument
187 StringValue(const char* src, size_t size, SkArenaAlloc& alloc) StringValue() argument
191 ObjectValue(const Member* src, size_t size, SkArenaAlloc& alloc) ObjectValue() argument
302 parse(const char* p, size_t size) parse() argument
571 pushObjectKey(const char* key, size_t size, const char* eos) pushObjectKey() argument
590 pushString(const char* s, size_t size, const char* eos) pushString() argument
914 DOM(const char* data, size_t size) DOM() argument
[all...]
/base/inputmethod/imf/test/fuzztest/systemabilitystub_fuzzer/
H A Dsystemabilitystub_fuzzer.cpp78 bool FuzzInputMethodSystemAbility(const uint8_t *rawData, size_t size) in FuzzInputMethodSystemAbility() argument
83 size = size - OFFSET; in FuzzInputMethodSystemAbility()
96 datas.WriteBuffer(rawData, size); in FuzzInputMethodSystemAbility()
104 bool TestDump(const uint8_t *rawData, size_t size) in TestDump() argument
107 std::string str(reinterpret_cast<const char *>(rawData), size); in TestDump() local
109 DelayedSingleton<InputMethodSystemAbility>::GetInstance()->Dump(static_cast<int32_t>(size), args); in TestDump()
110 DelayedSingleton<InputMethodSystemAbility>::GetInstance()->DumpAllMethod(static_cast<int32_t>(size)); in TestDump()
116 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
118 if (size < OHO in LLVMFuzzerTestOneInput()
[all...]
/base/msdp/device_status/test/fuzztest/ipcsocket_fuzzer/
H A Dipcsocket_fuzzer.cpp62 bool SocketClientFuzzTest(const uint8_t* data, size_t size) in SocketClientFuzzTest() argument
84 bool SocketConnectionFuzzTest(const uint8_t* data, size_t size) in SocketConnectionFuzzTest() argument
86 if ((data == nullptr) || (size < 1)) { in SocketConnectionFuzzTest()
97 g_baseFuzzSize = size; in SocketConnectionFuzzTest()
112 bool SocketParamsFuzzTest(const uint8_t* data, size_t size) in SocketParamsFuzzTest() argument
116 !datas.WriteBuffer(data, size) || !datas.RewindRead(0)) { in SocketParamsFuzzTest()
130 bool SocketSessionFuzzTest(const uint8_t* data, size_t size) in SocketSessionFuzzTest() argument
143 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
150 OHOS::SocketClientFuzzTest(data, size); in LLVMFuzzerTestOneInput()
151 OHOS::SocketConnectionFuzzTest(data, size); in LLVMFuzzerTestOneInput()
[all...]
/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/
H A Djit_buffer_integrity.h90 * @param size data size
93 static inline int32_t AppendData(JitCodeSignerBase *signer, const void *const data, uint32_t size) in AppendData() argument
96 return signer->SignData(CAST_TO_CONST_BYTES(data), size); in AppendData()
142 * @param size data size
146 const void *const data, uint32_t size) in PatchData()
149 return signer->PatchData(offset, CAST_TO_CONST_BYTES(data), size); in PatchData()
157 * @param size data size
145 PatchData(JitCodeSignerBase *signer, int offset, const void *const data, uint32_t size) PatchData() argument
160 PatchData(JitCodeSignerBase *signer, void *address, const void *const data, uint32_t size) PatchData() argument
174 ResetJitCode( void *jitMemory, int size) ResetJitCode() argument
204 CopyToJitCode( JitCodeSignerBase *signer, void *jitMemory, void *tmpBuffer, int size) CopyToJitCode() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/partition_table/
H A Dload_partition_table.c63 table->table[HI_FLASH_PARTITON_BOOT].size = PRODUCT_CFG_DEFAULT_BOOT_SIZE; in hi_flash_partition_init()
65 table->table[HI_FLASH_PARTITON_FACTORY_NV].size = PRODUCT_CFG_DEFAULT_FNV_SIZE; in hi_flash_partition_init()
67 table->table[HI_FLASH_PARTITON_NORMAL_NV].size = PRODUCT_CFG_DEFAULT_NORMAL_NV_SIZE; in hi_flash_partition_init()
69 table->table[HI_FLASH_PARTITON_NORMAL_NV_BACKUP].size = PRODUCT_CFG_DEFAULT_NORMAL_NV_BACKUP_SIZE; in hi_flash_partition_init()
71 table->table[HI_FLASH_PARTITON_KERNEL_A].size = PRODUCT_CFG_DEFAULT_KERNEL_A_SIZE; in hi_flash_partition_init()
73 table->table[HI_FLASH_PARTITON_KERNEL_B].size = PRODUCT_CFG_DEFAULT_KERNEL_B_SIZE; in hi_flash_partition_init()
75 table->table[HI_FLASH_PARTITON_HILINK].size = PRODUCT_CFG_DEFAULT_HILINK_SIZE; in hi_flash_partition_init()
77 table->table[HI_FLASH_PARTITON_FILE_SYSTEM].size = PRODUCT_CFG_DEFAULT_FILE_SYSTEM_SIZE; in hi_flash_partition_init()
79 table->table[HI_FLASH_PARTITON_USR_RESERVE].size = PRODUCT_CFG_DEFAULT_USER_RESERVE_SIZE; in hi_flash_partition_init()
81 table->table[HI_FLASH_PARTITON_HILINK_PKI].size in hi_flash_partition_init()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/common/partition_table/
H A Dboot_partition_table.c64 table->table[HI_FLASH_PARTITON_BOOT].size = PRODUCT_CFG_DEFAULT_BOOT_SIZE; in hi_flash_partition_init()
66 table->table[HI_FLASH_PARTITON_FACTORY_NV].size = PRODUCT_CFG_DEFAULT_FNV_SIZE; in hi_flash_partition_init()
68 table->table[HI_FLASH_PARTITON_NORMAL_NV].size = PRODUCT_CFG_DEFAULT_NORMAL_NV_SIZE; in hi_flash_partition_init()
70 table->table[HI_FLASH_PARTITON_NORMAL_NV_BACKUP].size = PRODUCT_CFG_DEFAULT_NORMAL_NV_BACKUP_SIZE; in hi_flash_partition_init()
72 table->table[HI_FLASH_PARTITON_KERNEL_A].size = PRODUCT_CFG_DEFAULT_KERNEL_A_SIZE; in hi_flash_partition_init()
74 table->table[HI_FLASH_PARTITON_KERNEL_B].size = PRODUCT_CFG_DEFAULT_KERNEL_B_SIZE; in hi_flash_partition_init()
76 table->table[HI_FLASH_PARTITON_HILINK].size = PRODUCT_CFG_DEFAULT_HILINK_SIZE; in hi_flash_partition_init()
78 table->table[HI_FLASH_PARTITON_FILE_SYSTEM].size = PRODUCT_CFG_DEFAULT_FILE_SYSTEM_SIZE; in hi_flash_partition_init()
80 table->table[HI_FLASH_PARTITON_USR_RESERVE].size = PRODUCT_CFG_DEFAULT_USER_RESERVE_SIZE; in hi_flash_partition_init()
82 table->table[HI_FLASH_PARTITON_HILINK_PKI].size in hi_flash_partition_init()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerservicec_fuzzer/
H A Dabilitymanagerservicec_fuzzer.cpp66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
72 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
75 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
104 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
111 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
112 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
116 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
122 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formdatamgrtwo_fuzzer/
H A Dformdatamgrtwo_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
71 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
83 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
90 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
94 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
95 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
99 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
104 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formsyseventreceiver_fuzzer/
H A Dformsyseventreceiver_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
50 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
93 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
100 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
104 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
105 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
109 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
114 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formdatamgrone_fuzzer/
H A Dformdatamgrone_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
54 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
76 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
83 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
87 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
88 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
92 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
97 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formhostrecord_fuzzer/
H A Dformhostrecord_fuzzer.cpp35 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
77 std::string hostBundleName(data, size); in DoSomethingInterestingWithMyAPI()
84 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
91 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
95 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
96 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
100 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
105 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formmgradapter_fuzzer/
H A Dformmgradapter_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
56 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
75 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
82 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
86 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
87 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
91 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
96 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formrenderstub_fuzzer/
H A Dformrenderstub_fuzzer.cpp72 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
77 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
94 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
101 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
105 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
106 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
110 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
115 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formproviderstub_fuzzer/
H A Dformproviderstub_fuzzer.cpp95 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
100 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
111 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
118 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
122 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
123 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
127 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
132 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerservicefifth_fuzzer/
H A Dabilitymanagerservicefifth_fuzzer.cpp67 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
71 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
74 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
106 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
113 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
114 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
118 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
124 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerservicea_fuzzer/
H A Dabilitymanagerservicea_fuzzer.cpp66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
69 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
72 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
93 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
100 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
101 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
105 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
111 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrabilitymanagerstub_fuzzer/
H A Dabilitymgrabilitymanagerstub_fuzzer.cpp66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
71 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
81 parcels.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
90 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
98 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
99 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
103 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
109 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilityinterfacesappmgrnativechildnotifyproxy_fuzzer/
H A Dabilityinterfacesappmgrnativechildnotifyproxy_fuzzer.cpp68 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
78 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
82 parcels.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
96 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
104 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
105 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
109 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
115 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitychildprocessrecord_fuzzer/
H A Dabilitychildprocessrecord_fuzzer.cpp43 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
49 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
78 std::string entryParams(data, size); in DoSomethingInterestingWithMyAPI()
86 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
94 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
95 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
99 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
105 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerserviceg_fuzzer/
H A Dabilitymanagerserviceg_fuzzer.cpp66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
69 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
72 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
98 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
105 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
106 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
110 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
116 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresrdb_fuzzer/
H A Dbundleresrdb_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
36 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
60 std::string systemState(data, size); in DoSomethingInterestingWithMyAPI()
77 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
84 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
88 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
89 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
93 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
98 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresparser_fuzzer/
H A Dbundleresparser_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
35 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
54 std::string label(data, size); in DoSomethingInterestingWithMyAPI()
85 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
92 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
96 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
97 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
101 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
106 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresprocess_fuzzer/
H A Dbundleresprocess_fuzzer.cpp31 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
43 std::string targetBundleName(data, size); in DoSomethingInterestingWithMyAPI()
75 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
82 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
86 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
87 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
91 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
96 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client_screen_mode_demo.cpp38 decltype(supportedModes_.size()) size = supportedModes_.size(); in TestRun()
39 if (size == 0) { in TestRun()
46 for (decltype(supportedModes_.size()) i = 0; i < size; i++) { in TestRun()
94 decltype(supportedModes_.size()) size = supportedModes_.size(); in ChangeScreenActiveMode()
95 if (newScreenModeId >= size) { in ChangeScreenActiveMode()
[all...]
/foundation/multimodalinput/input/util/network/include/
H A Dstream_buffer.h54 bool Read(char *buf, size_t size);
55 virtual bool Write(const char *buf, size_t size);
105 MMI_HILOGE("[%{public}s] size:%{public}zu count:%{public}d,errCode:%{public}d", in Read()
116 MMI_HILOGE("[%{public}s] size:%{public}zu,count:%{public}d,errCode:%{public}d", in Write()
126 int32_t size = 0; in Read() local
127 if (!Read(size)) { in Read()
128 MMI_HILOGE("Read vector size error"); in Read()
131 if (size < 0 || size > MAX_VECTOR_SIZE) { in Read()
132 MMI_HILOGE("Read vector size in Read()
153 int32_t size = static_cast<int32_t>(data.size()); Write() local
[all...]

Completed in 14 milliseconds

1...<<101102103104105106107108109110>>...2331