-
Notifications
You must be signed in to change notification settings - Fork 17
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
Aaronjeline/logmore #137
Aaronjeline/logmore #137
Conversation
#[derive(Debug, Clone)] | ||
#[derive(Debug, Clone, Serialize)] | ||
struct FuzzTargetInput { | ||
/// generated schema | ||
#[serde(skip)] | ||
pub schema: Schema, | ||
/// generated entity slice | ||
#[serde(skip)] | ||
pub entities: Entities, | ||
/// Should we pre-evaluate entity attributes | ||
#[serde(skip)] | ||
pub should_cache_entities: bool, | ||
/// generated policy | ||
pub policy: ABACPolicy, | ||
/// the requests to try for this hierarchy and policy. We try 8 requests per | ||
/// policy/hierarchy | ||
#[serde(skip)] | ||
pub requests: [ABACRequest; 8], | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect serialize
to include most of these fields. Can we just call serialize
on .policy
if this is what we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, because I need it to be the FuzzTargetInput so I can log all of them via the macro easily.
|
||
## Logging | ||
|
||
If the fuzz targets are compiled with the `log` features, then they will log their entire corpus to the file pointed at in the `LOGFILE` environment variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk if "corpus" is the right word here -- does "corpus" imply some amount of minimization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, "corpus minimization" is a second step one applies to the corpus
Issue #, if available:
N/A
Description of changes:
Provides the ability to log the corpus generated.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.