File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
extern " C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) {
9
9
FuzzedDataProvider fdp (data, size);
10
- std::string source = fdp.ConsumeRandomLengthString ();
11
- std::string base_source = fdp.ConsumeRandomLengthString ();
10
+ std::string source = fdp.ConsumeRandomLengthString (256 );
11
+ std::string base_source = fdp.ConsumeRandomLengthString (256 );
12
12
13
13
/* *
14
14
* ada::parse<ada::url>
15
15
*/
16
16
auto out_url = ada::parse<ada::url>(source);
17
17
18
18
if (out_url) {
19
- std::string input = fdp.ConsumeRandomLengthString ();
19
+ std::string input = fdp.ConsumeRandomLengthString (256 );
20
20
out_url->set_protocol (input);
21
21
out_url->set_username (input);
22
22
out_url->set_password (input);
@@ -33,7 +33,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
33
33
auto out_aggregator = ada::parse<ada::url_aggregator>(source);
34
34
35
35
if (out_aggregator) {
36
- std::string input = fdp.ConsumeRandomLengthString ();
36
+ std::string input = fdp.ConsumeRandomLengthString (256 );
37
37
out_aggregator->set_protocol (input);
38
38
out_aggregator->set_username (input);
39
39
out_aggregator->set_password (input);
You can’t perform that action at this time.
0 commit comments