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

fix: validate that a flag key is valid UTF-8 & implemented fuzzing tests #141

Merged
merged 2 commits into from
Jan 27, 2023

Conversation

skyerus
Copy link
Contributor

@skyerus skyerus commented Jan 19, 2023

This PR

  • Fuzzing tests.
  • Validate that a flag key is valid UTF-8 (issue arose from fuzzing 🎉 )

Related Issues

Fixes #127

Notes

Follow-up Tasks

How to test

@skyerus
Copy link
Contributor Author

skyerus commented Jan 19, 2023

Will rebase once 1.18 is merged: #140

@skyerus skyerus marked this pull request as ready for review January 25, 2023 16:41
@Kavindu-Dodan
Copy link
Contributor

Overall looks good. One suggestion, let's add few more fuzz seeds. For example, flag keys with mix cases, include numbers (A-z0-9) plus special characters if needed. Plus the same for default variant to match the type.

@skyerus
Copy link
Contributor Author

skyerus commented Jan 27, 2023

Overall looks good. One suggestion, let's add few more fuzz seeds. For example, flag keys with mix cases, include numbers (A-z0-9) plus special characters if needed. Plus the same for default variant to match the type.

Thanks! Good suggestion, done :)

@beeme1mr beeme1mr merged commit e3e7f82 into open-feature:main Jan 27, 2023
This was referenced Jan 27, 2023
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.

[TESTS] Introduce fuzzing tests
4 participants