Home
last modified time | relevance | path

Searched refs:ConsumeRandomLengthString (Results 1 – 25 of 192) sorted by relevance

12345678

/aosp_15_r20/external/libbrillo/brillo/http/
H A Dhttp_form_data_fuzzer.cc23 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateTextFormField()
24 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateTextFormField()
25 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateTextFormField()
26 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength)); in CreateTextFormField()
32 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), nullptr); in CreateFileFormField()
34 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField()
36 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField()
37 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField()
38 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength), in CreateFileFormField()
39 data_provider->ConsumeRandomLengthString(kRandomDataMaxLength)); in CreateFileFormField()
[all …]
/aosp_15_r20/frameworks/av/camera/tests/fuzzer/
H A Dcamera_Parameters_fuzzer.cpp65 params = mFDP->ConsumeBool() ? mFDP->ConsumeRandomLengthString(kMaxBytes).c_str() in initCameraParameters()
69 params += mFDP->ConsumeBool() ? mFDP->ConsumeRandomLengthString(kMaxBytes).c_str() in initCameraParameters()
74 params += mFDP->ConsumeBool() ? mFDP->ConsumeRandomLengthString(kMaxBytes).c_str() in initCameraParameters()
79 params += mFDP->ConsumeBool() ? mFDP->ConsumeRandomLengthString(kMaxBytes).c_str() in initCameraParameters()
82 (mFDP->ConsumeBool() ? mFDP->ConsumeRandomLengthString(kMaxBytes).c_str() in initCameraParameters()
86 params = mFDP->ConsumeRandomLengthString(kMaxBytes); in initCameraParameters()
140 : mFDP->ConsumeRandomLengthString(kMaxBytes); in callCameraParametersAPIs()
159 : mFDP->ConsumeRandomLengthString(kMaxBytes); in callCameraParametersAPIs()
175 string key = mFDP->ConsumeRandomLengthString(kMaxBytes); in callCameraParametersAPIs()
180 string key = mFDP->ConsumeRandomLengthString(kMaxBytes); in callCameraParametersAPIs()
[all …]
/aosp_15_r20/system/core/init/fuzzer/
H A Dinit_ueventHandler_fuzzer.cpp40 out << fdp->ConsumeRandomLengthString(kMaxBytes) << "\n"; in MakeFile()
56 return fdp->ConsumeRandomLengthString(kMaxBytes); in SelectRandomString()
68 uevent.path = SelectRandomString(fdp, kPath + fdp->ConsumeRandomLengthString(kMaxBytes)); in CreateUevent()
69 uevent.firmware = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
70 uevent.partition_name = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
71 uevent.device_name = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
72 uevent.modalias = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
87 modalias_vector.push_back(fdp.ConsumeRandomLengthString(kMaxBytes)); in LLVMFuzzerTestOneInput()
97 std::string devPath = fdp.ConsumeRandomLengthString(kMaxBytes); in LLVMFuzzerTestOneInput()
100 std::string handlerPath = fdp.ConsumeRandomLengthString(kMaxBytes); in LLVMFuzzerTestOneInput()
[all …]
H A Dinit_property_fuzzer.cpp58 value = fdp_.ConsumeRandomLengthString(kMaxPropertyLength); in InvokeCheckType()
87 value = fdp_.ConsumeRandomLengthString(kMaxPropertyLength); in InvokeCheckType()
88 property_type = fdp_.ConsumeRandomLengthString(kMaxPropertyLength); in InvokeCheckType()
99 WritePersistentProperty((kPrefix + fdp_.ConsumeRandomLengthString(kMaxPropertyLength)), in InvokeWritePersistentProperty()
100 fdp_.ConsumeRandomLengthString(kMaxPropertyLength)); in InvokeWritePersistentProperty()
115 out << fdp_.ConsumeRandomLengthString(kMaxPropertyLength) << "\n"; in CreateFuzzerPropertyFile()
H A Dinit_parser_fuzzer.cpp52 input.push_back(fdp_.ConsumeRandomLengthString(kMaxBytes)); in InvokeLimitParser()
53 input.push_back(fdp_.ConsumeRandomLengthString(kMaxBytes)); in InvokeLimitParser()
54 input.push_back(fdp_.ConsumeRandomLengthString(kMaxBytes)); in InvokeLimitParser()
63 std::string name = fdp_.ConsumeBool() ? fdp_.ConsumeRandomLengthString(kMaxBytes) : "import"; in InvokeParser()
66 : fdp_.ConsumeRandomLengthString(kMaxBytes); in InvokeParser()
/aosp_15_r20/frameworks/av/services/mediametrics/fuzzer/
H A Dmediametrics_service_fuzzer.cpp109 ? mFdp.ConsumeRandomLengthString(kMaxBytes) in setKeyValues()
118 mediametrics::LogItem<1> itemTemp(mFdp.ConsumeRandomLengthString(kMaxBytes)); in setKeyValues()
135 key = mFdp.ConsumeRandomLengthString(kMaxItemLength); in CreateItem()
146 keyValue = mFdp.ConsumeRandomLengthString(kMaxBytes); in CreateItem()
160 android::mediametrics::startsWith(mFdp.ConsumeRandomLengthString(kMaxBytes), in invokeStartsWith()
161 mFdp.ConsumeRandomLengthString(kMaxBytes)); in invokeStartsWith()
170 MediaMetricsService::useUidForPackage(mFdp.ConsumeRandomLengthString(kMaxBytes).c_str(), in invokePackageInstallerCheck()
171 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str()); in invokePackageInstallerCheck()
179 std::string str = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeTimeMachineStorage()
220 (mFdp.ConsumeRandomLengthString(kMaxBytes) + std::string(".event")).c_str(), in invokeAnalyticsAction()
[all …]
/aosp_15_r20/system/extras/simpleperf/
H A Dsimpleperf_writer_fuzzer.cpp53 string event = mFdp.ConsumeRandomLengthString(kMaxLen); in AddEvents()
82 string event = mFdp.ConsumeRandomLengthString(kMaxLen); in process()
97 BuildId build_id(mFdp.ConsumeRandomLengthString(kMaxLen)); in process()
101 mFdp.ConsumeRandomLengthString(kMaxLen) /* filename */)); in process()
107 mFdp.ConsumeRandomLengthString(kMaxLen) /* string */); in process()
114 cmdline.push_back(mFdp.ConsumeRandomLengthString(kMaxLen)); in process()
124 Dso::CreateDso(dso_type, mFdp.ConsumeRandomLengthString(kMaxLen) /* path */, in process()
136 std::string key = mFdp.ConsumeRandomLengthString(kMaxLen); in process()
137 std::string value = mFdp.ConsumeRandomLengthString(kMaxLen); in process()
156 testFile.path = mFdp.ConsumeRandomLengthString(kMaxLen); in process()
/aosp_15_r20/system/core/fs_mgr/liblp/fuzzer/
H A Dliblp_builder_fuzzer.cpp83 mFdp.ConsumeRandomLengthString(kMaxBytes),
90 mFdp.ConsumeRandomLengthString(kMaxBytes),
133 : mFdp.ConsumeRandomLengthString(kMaxBytes); in selectRandomBuilder()
141 : mFdp.ConsumeRandomLengthString(kMaxBytes); in selectRandomBuilder()
172 string mResizePartitionName = mFdp.ConsumeRandomLengthString(kMaxBytes); in setupBuilder()
180 mFdp.ConsumeBool() ? kDeviceInfoName : mFdp.ConsumeRandomLengthString(kMaxBytes); in setupBuilder()
197 string group1 = mFdp.ConsumeBool() ? mFdp.ConsumeRandomLengthString(kMaxBytes) : "group1"; in callChangePartitionGroup()
200 string group2 = mFdp.ConsumeBool() ? mFdp.ConsumeRandomLengthString(kMaxBytes) : "group2"; in callChangePartitionGroup()
206 string changeGroupPartitionName = mFdp.ConsumeRandomLengthString(kMaxBytes); in callChangePartitionGroup()
259 vector<string>{"system", "vendor", mFdp.ConsumeRandomLengthString(kMaxBytes)}); in callVerifyExtentsAgainstSourceMetadata()
[all …]
H A Dliblp_apis_fuzzer.cpp82 mFdp.ConsumeRandomLengthString(kMaxBytes),
88 mFdp.ConsumeBool() ? kSuperName : mFdp.ConsumeRandomLengthString(kMaxBytes); in getBlockDevice()
116 mFdp.ConsumeBool() ? mFdp.ConsumeRandomLengthString(kMaxBytes) : kPartitionName; in setupBuilder()
120 mSuperPartitionName = mFdp.ConsumeBool() ? mFdp.ConsumeRandomLengthString(kMaxBytes) in setupBuilder()
147 {{mFdp.ConsumeBool() ? mFdp.ConsumeRandomLengthString(kMaxBytes) : kSuperName, fd}}, in process()
148 {{mFdp.ConsumeBool() ? mFdp.ConsumeRandomLengthString(kMaxBytes) : kSuperName, in process()
214 : mFdp.ConsumeRandomLengthString(kMaxBytes); in process()
/aosp_15_r20/external/libbrillo/brillo/
H A Ddata_encoding_fuzzer.cc20 provider->ConsumeRandomLengthString(kMaxStringLength).c_str(), in FuzzUrlEncodeDecode()
24 provider->ConsumeRandomLengthString(kMaxStringLength).c_str()); in FuzzUrlEncodeDecode()
32 provider->ConsumeRandomLengthString(kMaxStringLength), in FuzzWebParamsEncodeDecode()
33 provider->ConsumeRandomLengthString(kMaxStringLength))); in FuzzWebParamsEncodeDecode()
38 provider->ConsumeRandomLengthString(kMaxStringLength)); in FuzzWebParamsEncodeDecode()
43 provider->ConsumeRandomLengthString(kMaxStringLength)); in FuzzBase64EncodeDecode()
46 provider->ConsumeRandomLengthString(kMaxStringLength), &output); in FuzzBase64EncodeDecode()
/aosp_15_r20/frameworks/native/services/inputflinger/tests/fuzzers/
H A DMultiTouchInputFuzzer.cpp31 eventHub.addProperty("touch.deviceType", fdp->ConsumeRandomLengthString(8).data()); in addProperty()
34 eventHub.addProperty("touch.size.scale", fdp->ConsumeRandomLengthString(8).data()); in addProperty()
37 eventHub.addProperty("touch.size.bias", fdp->ConsumeRandomLengthString(8).data()); in addProperty()
41 fdp->ConsumeRandomLengthString(8).data()); in addProperty()
45 fdp->ConsumeRandomLengthString(8).data()); in addProperty()
49 fdp->ConsumeRandomLengthString(8).data()); in addProperty()
57 fdp->ConsumeRandomLengthString(8).data()); in addProperty()
/aosp_15_r20/tools/security/fuzzing/llm/xmlreader_fuzzer/
H A DXmlRead_Memory_Fuzzer.cpp11 … std::string elementName = stream.ConsumeRandomLengthString(10); // Limiting name length to 10 in GenerateRandomXML()
15 … std::string textContent = stream.ConsumeRandomLengthString(20); // Limiting text content length in GenerateRandomXML()
21 …std::string attributeName = stream.ConsumeRandomLengthString(10); // Limiting attribute name length in GenerateRandomXML()
22 …std::string attributeValue = stream.ConsumeRandomLengthString(20); // Limiting attribute value len… in GenerateRandomXML()
49 std::string URL = stream.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
50 std::string encoding = stream.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
/aosp_15_r20/frameworks/av/media/ndk/fuzzer/
H A Dndk_drm_fuzzer.cpp166 mFdp.ConsumeBool() ? kPropertyName : mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmPropertyAPI()
174 mFdp.ConsumeBool() ? kPropertyName : mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmPropertyAPI()
180 std::string propertyName = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmPropertyAPI()
181 std::string value = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmPropertyAPI()
188 std::string propertyName = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmPropertyAPI()
201 : mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmDecryptEncryptAPI()
224 : mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmDecryptEncryptAPI()
231 keys[i] = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmDecryptEncryptAPI()
232 values[i] = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmDecryptEncryptAPI()
250 std::string key = mFdp.ConsumeRandomLengthString(kMaxBytes); in invokeDrmDecryptEncryptAPI()
/aosp_15_r20/external/cronet/net/cookies/
H A Dcanonical_cookie_fuzzer.cc28 const std::string name = data_provider.ConsumeRandomLengthString( in LLVMFuzzerTestOneInput()
30 const std::string value = data_provider.ConsumeRandomLengthString( in LLVMFuzzerTestOneInput()
32 const std::string domain = data_provider.ConsumeRandomLengthString( in LLVMFuzzerTestOneInput()
34 const std::string path = data_provider.ConsumeRandomLengthString( in LLVMFuzzerTestOneInput()
37 const GURL url(data_provider.ConsumeRandomLengthString(800)); in LLVMFuzzerTestOneInput()
62 GURL(data_provider.ConsumeRandomLengthString(800)))); in LLVMFuzzerTestOneInput()
/aosp_15_r20/packages/modules/Bluetooth/system/profile/avrcp/tests/avrcp_device_fuzz/
Davrcp_device_fuzz.cc74 sInfo.media_id = mFdp->ConsumeRandomLengthString(kMaxLen); in GetSongInfo()
78 mFdp->ConsumeRandomLengthString(kMaxLen))); in GetSongInfo()
90 std::string currentSongId = mFdp->ConsumeRandomLengthString(kMaxLen); in GetNowPlayingList()
95 tempSongInfo.media_id = mFdp->ConsumeRandomLengthString(kMaxLen); in GetNowPlayingList()
99 mFdp->ConsumeRandomLengthString(kMaxLen))); in GetNowPlayingList()
114 tempInfo.name = mFdp->ConsumeRandomLengthString(kMaxLen); in GetMediaPlayerList()
129 tempList.folder.media_id = mFdp->ConsumeRandomLengthString(kMaxLen); in GetFolderItems()
130 tempList.folder.name = mFdp->ConsumeRandomLengthString(kMaxLen); in GetFolderItems()
132 tempList.song.media_id = mFdp->ConsumeRandomLengthString(kMaxLen); in GetFolderItems()
136 mFdp->ConsumeRandomLengthString(kMaxLen))); in GetFolderItems()
[all …]
/aosp_15_r20/system/libhidl/fuzzer/
H A DlibHidlBase_fuzzer_helper.h33 [&]() { return hidl_string(fdp.ConsumeRandomLengthString(kMaxBytes)); }, in createHidlString()
34 [&]() { return hidl_string((fdp.ConsumeRandomLengthString(kMaxBytes)).c_str()); }, in createHidlString()
36 std::string testString = fdp.ConsumeRandomLengthString(kMaxBytes); in createHidlString()
40 [&]() { return fdp.ConsumeRandomLengthString(kMaxBytes); }, in createHidlString()
59 (fdp.ConsumeRandomLengthString(kMaxBytes)).c_str()); in createStatus()
/aosp_15_r20/frameworks/av/media/mtp/tests/MtpFuzzer/
H A Dmtp_fuzzer.cpp58 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* descriptor */, in MtpMockServer()
68 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* manu */, in MtpMockServer()
69 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* model */, in MtpMockServer()
70 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* version */, in MtpMockServer()
71 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* serial */); in MtpMockServer()
86 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* filePath */, in process()
87 mFdp.ConsumeRandomLengthString(kMaxBytes).c_str() /* description */, in process()
/aosp_15_r20/frameworks/av/media/libmediaplayerservice/fuzzer/
H A Dmediaplayer_fuzzer.cpp267 headers.add(String8(mFdp.ConsumeRandomLengthString().c_str()), in setDataSource()
268 String8(mFdp.ConsumeRandomLengthString().c_str())); in setDataSource()
305 String8 rtpParams = String8(mFdp.ConsumeRandomLengthString().c_str()); in setDataSource()
431 String16((mFdp.ConsumeRandomLengthString()).c_str()) /* tags */); in invokeMediaPlayer()
448 attributionSource.packageName = mFdp.ConsumeRandomLengthString().c_str(); in invokeMediaPlayer()
502 args.push_back(String16(mFdp.ConsumeRandomLengthString().c_str())); in invokeMediaPlayer()
522 String16(mFdp.ConsumeRandomLengthString().c_str()) /*opPackageName*/, in process()
523 remoteDisplayClient, String8(mFdp.ConsumeRandomLengthString().c_str()) /*iface*/); in process()
531 attributionSource.packageName = mFdp.ConsumeRandomLengthString().c_str(); in process()
541 args.push_back(String16(mFdp.ConsumeRandomLengthString().c_str())); in process()
/aosp_15_r20/system/core/fs_mgr/libfstab/fuzz/
H A Dfs_mgr_fstab_fuzzer.cpp28 std::string make_fstab_str = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
29 std::string dsu_slot = fdp.ConsumeRandomLengthString(30); in LLVMFuzzerTestOneInput()
31 fdp.ConsumeRandomLengthString(30), in LLVMFuzzerTestOneInput()
32 fdp.ConsumeRandomLengthString(30), in LLVMFuzzerTestOneInput()
/aosp_15_r20/external/selinux/libselinux/fuzzers/
H A Dselinux_check_access_fuzzer.cpp35 default: return fdp.ConsumeRandomLengthString(); in GetClass()
49 default: return fdp.ConsumeRandomLengthString(); in GetPermission()
58 std::string scon = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
59 std::string tcon = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
/aosp_15_r20/external/rust/android-crates-io/crates/libfuzzer-sys/libfuzzer/tests/
DFuzzedDataProviderUnittest.cpp177 TEST(FuzzedDataProvider, ConsumeRandomLengthString) { in TEST() argument
183 DataProv.ConsumeRandomLengthString(1337)); in TEST()
192 DataProv.ConsumeRandomLengthString(31337)); in TEST()
195 DataProv.ConsumeRandomLengthString(5)); in TEST()
198 DataProv.ConsumeRandomLengthString(2)); in TEST()
203 DataProv.ConsumeRandomLengthString()); in TEST()
207 DataProv.ConsumeRandomLengthString()); in TEST()
213 EXPECT_EQ(std::string(), DataProv.ConsumeRandomLengthString(1)); in TEST()
/aosp_15_r20/frameworks/native/libs/input/
H A DPropertyMap_fuzz.cpp31 std::string key = dataProvider->ConsumeRandomLengthString(MAX_STR_LEN); in __anonbc24cc150202()
37 std::string contents = dataProvider->ConsumeRandomLengthString(MAX_FILE_SIZE); in __anonbc24cc150302()
47 std::string key = dataProvider->ConsumeRandomLengthString(MAX_STR_LEN); in __anonbc24cc150402()
48 std::string val = dataProvider->ConsumeRandomLengthString(MAX_STR_LEN); in __anonbc24cc150402()
/aosp_15_r20/external/cronet/net/ntlm/
H A Dntlm_client_fuzzer.cc19 std::string bytes = data_provider.ConsumeRandomLengthString(max_chars * 2); in ConsumeRandomLengthString16()
40 fdp.ConsumeRandomLengthString(net::ntlm::kMaxFqdnLen + 1); in LLVMFuzzerTestOneInput()
41 std::string channel_bindings = fdp.ConsumeRandomLengthString(150); in LLVMFuzzerTestOneInput()
43 fdp.ConsumeRandomLengthString(net::ntlm::kMaxFqdnLen + 5 + 1); in LLVMFuzzerTestOneInput()
/aosp_15_r20/tools/security/fuzzing/llm/tinyxml2_fuzzer/
H A Dtinyxml_parse_fuzzer.cpp36 element->name = stream->ConsumeRandomLengthString(20); in GenerateXML()
41 stream->ConsumeRandomLengthString(15), // Attribute name in GenerateXML()
42 stream->ConsumeRandomLengthString(30) // Attribute value in GenerateXML()
55 child.textContent = stream->ConsumeRandomLengthString(30); in GenerateXML()
/aosp_15_r20/system/core/fastboot/fuzzer/
H A Dfastboot_fuzzer.cpp112 string message = fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeSocket()
142 string write_message = fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeTcp()
148 string read_message = fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeTcp()
215 string write_message = fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeUdp()
216 string read_message = fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeUdp()
248 : fdp_->ConsumeRandomLengthString(kMaxStringSize); in InvokeVendorBootImgUtils()

12345678