Skip to content

Commit

Permalink
test: add url_search_params::has(name, value) to fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzzode authored and anonrig committed Aug 2, 2023
1 parent e223318 commit ec6511e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzz/parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
search_params.remove(source);
search_params.remove(source, base_source);
if (search_params.has(base_source, source)) {
search_params.remove(base_source);
search_params.remove(base_source, source);
}

return 0;
} // extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {

0 comments on commit ec6511e

Please sign in to comment.