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 fuzzer for href setter and getter #658

Closed

Conversation

CarlosEduR
Copy link
Contributor

No description provided.

@CarlosEduR CarlosEduR marked this pull request as ready for review May 15, 2024 23:27
std::string source = fdp.ConsumeRandomLengthString(256);
std::string base_source = fdp.ConsumeRandomLengthString(256);

auto out_url = ada::parse<ada::url>(source);
Copy link
Member

Choose a reason for hiding this comment

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

This won't work because 99.9999% of the time out_url will be false. Because the probability of the fuzzer to pass a correct URL is really-really low.

Ideally we should create a collection of tokens to be passed with the randomly generated input.

More information can be found from: https://google.github.io/oss-fuzz/advanced-topics/ideal-integration/#dictionary

For example: iajshduahfiuahsufdiasd will not work at all, but if you surround it with https:// and .com it will pass and still fuzz almost everything.

@CarlosEduR CarlosEduR marked this pull request as draft May 16, 2024 02:40
@CarlosEduR
Copy link
Contributor Author

Closing, it'll be pushed here: #657

@CarlosEduR CarlosEduR closed this May 16, 2024
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.

None yet

2 participants