Home
last modified time | relevance | path

Searched refs:size (Results 576 - 600 of 31284) sorted by relevance

1...<<21222324252627282930>>...1252

/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bmsbundleresourcehelper_fuzzer/
H A Dbmsbundleresourcehelper_fuzzer.cpp28 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
40 std::string moduleName(data, size); in DoSomethingInterestingWithMyAPI()
51 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
58 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
62 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
63 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
67 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
72 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
H A Dspan.cc12 auto min_size = std::min(x.size(), y.size());
14 return (r < 0) || (r == 0 && x.size() < y.size());
18 auto len = x.size();
19 if (len != y.size())
26 auto min_size = std::min(x.size(), y.size());
28 return (r < 0) || (r == 0 && x.size() < y.size());
[all...]
/third_party/nghttp2/lib/
H A Dnghttp2_mem.c27 static void *default_malloc(size_t size, void *mem_user_data) { in default_malloc() argument
30 return malloc(size); in default_malloc()
39 static void *default_calloc(size_t nmemb, size_t size, void *mem_user_data) { in default_calloc() argument
42 return calloc(nmemb, size); in default_calloc()
45 static void *default_realloc(void *ptr, size_t size, void *mem_user_data) { in default_realloc() argument
48 return realloc(ptr, size); in default_realloc()
56 void *nghttp2_mem_malloc(nghttp2_mem *mem, size_t size) { in nghttp2_mem_malloc() argument
57 return mem->malloc(size, mem->mem_user_data); in nghttp2_mem_malloc()
68 void *nghttp2_mem_calloc(nghttp2_mem *mem, size_t nmemb, size_t size) { in nghttp2_mem_calloc() argument
69 return mem->calloc(nmemb, size, me in nghttp2_mem_calloc()
72 nghttp2_mem_realloc(nghttp2_mem *mem, void *ptr, size_t size) nghttp2_mem_realloc() argument
[all...]
/third_party/node/deps/nghttp2/lib/
H A Dnghttp2_mem.c27 static void *default_malloc(size_t size, void *mem_user_data) { in default_malloc() argument
30 return malloc(size); in default_malloc()
39 static void *default_calloc(size_t nmemb, size_t size, void *mem_user_data) { in default_calloc() argument
42 return calloc(nmemb, size); in default_calloc()
45 static void *default_realloc(void *ptr, size_t size, void *mem_user_data) { in default_realloc() argument
48 return realloc(ptr, size); in default_realloc()
56 void *nghttp2_mem_malloc(nghttp2_mem *mem, size_t size) { in nghttp2_mem_malloc() argument
57 return mem->malloc(size, mem->mem_user_data); in nghttp2_mem_malloc()
68 void *nghttp2_mem_calloc(nghttp2_mem *mem, size_t nmemb, size_t size) { in nghttp2_mem_calloc() argument
69 return mem->calloc(nmemb, size, me in nghttp2_mem_calloc()
72 nghttp2_mem_realloc(nghttp2_mem *mem, void *ptr, size_t size) nghttp2_mem_realloc() argument
[all...]
/third_party/node/deps/v8/src/base/platform/
H A Dwrappers.h27 inline void* Malloc(size_t size) { return malloc(size); } in Malloc() argument
29 inline void* Realloc(void* memory, size_t size) { in Realloc() argument
30 return realloc(memory, size); in Realloc()
35 inline void* Calloc(size_t count, size_t size) { return calloc(count, size); } in Calloc() argument
47 inline void* Malloc(size_t size) { return SbMemoryAllocate(size); }
49 inline void* Realloc(void* memory, size_t size) {
50 return SbMemoryReallocate(memory, size);
[all...]
/third_party/node/deps/v8/src/base/sanitizer/
H A Dlsan-page-allocator.cc24 void* LsanPageAllocator::AllocatePages(void* hint, size_t size, in AllocatePages() argument
27 void* result = page_allocator_->AllocatePages(hint, size, alignment, access); in AllocatePages()
30 __lsan_register_root_region(result, size); in AllocatePages()
37 LsanPageAllocator::AllocateSharedPages(size_t size, in AllocateSharedPages() argument
39 auto result = page_allocator_->AllocateSharedPages(size, original_address); in AllocateSharedPages()
42 __lsan_register_root_region(result->GetMemory(), size); in AllocateSharedPages()
52 bool LsanPageAllocator::FreePages(void* address, size_t size) { in FreePages() argument
53 CHECK(page_allocator_->FreePages(address, size)); in FreePages()
55 __lsan_unregister_root_region(address, size); in FreePages()
60 bool LsanPageAllocator::ReleasePages(void* address, size_t size, in ReleasePages() argument
[all...]
/third_party/skia/src/core/
H A DSkBuffer.cpp14 const void* SkRBuffer::skip(size_t size) { in skip() argument
15 if (fValid && size <= this->available()) { in skip()
17 fPos += size; in skip()
24 bool SkRBuffer::read(void* buffer, size_t size) { in read() argument
25 if (const void* src = this->skip(size)) { in read()
26 sk_careful_memcpy(buffer, src, size); in read()
46 void* SkWBuffer::skip(size_t size) { in skip() argument
48 writeNoSizeCheck(nullptr, size); in skip()
52 void SkWBuffer::writeNoSizeCheck(const void* buffer, size_t size) { in writeNoSizeCheck() argument
53 SkASSERT(fData == nullptr || fStop == nullptr || fPos + size < in writeNoSizeCheck()
[all...]
/third_party/skia/src/ports/
H A DSkMemory_malloc.cpp23 static inline void sk_out_of_memory(size_t size) { in sk_out_of_memory() argument
25 size); in sk_out_of_memory()
33 static inline void* throw_on_failure(size_t size, void* p) { in throw_on_failure() argument
34 if (size > 0 && p == nullptr) { in throw_on_failure()
36 sk_out_of_memory(size); in throw_on_failure()
64 void* sk_realloc_throw(void* addr, size_t size) { in sk_realloc_throw() argument
65 return throw_on_failure(size, realloc(addr, size)); in sk_realloc_throw()
74 void* sk_malloc_flags(size_t size, unsigned flags) { in sk_malloc_flags() argument
77 p = calloc(size, in sk_malloc_flags()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscolorpicker_fuzzer/
H A Drscolorpicker_fuzzer.cpp64 bool DoCreateColorPicker(const uint8_t* data, size_t size) in DoCreateColorPicker() argument
72 g_size = size; in DoCreateColorPicker()
77 FuzzedDataProvider fdp(data, size); in DoCreateColorPicker()
88 bool DoGetLargestProportionColor(const uint8_t* data, size_t size) in DoGetLargestProportionColor() argument
96 g_size = size; in DoGetLargestProportionColor()
105 bool DoGetHighestSaturationColor(const uint8_t* data, size_t size) in DoGetHighestSaturationColor() argument
113 g_size = size; in DoGetHighestSaturationColor()
122 bool DoGetAverageColor(const uint8_t* data, size_t size) in DoGetAverageColor() argument
130 g_size = size; in DoGetAverageColor()
144 bool DoIsBlackOrWhiteOrGrayColor(const uint8_t* data, size_t size) in DoIsBlackOrWhiteOrGrayColor() argument
161 DoIsEquals(const uint8_t* data, size_t size) DoIsEquals() argument
180 DoRGB2HSV(const uint8_t* data, size_t size) DoRGB2HSV() argument
198 DoAdjustHSVToDefinedIterval(const uint8_t* data, size_t size) DoAdjustHSVToDefinedIterval() argument
230 DoHSVtoRGB(const uint8_t* data, size_t size) DoHSVtoRGB() argument
266 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibraryappuripermissionoperations_fuzzer/
H A Dmedialibraryappuripermissionoperations_fuzzer.cpp49 static inline int32_t FuzzInt32(const uint8_t *data, size_t size) in FuzzInt32() argument
54 static inline string FuzzString(const uint8_t *data, size_t size) in FuzzString() argument
56 return {reinterpret_cast<const char*>(data), size}; in FuzzString()
59 static int FuzzPermissionType(const uint8_t *data, size_t size) in FuzzPermissionType() argument
65 uint8_t length = static_cast<uint8_t>(vecPermissionType.size()); in FuzzPermissionType()
72 static int FuzzUriType(const uint8_t *data, size_t size) in FuzzUriType() argument
78 uint8_t length = static_cast<uint8_t>(vecUriType.size()); in FuzzUriType()
85 static inline void FuzzMimeTypeAndDisplayNameExtension(const uint8_t *data, size_t size, string &mimeType, in FuzzMimeTypeAndDisplayNameExtension() argument
88 uint8_t length = static_cast<uint8_t>(Media::DISPLAY_NAME_EXTENSION_FUZZER_LISTS.size()); in FuzzMimeTypeAndDisplayNameExtension()
91 displayName = FuzzString(data, size) in FuzzMimeTypeAndDisplayNameExtension()
95 InsertPhotoAsset(const uint8_t *data, size_t size, int32_t photoId) InsertPhotoAsset() argument
140 BatchInsertFuzzer(const uint8_t* data, size_t size) BatchInsertFuzzer() argument
161 AppUriPermissionOperationsFuzzer(const uint8_t* data, size_t size) AppUriPermissionOperationsFuzzer() argument
212 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/
H A Dsinkstubdaudiosinkstub_fuzzer.cpp32 void SinkStubDaudioSinkStubFuzzTest(const uint8_t* data, size_t size) in SinkStubDaudioSinkStubFuzzTest() argument
34 if ((data == nullptr) || (size < (sizeof(int32_t)))) { in SinkStubDaudioSinkStubFuzzTest()
48 std::string resultData(reinterpret_cast<const char*>(data), size); in SinkStubDaudioSinkStubFuzzTest() local
74 void SinkStubSubscribeLocalHardwareInnerFuzzTest(const uint8_t* data, size_t size) in SinkStubSubscribeLocalHardwareInnerFuzzTest() argument
76 if ((data == nullptr) || (size < (sizeof(int32_t)))) { in SinkStubSubscribeLocalHardwareInnerFuzzTest()
90 std::string resultData(reinterpret_cast<const char*>(data), size); in SinkStubSubscribeLocalHardwareInnerFuzzTest() local
99 void SinkStubUnsubscribeLocalHardwareInnerFuzzTest(const uint8_t* data, size_t size) in SinkStubUnsubscribeLocalHardwareInnerFuzzTest() argument
101 if ((data == nullptr) || (size < (sizeof(int32_t)))) { in SinkStubUnsubscribeLocalHardwareInnerFuzzTest()
115 std::string resultData(reinterpret_cast<const char*>(data), size); in SinkStubUnsubscribeLocalHardwareInnerFuzzTest() local
124 void SinkStubDAudioNotifyInnerFuzzTest(const uint8_t* data, size_t size) in SinkStubDAudioNotifyInnerFuzzTest() argument
140 std::string resultData(reinterpret_cast<const char*>(data), size); SinkStubDAudioNotifyInnerFuzzTest() local
149 SinkStubPauseDistributedHardwareInnerFuzzTest(const uint8_t* data, size_t size) SinkStubPauseDistributedHardwareInnerFuzzTest() argument
165 std::string resultData(reinterpret_cast<const char*>(data), size); SinkStubPauseDistributedHardwareInnerFuzzTest() local
174 SinkStubResumeDistributedHardwareInnerFuzzTest(const uint8_t* data, size_t size) SinkStubResumeDistributedHardwareInnerFuzzTest() argument
190 std::string resultData(reinterpret_cast<const char*>(data), size); SinkStubResumeDistributedHardwareInnerFuzzTest() local
199 SinkStubStopDistributedHardwareInnerFuzzTest(const uint8_t* data, size_t size) SinkStubStopDistributedHardwareInnerFuzzTest() argument
215 std::string resultData(reinterpret_cast<const char*>(data), size); SinkStubStopDistributedHardwareInnerFuzzTest() local
227 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/elfio/elfio/
H A Delfio_section.hpp49 ELFIO_GET_SET_ACCESS_DECL( Elf_Xword, size );
54 virtual void set_data( const char* raw_data, Elf_Word size ) noexcept = 0;
57 Elf_Word size ) noexcept = 0;
91 ELFIO_GET_SET_ACCESS( Elf_Xword, size, header.sh_size );
134 void set_data( const char* raw_data, Elf_Word size ) noexcept override
137 data = std::unique_ptr<char[]>( new ( std::nothrow ) char[size] );
139 data_size = size;
140 std::copy( raw_data, raw_data + size, data.get() );
156 return set_data( str_data.c_str(), (Elf_Word)str_data.size() );
160 void append_data( const char* raw_data, Elf_Word size ) noexcep
244 Elf_Xword size = get_size(); global() variable
263 Elf_Xword size = get_size(); global() variable
[all...]
/third_party/mesa3d/src/nouveau/codegen/
H A Dnv50_ir_util.cpp81 unsigned int newSize = this->size + that.size; in moveTo()
85 memcpy(&that.array[that.size], &array[0], this->size * sizeof(Item)); in moveTo()
87 that.size = newSize; in moveTo()
88 this->size = 0; in moveTo()
228 assert(size >= set.size); in andNot()
229 for (unsigned int i = 0; i < (set.size + 31) / 32; ++i) in andNot()
236 assert(size > in operator |=()
[all...]
/foundation/ai/intelligent_voice_framework/utils/
H A Darray_buffer_util.cpp23 template<class T> bool ArrayBufferUtil<T>::Init(uint32_t size, const T *data) in Init() argument
25 if (size == 0) { in Init()
26 INTELL_VOICE_LOG_ERROR("size is zero"); in Init()
30 data_ = std::make_unique<T[]>(size); in Init()
37 (void)memset_s(data_.get(), size * sizeof(T), 0, size * sizeof(T)); in Init()
39 (void)memcpy_s(data_.get(), size * sizeof(T), data, size * sizeof(T)); in Init()
42 size_ = size; in Init()
46 template<class T> std::unique_ptr<ArrayBufferUtil<T>> CreateArrayBuffer(uint32_t size, cons argument
[all...]
/foundation/ability/form_fwk/test/fuzztest/formerrors_fuzzer/
H A Dformerrors_fuzzer.cpp38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
55 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
59 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
60 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
64 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 in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/providerconnectproxy_fuzzer/
H A Dproviderconnectproxy_fuzzer.cpp38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
55 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
59 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
60 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
64 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 in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formecologicalruleparam_fuzzer/
H A Dformecologicalruleparam_fuzzer.cpp34 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
47 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
54 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
58 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
59 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
63 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formsupplyproxy_fuzzer/
H A Dformsupplyproxy_fuzzer.cpp38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
48 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
55 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
59 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
60 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
64 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 in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formjsinfo_fuzzer/
H A Dformjsinfo_fuzzer.cpp34 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
47 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
54 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
58 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
59 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
63 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/stopsyncremotemissions_fuzzer/
H A Dstopsyncremotemissions_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
39 std::string devId(data, size); in DoSomethingInterestingWithMyAPI()
47 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
55 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
56 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
60 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
66 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
67 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/killprocessesbybundlename_fuzzer/
H A Dkillprocessesbybundlename_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
39 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
57 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
58 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
62 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
68 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
69 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerbeforeinstall_fuzzer/
H A Dappservicefwkinstallerbeforeinstall_fuzzer.cpp30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
36 std::vector<std::string> hspPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI()
43 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
50 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
54 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
55 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
59 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
64 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
65 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerinstall_fuzzer/
H A Dappservicefwkinstallerinstall_fuzzer.cpp29 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
35 std::vector<std::string> hspPaths{ std::string(data, size) }; in DoSomethingInterestingWithMyAPI()
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, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallermkdirifnotexist_fuzzer/
H A Dappservicefwkinstallermkdirifnotexist_fuzzer.cpp31 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
35 appServicefwk.MkdirIfNotExist(std::string(data, size)); in DoSomethingInterestingWithMyAPI()
41 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
48 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
52 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
53 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
57 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
62 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
63 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplgetbundlemutex_fuzzer/
H A Dverifymanagerhostimplgetbundlemutex_fuzzer.cpp30 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
33 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
40 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
47 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
51 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
52 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
56 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
61 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
62 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]

Completed in 9 milliseconds

1...<<21222324252627282930>>...1252