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

Making CommandExecutor generic on the specific Input #2129

Merged
merged 1 commit into from
May 2, 2024

Conversation

riesentoaster
Copy link
Contributor

@riesentoaster riesentoaster commented May 1, 2024

I have a complex Input and would like to map the struct's field to different parts of a command (multiple args, stdin, etc.). To be able to do this, CommandExecutor should be generic in the specific Input used in the fuzzer. With the current version, CommandExecutors can basically only ever be used with BytesInput, since only the bytes are accessible (via the constraint on HasTargetBytes). With these changes, all exposed data from the Input struct is available in the implementation.

This is just what I came up with, it may still have room for improvement.

@domenukk domenukk merged commit 7fe0c57 into AFLplusplus:main May 2, 2024
100 checks passed
@riesentoaster riesentoaster deleted the generic_commandexecutor branch May 3, 2024 07:16
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