abstract class
Crowbar::Mutator
- Crowbar::Mutator
- Reference
- Object
Overview
Base class for all data and byte mutators. Incorporates Radamsa-inspired dynamic adaptive scoring (2..10) coupled with user-configurable priority weights for intelligent selection.
Direct Known Subclasses
- Crowbar::Mutators::ArithmeticScaler
- Crowbar::Mutators::BitFlipRun
- Crowbar::Mutators::BoundaryNumbers
- Crowbar::Mutators::ByteDrop
- Crowbar::Mutators::ByteFlip
- Crowbar::Mutators::ByteIncDec
- Crowbar::Mutators::ByteInsert
- Crowbar::Mutators::BytePermute
- Crowbar::Mutators::ByteRandom
- Crowbar::Mutators::ByteRepeat
- Crowbar::Mutators::CaseFlip
- Crowbar::Mutators::DelimiterStress
- Crowbar::Mutators::DictionaryMutator
- Crowbar::Mutators::FloatAnomalies
- Crowbar::Mutators::HomoglyphMutator
- Crowbar::Mutators::LengthBoundary
- Crowbar::Mutators::LineMutator
- Crowbar::Mutators::NestingDepth
- Crowbar::Mutators::PaddingMutator
- Crowbar::Mutators::Security
- Crowbar::Mutators::SequenceDelete
- Crowbar::Mutators::SequenceRepeat
- Crowbar::Mutators::SequenceSwap
- Crowbar::Mutators::Splice
- Crowbar::Mutators::TimestampMutator
- Crowbar::Mutators::TreeMutator
- Crowbar::Mutators::TruncationMutator
- Crowbar::Mutators::UnicodeEdgeCases
- Crowbar::Mutators::WalkingBit
- Crowbar::Mutators::WhitespaceDelimiters
Defined in:
crowbar/mutators/base.crConstructors
Instance Method Summary
-
#adjust_score(delta : Int32)
Adjust dynamic score within [2, 10]
-
#aliases : Array(String)
Optional short aliases or alternative identifiers (e.g.
- #description : String
-
#effective_weight : Float64
Probability multiplier: score * user_weight
-
#mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32)
Performs mutation on buffer, optionally constrained to target_range [start, end_exclusive].
- #name : String
- #score : Int32
- #score=(score : Int32)
- #weight : Float64
- #weight=(weight : Float64)
Constructor Detail
Instance Method Detail
Optional short aliases or alternative identifiers (e.g. ["fuse", "ft", "fn"])
Performs mutation on buffer, optionally constrained to target_range [start, end_exclusive]. Returns a tuple of {success : Bool, score_delta : Int32}. score_delta > 0 indicates success in an appropriate domain (+1 or +2). score_delta < 0 indicates the input does not match the mutator's domain (-1).