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

add AFL stage names for calibration, colorization, power and sync stages #2209

Merged
merged 5 commits into from
May 18, 2024

Conversation

R9295
Copy link
Contributor

@R9295 R9295 commented May 17, 2024

Implements and closes #2179

change set_name to with_name for PowerMutationalStage
remove irrelevant fn transforming
libafl/src/stages/sync.rs Outdated Show resolved Hide resolved
load_callback,
phantom: PhantomData,
}
}
Copy link
Member

@domenukk domenukk May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually we have a space between functions

@domenukk
Copy link
Member

Thinking about this - we could also AFL-ify these names by default, they don't matter too much, right?

@tokatoka
Copy link
Member

i think it's good

@tokatoka
Copy link
Member

Thinking about this - we could also AFL-ify these names by default, they don't matter too much, right?

yes i think there's no really any meaning to give different names to the stage. so it can be default

@@ -60,11 +60,16 @@ impl UnstableEntriesMetadata {
}
}

/// Default name for `CalibrationStage`
pub const CALIBRATION_STAGE_NAME: &str = "CalibrationStage";
Copy link
Member

@domenukk domenukk May 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this guy can go, we'll use the AFL variant as default. Keep the info that this resembles afl's name around in the docstring (and maybe add the info about the name to new).
In any case, I think we may want a constructor for custom names down the road else we can't have multiple instances of the same stage (right?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domenukk AFL variant as default just for calibration? or for sync & colorization too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this name in my opinion. just keep
pub const CALIBRATION_STAGE_NAME: &str = "calibration"
and then it's fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any case, I think we may want a constructor for custom names down the road else we can't have multiple instances of the same stage (right?)

we can have multiple same stages. but more imporantly we don't use name anymore because we have the handle. so it doesn't hatter

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@R9295 you make afl name default for all

@R9295 R9295 requested a review from tokatoka May 18, 2024 12:12
@tokatoka tokatoka merged commit baf0744 into AFLplusplus:main May 18, 2024
99 checks passed
@tokatoka
Copy link
Member

good

riesentoaster pushed a commit to riesentoaster/LibAFL that referenced this pull request May 24, 2024
…ges (AFLplusplus#2209)

* add AFL stage names for calibration, colorization, power and sync stages

* clippy

* add missing name field in sync stage

* use consts instead of hardcoding in functions.
change set_name to with_name for PowerMutationalStage
remove irrelevant fn transforming

* make AFL++ name default for all stages
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.

Short stage names for AFLOnDiskCorpus
3 participants