-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.fuzzIssues related to native fuzzing supportIssues related to native fuzzing support
Milestone
Description
Currently, we use the same mutation engine for string and []byte. This tends to generate a lot of invalid UTF-8 strings that aren't usable for many use cases. While invalid UTF-8 is likely to turn up many shallow parser bugs, it may make the mutator less effective at finding more subtle, deeper bugs.
We should have an option to make the mutator only generate UTF-8. Some ideas:
- Create a
UTF8Stringdefined type. A fuzz function that accepts that as a parameter would only get valid UTF-8 strings. - Only provide valid UTF-8 strings for
stringparameters. A function could request[]bytefor random bytes, and that can still be converted tostring.
cc @golang/fuzzing @findleyr
DasSkelett
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.fuzzIssues related to native fuzzing supportIssues related to native fuzzing support
Type
Projects
Status
No status