Skip to content

Commit

Permalink
Add validate() to parse.cc fuzzer (#664)
Browse files Browse the repository at this point in the history
* add fuzzer for validate

* valide only parsed urls

* move coverage over validate() to parse fuzzer
  • Loading branch information
CarlosEduR committed May 16, 2024
1 parent 5c960bc commit 02402c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fuzz/parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
length += out_aggregator->get_origin().size();
length += out_aggregator->get_port().size();

out_aggregator->validate();

// clear methods
out_aggregator->clear_port();
out_aggregator->clear_search();
Expand Down

0 comments on commit 02402c4

Please sign in to comment.