Skip to content

Commit 9756a4a

Browse files
committed
feat: add url_search_params to fuzzer
1 parent 63a407a commit 9756a4a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

fuzz/parse.cc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,18 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
9797
*/
9898
ada::href_from_file(source);
9999

100+
/**
101+
* ada::url_search_params
102+
*/
103+
auto search_params = ada::url_search_params();
104+
search_params.append(source, base_source);
105+
search_params.set(source, base_source);
106+
search_params.to_string();
107+
if (!search_params.has(base_source)) {
108+
search_params.append(base_source, source);
109+
}
110+
search_params.remove(source);
111+
search_params.remove(source, base_source);
112+
100113
return 0;
101114
} // extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {

0 commit comments

Comments
 (0)