Skip to content

Commit

Permalink
reduce url_pattern length
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jan 22, 2025
1 parent 1c910f4 commit a30ad2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fuzz/url_pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
FuzzedDataProvider fdp(data, size);
std::string source = fdp.ConsumeRandomLengthString(256);
std::string base_source = fdp.ConsumeRandomLengthString(256);
std::string source = fdp.ConsumeRandomLengthString(50);
std::string base_source = fdp.ConsumeRandomLengthString(50);

// Without base or options
auto result = ada::parse_url_pattern(source, nullptr, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion fuzz/url_pattern.options
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[libfuzzer]
dict = url.dict
max_len = 512
max_len = 100
rss_limit_mb = 10000

0 comments on commit a30ad2d

Please sign in to comment.