Fix GeneralizedInput::wrapped_as_testcase (#584)
This commit is contained in:
parent
abf1a66028
commit
88a14cbbd2
@ -47,7 +47,10 @@ impl Input for GeneralizedInput {
|
||||
/// An hook executed before being added to the corpus
|
||||
fn wrapped_as_testcase(&mut self) {
|
||||
// remove generalized for inputs generated with bit-level mutations
|
||||
if !self.grimoire_mutated {
|
||||
// and fix bytes for the ones generated by grimoire
|
||||
if self.grimoire_mutated {
|
||||
self.bytes = self.generalized_to_bytes();
|
||||
} else {
|
||||
self.generalized = None;
|
||||
}
|
||||
// restore to allow bit-level mutations
|
||||
|
Loading…
x
Reference in New Issue
Block a user