Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validate() to parse.cc fuzzer #664

Merged
merged 3 commits into from
May 16, 2024

Conversation

CarlosEduR
Copy link
Member

No description provided.

fuzz/validate.cc Outdated
/**
* ada::validate
*/
auto out_aggregator = ada::parse<ada::url_aggregator>(source);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am somewhat anxious about this code. Are you assuming that 'source' is parsed successfully?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am somewhat anxious about this code. Are you assuming that 'source' is parsed successfully?

good point @lemire, I'll update it so it only validates the parsed successfully ones.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code updated.

fuzz/validate.cc Outdated Show resolved Hide resolved
@CarlosEduR CarlosEduR changed the title Add fuzzer for validate() Add validate() to parse.cc fuzzer May 16, 2024
@anonrig anonrig merged commit 02402c4 into ada-url:main May 16, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants