From d62f7c097c263ac2df254fdd190664f8944dee5c Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 20 Jan 2025 14:06:44 -0500 Subject: [PATCH] try to fix fuzzer --- fuzz/idna.cc | 1 - fuzz/url_pattern.options | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 fuzz/url_pattern.options diff --git a/fuzz/idna.cc b/fuzz/idna.cc index 31ad94be4..ac4f0cda2 100644 --- a/fuzz/idna.cc +++ b/fuzz/idna.cc @@ -9,7 +9,6 @@ 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); /** * ada::idna diff --git a/fuzz/url_pattern.options b/fuzz/url_pattern.options new file mode 100644 index 000000000..c1025fc28 --- /dev/null +++ b/fuzz/url_pattern.options @@ -0,0 +1,4 @@ +[libfuzzer] +dict = url.dict +max_len = 512 +rss_limit_mb = 3000