Home
last modified time | relevance | path

Searched refs:size (Results 876 - 900 of 31284) sorted by relevance

1...<<31323334353637383940>>...1252

/foundation/multimedia/media_foundation/tests/unittest/format/
H A Davformat_unit_channel_layout_test.cpp173 int32_t size = nativeChanneLayouts.size(); in HWTEST_F() local
174 int32_t innerSize = innerChanneLayouts.size(); in HWTEST_F()
175 EXPECT_EQ(size, innerSize); in HWTEST_F()
176 for (int32_t i = 0; i < size; ++i) { in HWTEST_F()
189 int32_t size = nativeChanneLayouts.size(); in HWTEST_F() local
191 for (int32_t i = 0; i < size; ++i) { in HWTEST_F()
208 int32_t size = nativeChanneLayouts.size(); in HWTEST_F() local
234 int32_t size = nativeChanneLayouts.size(); HWTEST_F() local
273 int32_t size = nativeChanneLayouts.size(); HWTEST_F() local
299 int32_t size = nativeChanneLayouts.size(); HWTEST_F() local
330 int32_t size = nativeChanneLayouts.size(); HWTEST_F() local
352 int32_t size = nativeChanneLayouts.size(); HWTEST_F() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imagesource_fuzzer/src/
H A Dimage_source_fuzz.cpp76 void CreateImageSourceByDataFuzz(const uint8_t* data, size_t size) in CreateImageSourceByDataFuzz() argument
78 uint8_t dest[size + 1]; in CreateImageSourceByDataFuzz()
79 int ret = memcpy_s(dest, sizeof(dest), data, size); in CreateImageSourceByDataFuzz()
93 void CreateImageSourceByFDEXFuzz(const uint8_t* data, size_t size) in CreateImageSourceByFDEXFuzz() argument
101 if (write(fd, data, size) != static_cast<ssize_t>(size)) { in CreateImageSourceByFDEXFuzz()
111 void CreateImageSourceByIstreamFuzz(const uint8_t* data, size_t size) in CreateImageSourceByIstreamFuzz() argument
115 if (write(fd, data, size) != (ssize_t)size) { in CreateImageSourceByIstreamFuzz()
130 void CreateImageSourceByPathNameFuzz(const uint8_t* data, size_t size) in CreateImageSourceByPathNameFuzz() argument
148 CreateIncrementalPixelMapFuzz(const uint8_t* data, size_t size) CreateIncrementalPixelMapFuzz() argument
167 FuzzString(const uint8_t *data, size_t size) FuzzString() argument
172 CreateImageSourceByPathname(const uint8_t* data, size_t size) CreateImageSourceByPathname() argument
182 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dzero_copy_stream_impl_lite.cc51 // Default block size for Copying{In,Out}putStreamAdaptor.
58 ArrayInputStream::ArrayInputStream(const void* data, int size, int block_size) in ArrayInputStream() argument
60 size_(size), in ArrayInputStream()
61 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream()
65 bool ArrayInputStream::Next(const void** data, int* size) { in Next() argument
69 *size = last_returned_size_; in Next()
105 ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size) in ArrayOutputStream() argument
107 size_(size), in ArrayOutputStream()
108 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream()
112 bool ArrayOutputStream::Next(void** data, int* size) { in Next() argument
141 Next(void** data, int* size) Next() argument
217 Next(const void** data, int* size) Next() argument
321 Next(void** data, int* size) Next() argument
392 Next(const void** data, int* size) Next() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmeasure_utils.cpp23 SizeF ConvertToSize(const CalcSize& size, const ScaleProperty& scaleProperty, const SizeF& percentReference) in ConvertToSize() argument
25 auto width = ConvertToPx(size.Width(), scaleProperty, percentReference.Width()); in ConvertToSize()
26 auto height = ConvertToPx(size.Height(), scaleProperty, percentReference.Height()); in ConvertToSize()
31 const CalcSize& size, const ScaleProperty& scaleProperty, const SizeF& percentReference) in ConvertToOptionalSize()
33 auto width = ConvertToPx(size.Width(), scaleProperty, percentReference.Width()); in ConvertToOptionalSize()
34 auto height = ConvertToPx(size.Height(), scaleProperty, percentReference.Height()); in ConvertToOptionalSize()
86 SizeF ConstrainSize(const SizeF& size, const SizeF& minSize, const SizeF& maxSize) in ConstrainSize() argument
88 float height = std::max(minSize.Height(), size.Height()); in ConstrainSize()
92 float width = std::max(minSize.Width(), size.Width()); in ConstrainSize()
215 void AddPaddingToSize(const PaddingPropertyF& padding, SizeF& size) in AddPaddingToSize() argument
30 ConvertToOptionalSize( const CalcSize& size, const ScaleProperty& scaleProperty, const SizeF& percentReference) ConvertToOptionalSize() argument
220 MinusPaddingToSize(const PaddingPropertyF& padding, SizeF& size) MinusPaddingToSize() argument
225 MinusPaddingToNonNegativeSize(const PaddingPropertyF& padding, SizeF& size) MinusPaddingToNonNegativeSize() argument
230 AddPaddingToSize(const PaddingPropertyF& padding, OptionalSizeF& size) AddPaddingToSize() argument
235 MinusPaddingToSize(const PaddingPropertyF& padding, OptionalSizeF& size) MinusPaddingToSize() argument
245 GetMainAxisSize(const SizeF& size, Axis axis) GetMainAxisSize() argument
250 GetCrossAxisSize(const SizeF& size, Axis axis) GetCrossAxisSize() argument
255 SetCrossAxisSize(float value, Axis axis, SizeF& size) SetCrossAxisSize() argument
264 GetMainAxisSize(const OptionalSizeF& size, Axis axis) GetMainAxisSize() argument
269 GetCrossAxisSize(const OptionalSizeF& size, Axis axis) GetCrossAxisSize() argument
274 SetCrossAxisSize(float value, Axis axis, OptionalSizeF& size) SetCrossAxisSize() argument
283 SetMainAxisSize(float value, Axis axis, OptionalSizeF& size) SetMainAxisSize() argument
486 CreateChildrenConstraint(SizeF& size, const PaddingPropertyF& padding) CreateChildrenConstraint() argument
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/
H A Dexif_maker_note.cpp168 auto keepSize = exifEntry->size; in GetValue()
174 exifEntry->size = keepSize; in GetValue()
193 exifEntry->size = item.data.size(); in GetValue()
228 uint32_t ExifMakerNote::Parser(ExifData *exif, const unsigned char *data, uint32_t size) in Parser() argument
239 if ((data == nullptr) || (size < sizeof(EXIF_HEADER))) { in Parser()
246 if (!FindExifLocation(data, size, newData, newSize)) { in Parser()
252 size = newSize + BACK_TO_EXIF_BEFORE; in Parser()
254 ByteOrderedBuffer boBuffer(data, size); in Parser()
276 bool ExifMakerNote::FindExifLocation(const unsigned char *data, uint32_t size, in FindExifLocation() argument
321 FindJpegAPP1(const unsigned char *data, uint32_t size, const unsigned char *&newData, uint32_t &newSize) FindJpegAPP1() argument
402 ParserMakerNote(const unsigned char *data, uint32_t size) ParserMakerNote() argument
428 IsHwMakerNote(const unsigned char *data, uint32_t size) IsHwMakerNote() argument
670 auto size = data.size(); Dump() local
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/client/src/
H A Daudio_policy_client_stub.cpp163 int32_t size = data.ReadInt32(); in HandleAudioFocusInfoChange() local
164 CHECK_AND_RETURN_LOG(size < FOCUS_INFO_VALID_SIZE, "get invalid size : %{public}d", size); in HandleAudioFocusInfoChange()
166 for (int32_t i = 0; i < size; i++) { in HandleAudioFocusInfoChange()
193 int32_t size = data.ReadInt32();
194 CHECK_AND_RETURN_LOG(size < DEVICE_CHANGE_VALID_SIZE, "get invalid size : %{public}d", size);
196 for (int32_t i = 0; i < size;
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmjpegenc_common.c66 int i, j, size; in jpeg_table_header() local
106 size = 2; in jpeg_table_header()
111 size += put_huffman_table(p, 0, 0, m->bits_dc_luminance, in jpeg_table_header()
113 size += put_huffman_table(p, 0, 1, m->bits_dc_chrominance, in jpeg_table_header()
116 size += put_huffman_table(p, 1, 0, m->bits_ac_luminance, in jpeg_table_header()
118 size += put_huffman_table(p, 1, 1, m->bits_ac_chrominance, in jpeg_table_header()
121 size += put_huffman_table(p, 0, 0, ff_mjpeg_bits_dc_luminance, in jpeg_table_header()
123 size += put_huffman_table(p, 0, 1, ff_mjpeg_bits_dc_chrominance, in jpeg_table_header()
126 size += put_huffman_table(p, 1, 0, ff_mjpeg_bits_ac_luminance, in jpeg_table_header()
128 size in jpeg_table_header()
169 int size; jpeg_put_comments() local
388 int size; ff_mjpeg_escape_FF() local
[all...]
/third_party/lzma/CPP/7zip/UI/Common/
H A DPropIDUtils.cpp277 static AString Data_To_Hex(const Byte *data, size_t size)
280 for (size_t i = 0; i < size; i++)
465 static void ParseOwner(AString &s, const Byte *p, UInt32 size, UInt32 pos) in ParseOwner() argument
467 if (pos > size) in ParseOwner()
473 ParseSid(s, p + pos, size - pos, sidSize); in ParseOwner()
476 static void ParseAcl(AString &s, const Byte *p, UInt32 size, const char *strName, UInt32 flags, UInt32 offset) in ParseAcl() argument
484 if (pos >= size) in ParseAcl()
487 size -= pos; in ParseAcl()
488 if (size < 8) in ParseAcl()
499 if (aclSize > size) in ParseAcl()
550 ConvertNtSecureToString(const Byte *data, UInt32 size, AString &s) ConvertNtSecureToString() argument
576 CheckSid(const Byte *data, UInt32 size, UInt32 pos) CheckSid() argument
590 CheckAcl(const Byte *p, UInt32 size, UInt32 flags, UInt32 offset) CheckAcl() argument
606 CheckNtSecure(const Byte *data, UInt32 size) CheckNtSecure() argument
656 ConvertNtReparseToString(const Byte *data, UInt32 size, UString &s) ConvertNtReparseToString() argument
[all...]
/third_party/lz4/ossfuzz/
H A Dround_trip_stream_fuzzer.c20 size_t size; member
26 size_t size; member
41 cursor_t cursor_create(size_t size) in cursor_create() argument
44 cursor.buf = (char*)malloc(size); in cursor_create()
45 cursor.size = size; in cursor_create()
58 state_t state_create(char const* data, size_t size, uint32_t seed) in state_create() argument
65 state.data.size = size; in state_create()
69 state.compressed = cursor_create(1024 + 2 * LZ4_compressBound(size)); in state_create()
116 size_t const size = state->data.size; state_checkRoundTrip() local
285 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/toybox/lib/
H A Dportability.c286 ssize_t xattr_get(const char *path, const char *name, void *value, size_t size) in xattr_get() argument
288 return getxattr(path, name, value, size, 0, 0); in xattr_get()
291 ssize_t xattr_lget(const char *path, const char *name, void *value, size_t size) in xattr_lget() argument
293 return getxattr(path, name, value, size, 0, XATTR_NOFOLLOW); in xattr_lget()
296 ssize_t xattr_fget(int fd, const char *name, void *value, size_t size) in xattr_fget() argument
298 return fgetxattr(fd, name, value, size, 0, 0); in xattr_fget()
301 ssize_t xattr_list(const char *path, char *list, size_t size) in xattr_list() argument
303 return listxattr(path, list, size, 0); in xattr_list()
306 ssize_t xattr_llist(const char *path, char *list, size_t size) in xattr_llist() argument
308 return listxattr(path, list, size, XATTR_NOFOLLO in xattr_llist()
311 xattr_flist(int fd, char *list, size_t size) xattr_flist() argument
316 xattr_set(const char* path, const char* name, const void* value, size_t size, int flags) xattr_set() argument
322 xattr_lset(const char* path, const char* name, const void* value, size_t size, int flags) xattr_lset() argument
328 xattr_fset(int fd, const char* name, const void* value, size_t size, int flags) xattr_fset() argument
336 xattr_get(const char *path, const char *name, void *value, size_t size) xattr_get() argument
341 xattr_lget(const char *path, const char *name, void *value, size_t size) xattr_lget() argument
346 xattr_fget(int fd, const char *name, void *value, size_t size) xattr_fget() argument
351 xattr_list(const char *path, char *list, size_t size) xattr_list() argument
356 xattr_llist(const char *path, char *list, size_t size) xattr_llist() argument
361 xattr_flist(int fd, char *list, size_t size) xattr_flist() argument
366 xattr_set(const char* path, const char* name, const void* value, size_t size, int flags) xattr_set() argument
372 xattr_lset(const char* path, const char* name, const void* value, size_t size, int flags) xattr_lset() argument
378 xattr_fset(int fd, const char* name, const void* value, size_t size, int flags) xattr_fset() argument
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerserviced_fuzzer/
H A Dabilitymanagerserviced_fuzzer.cpp62 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
64 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
67 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
87 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::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { 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/form_fwk/test/fuzztest/formdbcache_fuzzer/
H A Dformdbcache_fuzzer.cpp38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
50 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
60 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
67 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
71 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
72 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
76 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
81 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formhostcaller_fuzzer/
H A Dformhostcaller_fuzzer.cpp40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
49 std::string bundle(data, size); in DoSomethingInterestingWithMyAPI()
61 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
68 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
72 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
73 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
77 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
82 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formtimermgrannex_fuzzer/
H A Dformtimermgrannex_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
57 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
74 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
78 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
79 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
83 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
88 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formsupplystub_fuzzer/
H A Dformsupplystub_fuzzer.cpp72 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
77 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
88 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
95 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
99 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
100 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
104 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
109 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/providerconnectstub_fuzzer/
H A Dproviderconnectstub_fuzzer.cpp49 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 == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
81 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
86 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formcachemgr_fuzzer/
H A Dformcachemgr_fuzzer.cpp42 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
46 std::string datas(data, size); in DoSomethingInterestingWithMyAPI()
67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
74 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
78 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
79 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
83 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
88 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formhoststub_fuzzer/
H A Dformhoststub_fuzzer.cpp57 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
62 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
73 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
80 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
84 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
85 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
89 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
94 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_base/test/fuzztest/arraywrapperfirst_fuzzer/
H A Darraywrapperfirst_fuzzer.cpp37 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
40 if (size >= 8) { in DoSomethingInterestingWithMyAPI()
41 longSize = (long)(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 = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
76 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/getwantsender_fuzzer/
H A Dgetwantsender_fuzzer.cpp51 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
64 if (wantSenderInfoParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
74 if (senderInfoParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
95 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
103 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
104 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
108 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
114 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/toolstestobserver_fuzzer/
H A Dtoolstestobserver_fuzzer.cpp48 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument
51 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
52 std::string cmd(data, size); in DoSomethingInterestingWithMyAPI()
67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
75 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
76 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
80 char *ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
86 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/renderstateobserverproxy_fuzzer/
H A Drenderstateobserverproxy_fuzzer.cpp54 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
58 std::string bundle(data, size); in DoSomethingInterestingWithMyAPI()
63 dataParcel.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 in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerservicefourth_fuzzer/
H A Dabilitymanagerservicefourth_fuzzer.cpp52 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
55 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
58 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
83 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
90 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
91 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
95 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
101 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/arkui/napi/test/fuzztest/runscriptbuffer_fuzzer/
H A Drunscriptbuffer_fuzzer.cpp42 void RunScriptBuffer(const std::string& path, uint8_t* buffer, size_t size, bool isBundle) in RunScriptBuffer() argument
44 arkNativeEngine_->RunScriptBuffer(path, buffer, size, isBundle); in RunScriptBuffer()
66 void RunScriptBufferFuzzTest(const uint8_t* data, size_t size) in RunScriptBufferFuzzTest() argument
69 if (size <= 0) { in RunScriptBufferFuzzTest()
73 if (size > MAXBYTELEN) { in RunScriptBufferFuzzTest()
74 size = MAXBYTELEN; in RunScriptBufferFuzzTest()
76 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in RunScriptBufferFuzzTest()
81 std::vector<uint8_t> vec(size, *data); in RunScriptBufferFuzzTest()
85 g_nativeEngine.RunScriptBuffer(path, buffer, size, true); in RunScriptBufferFuzzTest()
86 g_nativeEngine.RunScriptBuffer(path, buffer, size, fals in RunScriptBufferFuzzTest()
91 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundlereshostimpl_fuzzer/
H A Dbundlereshostimpl_fuzzer.cpp31 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
34 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
44 std::string key(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 in LLVMFuzzerTestOneInput()
[all...]

Completed in 13 milliseconds

1...<<31323334353637383940>>...1252