Home
last modified time | relevance | path

Searched refs:size (Results 1176 - 1200 of 10779) sorted by relevance

1...<<41424344454647484950>>...432

/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsmarshallinghelper_fuzzer/
H A Drsmarshallinghelper_fuzzer.cpp65 bool DoUnmarshalling(const uint8_t* data, size_t size) in DoUnmarshalling() argument
73 g_size = size; in DoUnmarshalling()
142 bool DoMarshallingHelper001(const uint8_t* data, size_t size) in DoMarshallingHelper001() argument
150 g_size = size; in DoMarshallingHelper001()
175 bool DoMarshallingHelper002(const uint8_t* data, size_t size) in DoMarshallingHelper002() argument
183 g_size = size; in DoMarshallingHelper002()
204 bool DoMarshallingHelper003(const uint8_t* data, size_t size) in DoMarshallingHelper003() argument
212 g_size = size; in DoMarshallingHelper003()
235 bool DoMarshallingHelper004(const uint8_t* data, size_t size) in DoMarshallingHelper004() argument
243 g_size = size; in DoMarshallingHelper004()
260 DoMarshallingHelper005(const uint8_t* data, size_t size) DoMarshallingHelper005() argument
281 DoMarshallingHelper006(const uint8_t* data, size_t size) DoMarshallingHelper006() argument
312 DoMarshallingHelper007(const uint8_t* data, size_t size) DoMarshallingHelper007() argument
342 DoMarshallingHelper008(const uint8_t* data, size_t size) DoMarshallingHelper008() argument
373 DoMarshallingHelper009(const uint8_t* data, size_t size) DoMarshallingHelper009() argument
393 DoMarshallingHelper010(const uint8_t* data, size_t size) DoMarshallingHelper010() argument
421 DoMarshallingHelper011(const uint8_t* data, size_t size) DoMarshallingHelper011() argument
451 DoMarshallingHelper012(const uint8_t* data, size_t size) DoMarshallingHelper012() argument
509 DoMarshallingHelper013(const uint8_t* data, size_t size) DoMarshallingHelper013() argument
552 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dwebp_exif_metadata_accessor.cpp111 IMAGE_LOGE("Image stream does not find chunk size."); in ReadBlob()
114 const uint32_t size = chunkSize.ReadUInt32(0, littleEndian); in ReadBlob() local
116 if (size > imgSize - imageStream_->Tell()) { in ReadBlob()
123 imageStream_->Seek(size, SeekPos::CURRENT); in ReadBlob()
124 if (size % WEBP_BUF_SIZE) { in ReadBlob()
130 blob.Resize(size); in ReadBlob()
131 imageStream_->Read(blob.Data(), size); in ReadBlob()
159 IMAGE_LOGE("Image stream does not find vp8x size."); in CheckChunkVp8x()
162 const uint32_t size = GetULong(chunkSize, littleEndian); in CheckChunkVp8x() local
163 if (size > WEBP_MAX_CHUNKDATA_SIZ in CheckChunkVp8x()
192 uint32_t size = 0; Write() local
208 GetExifEncodeBlob(uint8_t **dataBlob, uint32_t &size) GetExifEncodeBlob() argument
229 uint32_t size = 0; WriteBlob() local
238 GetExifBlob(const DataBuf &blob, uint8_t **dataBlob, uint32_t &size) GetExifBlob() argument
251 UpdateData(uint8_t *dataBlob, uint32_t size) UpdateData() argument
277 UpdateExifMetadata(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size) UpdateExifMetadata() argument
338 InsertExifMetadata(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size) InsertExifMetadata() argument
371 const uint32_t size = chunkHead.ReadUInt32(WEBP_CHUNK_ID_SIZE, littleEndian); GetImageWidthAndHeight() local
456 WriteHeader(BufferMetadataStream &bufStream, uint32_t size, Vp8xAndExifInfo &exifFlag) WriteHeader() argument
524 const uint32_t size = chunkHead.ReadUInt32(WEBP_CHUNK_ID_SIZE, littleEndian); WirteChunkVp8x() local
[all...]
H A Dpng_exif_metadata_accessor.cpp106 IMAGE_LOGE("Failed to read chunk data. Expected size: %{public}zu", chunkData.Size()); in ProcessExifData()
135 IMAGE_LOGE("Failed to read chunk head. Expected size: %{public}zu", chunkHead.Size()); in ReadBlob()
140 IMAGE_LOGE("Chunk length is larger than the remaining image size"); in ReadBlob()
188 bool PngExifMetadataAccessor::GetExifEncodedBlob(uint8_t **dataBlob, uint32_t &size) in GetExifEncodedBlob() argument
196 TiffParser::Encode(dataBlob, size, exifData); in GetExifEncodedBlob()
202 DataBuf blobBuf(*dataBlob, size); in GetExifEncodedBlob()
208 return ((size > 0) && (size <= PNG_CHUNK_DATA_MAX)); in GetExifEncodedBlob()
211 bool PngExifMetadataAccessor::WriteData(BufferMetadataStream &bufStream, uint8_t *data, uint32_t size) in WriteData() argument
213 if (bufStream.Write(data, size) ! in WriteData()
220 WriteExifData(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size, DataBuf &chunkBuf, std::string chunkType) WriteExifData() argument
258 UpdateExifMetadata(BufferMetadataStream &bufStream, uint8_t *dataBlob, uint32_t size) UpdateExifMetadata() argument
306 UpdateData(uint8_t *dataBlob, uint32_t size) UpdateData() argument
330 uint32_t size = 0; Write() local
360 uint32_t size = 0; WriteBlob() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dshort_cuts_test_ng.cpp96 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
104 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
112 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
137 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
163 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
171 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
197 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
205 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
230 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F()
256 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/
H A Dimage_pixel_map_switch_test.cpp53 opts.size.width = 200; in HWTEST_F()
54 opts.size.height = 300; in HWTEST_F()
57 int32_t width = opts.size.width; in HWTEST_F()
81 opts.size.width = 0; in HWTEST_F()
82 opts.size.height = 300; in HWTEST_F()
85 int32_t width = opts.size.width; in HWTEST_F()
109 opts.size.width = 0; in HWTEST_F()
110 opts.size.height = 300; in HWTEST_F()
113 int32_t width = opts.size.width; in HWTEST_F()
134 opts.size in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_gauge_ffi.cpp29 VectorColorStops FFICJCreateVectorColorStop(int64_t size) in FFICJCreateVectorColorStop() argument
32 return new std::vector<ColorStop>(size); in FFICJCreateVectorColorStop()
49 VecLinearGradientHandle FFICJCreateVectorGaugeLinearGradient(int64_t size) in FFICJCreateVectorGaugeLinearGradient() argument
52 return new std::vector<VectorColorStops>(size); in FFICJCreateVectorGaugeLinearGradient()
122 if (vecColor.size() != vecWeight.size()) { in FfiOHOSAceFrameworkGaugeSetColors()
127 for (size_t i = 0; i < vecColor.size(); ++i) { in FfiOHOSAceFrameworkGaugeSetColors()
140 if (vecColor.size() != vecWeight.size()) { in FfiOHOSAceFrameworkGaugeSetColorsV2()
144 if (vecColor.size() < in FfiOHOSAceFrameworkGaugeSetColorsV2()
237 FfiOHOSAceFrameworkGaugeSetIndicator(const char* icon, double size) FfiOHOSAceFrameworkGaugeSetIndicator() argument
[all...]
/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/
H A Dabnormal_branch_test.cpp109 size_t size = 0; in HWTEST_F() local
111 AppDataFwk::SharedBlock temp(name, nullptr, size, readOnly); in HWTEST_F()
128 result = temp.SetRawData(nullptr, size); in HWTEST_F()
156 EXPECT_EQ(results.size(), uris.size()); in HWTEST_F()
170 EXPECT_EQ(results.size(), uris.size()); in HWTEST_F()
183 EXPECT_EQ(results.size(), uris.size()); in HWTEST_F()
185 EXPECT_EQ(results.size(), uri in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/deeplinkreserveconfig_fuzzer/
H A Ddeeplinkreserveconfig_fuzzer.cpp65 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
70 std::string linkString(data, size); in DoSomethingInterestingWithMyAPI()
71 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
74 std::string link(data, size); in DoSomethingInterestingWithMyAPI()
75 std::string strParam(data, size); in DoSomethingInterestingWithMyAPI()
110 bool DoSomethingInterestingWithMyAPIOne(const char* data, size_t size) in DoSomethingInterestingWithMyAPIOne() argument
113 std::string filePath(data, size); in DoSomethingInterestingWithMyAPIOne()
135 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
143 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
144 if (size > OHO in LLVMFuzzerTestOneInput()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/qrcode/
H A Drosen_render_qrcode.cpp43 RenderContext& context, const Offset& topLeft, int32_t size, const qrcodegen::QrCode& qrCode) in DrawQRCode()
55 SkRect clipRect = { topLeft.GetX(), topLeft.GetY(), topLeft.GetX() + size, topLeft.GetY() + size }; in DrawQRCode()
56 auto clipLayer = SkRRect::MakeRectXY(clipRect, size / 2.0, size / 2.0); in DrawQRCode()
60 SkBitmap skBitmap = ProcessQrcodeData(size, qrCode); in DrawQRCode()
63 int32_t smallSquareWidth = size / sqrt(2); in DrawQRCode()
68 topLeft.GetX() + (size - smallSquareWidth) / 2.0, in DrawQRCode()
69 topLeft.GetY() + (size - smallSquareWidth) / 2.0, SkSamplingOptions()); in DrawQRCode()
74 topLeft.GetX() + size, topLef in DrawQRCode()
42 DrawQRCode( RenderContext& context, const Offset& topLeft, int32_t size, const qrcodegen::QrCode& qrCode) DrawQRCode() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/
H A Dscrollable_utils_test.cpp35 void FillChildren(int32_t count, Axis axis, SizeF size);
57 void ScrollableUtilsTest::FillChildren(int32_t count, Axis axis, SizeF size) in FillChildren() argument
61 step.SetX(size.Width()); in FillChildren()
65 step.SetY(size.Height()); in FillChildren()
72 node->geometryNode_->SetFrameSize(size); in FillChildren()
97 ASSERT_EQ(scrollable_->GetChildren().size(), 1); in HWTEST_F()
103 ASSERT_EQ(scrollable_->GetChildren().size(), 1); in HWTEST_F()
120 ASSERT_EQ(lazyNode_->builder_->outOfBoundaryNodes_.size(), 0); in HWTEST_F()
139 ASSERT_EQ(lazyNode_->builder_->outOfBoundaryNodes_.size(), 1); in HWTEST_F()
158 ASSERT_EQ(lazyNode_->builder_->outOfBoundaryNodes_.size(), in HWTEST_F()
[all...]
/foundation/systemabilitymgr/safwk/test/fuzztest/systemabilityfwk_fuzzer/
H A Dsystemabilityfwk_fuzzer.cpp66 std::string BuildStringFromData(const uint8_t* data, size_t size) in BuildStringFromData() argument
68 if ((data == nullptr) || (size == 0)) { in BuildStringFromData()
71 std::string strVal(reinterpret_cast<const char *>(data), size); in BuildStringFromData() local
84 void FuzzLocalAbilityManager(const uint8_t* rawData, size_t size) in FuzzLocalAbilityManager() argument
88 g_baseFuzzSize = size; in FuzzLocalAbilityManager()
94 std::string strVal = BuildStringFromData(rawData, size); in FuzzLocalAbilityManager()
138 void FuzzIpcStatCmdProc(const uint8_t* rawData, size_t size) in FuzzIpcStatCmdProc() argument
142 g_baseFuzzSize = size; in FuzzIpcStatCmdProc()
156 void FuzzSystemAbilityFwk(const uint8_t* rawData, size_t size) in FuzzSystemAbilityFwk() argument
161 size in FuzzSystemAbilityFwk()
175 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/communication/netmanager_ext/test/vpnmanager/fuzztest/vpnclient_fuzzer/
H A Dvpnclient_fuzzer.cpp38 bool InitGlobalData(const uint8_t *data, size_t size) in InitGlobalData() argument
40 if (data == nullptr || size == 0) { in InitGlobalData()
44 g_baseFuzzSize = size; in InitGlobalData()
112 void PrepareFuzzTest(const uint8_t *data, size_t size) in PrepareFuzzTest() argument
122 void ProtectFuzzTest(const uint8_t *data, size_t size) in ProtectFuzzTest() argument
132 void SetUpVpnFuzzTest(const uint8_t *data, size_t size) in SetUpVpnFuzzTest() argument
134 if (!InitGlobalData(data, size)) { in SetUpVpnFuzzTest()
162 void DestroyVpnFuzzTest(const uint8_t *data, size_t size) in DestroyVpnFuzzTest() argument
172 void RegisterVpnEventFuzzTest(const uint8_t *data, size_t size) in RegisterVpnEventFuzzTest() argument
187 void UnregisterVpnEventFuzzTest(const uint8_t *data, size_t size) in UnregisterVpnEventFuzzTest() argument
205 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Draw_data_parser_test.cpp55 for (int i = 0; i < u64Val.size(); ++i) { in HWTEST_F()
63 std::vector<uint8_t> noAlign(rawData.size() + i, 0); in HWTEST_F()
66 RawDataParser::ParserRawData(noAlign.data() + i, noAlign.size() - i, parsedValue1); in HWTEST_F()
80 std::vector<uint8_t> noAlign(rawData.size() + i, 0); in HWTEST_F()
83 RawDataParser::ParserRawData(noAlign.data() + i, noAlign.size() - i, parsedFloats); in HWTEST_F()
84 ASSERT_TRUE(floats.size() == parsedFloats.size()); in HWTEST_F()
100 asset.size = "4194304"; in HWTEST_F()
105 std::vector<uint8_t> noAlign(rawData.size() + i, 0); in HWTEST_F()
108 RawDataParser::ParserRawData(noAlign.data() + i, noAlign.size() in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dpixel_yuv_ext_utils.cpp101 Size &size, PixelFormat pixelFormat, YUVDataInfo &info) in Yuv420ToBGRA()
106 const uint32_t dstStrideARGB = static_cast<uint32_t>(size.width * NUM_4); in Yuv420ToBGRA()
110 dstArgb, dstStrideARGB, size.width, size.height); in Yuv420ToBGRA()
113 dstArgb, dstStrideARGB, size.width, size.height); in Yuv420ToBGRA()
119 Size &size, PixelFormat pixelFormat, YUVDataInfo &info) in Yuv420ToARGB()
121 std::unique_ptr<uint8_t[]> temp = std::make_unique<uint8_t[]>(size.width * size.height * NUM_4); in Yuv420ToARGB()
122 if (!Yuv420ToBGRA(sample, temp.get(), size, pixelForma in Yuv420ToARGB()
100 Yuv420ToBGRA(const uint8_t *sample, uint8_t *dstArgb, Size &size, PixelFormat pixelFormat, YUVDataInfo &info) Yuv420ToBGRA() argument
118 Yuv420ToARGB(const uint8_t *sample, uint8_t *dstArgb, Size &size, PixelFormat pixelFormat, YUVDataInfo &info) Yuv420ToARGB() argument
136 NV12Rotate(uint8_t *src, PixelSize &size, YUVDataInfo &info, OpenSourceLibyuv::RotationMode &rotateNum, uint8_t* dst, YUVStrideInfo &dstStrides) NV12Rotate() argument
175 NV12P010Rotate(YuvPixels yuvPixels, PixelSize& size, YUVDataInfo& info, OpenSourceLibyuv::RotationMode& rotateNum, YUVStrideInfo& dstStrides) NV12P010Rotate() argument
478 FlipXaxis(uint8_t *src, uint8_t *dst, Size &size, PixelFormat format, YUVDataInfo &info, YUVStrideInfo &dstStrides) FlipXaxis() argument
499 Mirror(uint8_t *src, uint8_t *dst, Size &size, PixelFormat format, YUVDataInfo &info, YUVStrideInfo &dstStrides, bool isReversed) Mirror() argument
[all...]
/foundation/multimedia/audio_framework/test/fuzztest/audiopolicyanother_fuzzer/
H A Daudio_policy_another_fuzzer.cpp55 void AudioVolumeFuzzTest(const uint8_t *rawData, size_t size) in AudioVolumeFuzzTest() argument
57 if (rawData == nullptr || size < LIMITSIZE) { in AudioVolumeFuzzTest()
77 std::string sceneType(reinterpret_cast<const char*>(rawData), size - 1); in AudioVolumeFuzzTest()
102 void AudioDeviceFuzzTest(const uint8_t *rawData, size_t size) in AudioDeviceFuzzTest() argument
104 if (rawData == nullptr || size < LIMITSIZE) { in AudioDeviceFuzzTest()
110 data.WriteBuffer(rawData, size); in AudioDeviceFuzzTest()
145 void AudioInterruptFuzzTest(const uint8_t *rawData, size_t size) in AudioInterruptFuzzTest() argument
147 if (rawData == nullptr || size < LIMITSIZE) { in AudioInterruptFuzzTest()
153 data.WriteBuffer(rawData, size); in AudioInterruptFuzzTest()
188 void AudioPolicyFuzzTest(const uint8_t *rawData, size_t size) in AudioPolicyFuzzTest() argument
210 AudioPolicyOtherFuzzTest(const uint8_t *rawData, size_t size) AudioPolicyOtherFuzzTest() argument
266 AudioSessionFuzzTest(const uint8_t *rawData, size_t size) AudioSessionFuzzTest() argument
279 AudioConcurrencyFuzzTest(const uint8_t *rawData, size_t size) AudioConcurrencyFuzzTest() argument
298 AudioVolumeKeyCallbackStub(const uint8_t *rawData, size_t size) AudioVolumeKeyCallbackStub() argument
327 LLVMFuzzerInitialize(const uint8_t *data, size_t size) LLVMFuzzerInitialize() argument
334 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/core/accessibility/
H A Djs_inspector_test.cpp96 EXPECT_EQ(inspectToggle.styles_["font-size"], "16px"); in CheckToggleAttrAndStyle()
100 EXPECT_EQ(inspectToggle.styles_["font-size"], "18px"); in CheckToggleAttrAndStyle()
104 EXPECT_EQ(inspectToggle.styles_["font-size"], "16px"); in CheckToggleAttrAndStyle()
124 EXPECT_EQ(inspectToggle.attrs_.size(), attrsSize + attrsSizeInsert); in CheckToggleAttrAndStyle()
125 EXPECT_EQ(inspectToggle.styles_.size(), stylesSize + stylesSizeInsert); in CheckToggleAttrAndStyle()
140 EXPECT_EQ(inspectTextArea.styles_["font-size"], "16px"); in CheckTextAreaAttrAndStyle()
145 EXPECT_EQ(inspectTextArea.styles_["font-size"], "18px"); in CheckTextAreaAttrAndStyle()
152 EXPECT_EQ(inspectTextArea.attrs_.size(), attrsSize + attrsSizeInsert); in CheckTextAreaAttrAndStyle()
153 EXPECT_EQ(inspectTextArea.styles_.size(), stylesSize + stylesSizeInsert); in CheckTextAreaAttrAndStyle()
173 EXPECT_EQ(inspectText.styles_["font-size"], "3 in CheckTextAttrAndStyle()
536 auto size = inspectBadge.attrs_.size(); HWTEST_F() local
707 auto size = inspectCamera.attrs_.size(); HWTEST_F() local
739 auto size = inspectCanvas.attrs_.size(); HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymgrappexitreasonhelper_fuzzer/
H A Dabilitymgrappexitreasonhelper_fuzzer.cpp66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
70 std::string jsonStr(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 + 1); in LLVMFuzzerTestOneInput()
115 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formmgr_fuzzer/
H A Dformmgr_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
87 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
94 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
98 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
99 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
103 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
108 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
109 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formmgradaptertwo_fuzzer/
H A Dformmgradaptertwo_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
57 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
74 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
81 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
85 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
86 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
90 char* ch = reinterpret_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
95 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
96 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formmgrannex_fuzzer/
H A Dformmgrannex_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
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 + 1); in LLVMFuzzerTestOneInput()
95 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formtimermgr_fuzzer/
H A Dformtimermgr_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
101 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
108 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
112 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
113 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
117 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
122 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
123 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitydebugresponseproxy_fuzzer/
H A Dabilitydebugresponseproxy_fuzzer.cpp84 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
87 std::string stringParam(data, size); in DoSomethingInterestingWithMyAPI()
95 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
102 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
103 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
107 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
113 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
114 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilityinterfacesappmgrrenderstateobserverstub_fuzzer/
H A Dabilityinterfacesappmgrrenderstateobserverstub_fuzzer.cpp75 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
80 parcel.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
91 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
99 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
100 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
104 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
110 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
111 if (memcpy_s(ch, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerserviceseventh_fuzzer/
H A Dabilitymanagerserviceseventh_fuzzer.cpp80 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
85 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
117 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
124 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
125 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
129 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
135 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
136 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/abilitymanagerservicesixth_fuzzer/
H A Dabilitymanagerservicesixth_fuzzer.cpp66 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
72 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
99 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
106 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
107 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
111 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
117 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
118 if (memcpy_s(ch, size, dat in LLVMFuzzerTestOneInput()
[all...]

Completed in 24 milliseconds

1...<<41424344454647484950>>...432