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

Chance to ignore min/max or pick invalid Enum should be optional #5

Closed
jma-qb opened this issue May 16, 2024 · 1 comment
Closed

Chance to ignore min/max or pick invalid Enum should be optional #5

jma-qb opened this issue May 16, 2024 · 1 comment

Comments

@jma-qb
Copy link

jma-qb commented May 16, 2024

Lain can chose to ignore the min and max bounds of a Vec as well as picking an invalid value for an Enum. see https://github.com/AFLplusplus/lain/blob/main/lain/src/mutator.rs#L19
I believe the user should be able to disable this behavior or chose a different value without cloning the library to set the chance to 0.
As it requires a bit of refactoring of Lain, this behavior should at least be documented/highlighted in a visible place.
I also think the default values are too high.

jma-qb added a commit to jma-qb/lain that referenced this issue Nov 9, 2024
domenukk added a commit that referenced this issue Nov 9, 2024
fix #1, #2, #7 and #9. Propose solutions for #4 #5 and #6
@jma-qb
Copy link
Author

jma-qb commented Nov 12, 2024

hidden behind features pick_invalid_enum and ignore_min_max which are disabled by default.

@jma-qb jma-qb closed this as completed Nov 12, 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

No branches or pull requests

1 participant