class Crowbar::Mutators::UnicodeEdgeCases

Overview

Injects Unicode edge cases, overlong representations, surrogates, and BiDi controls

Defined in:

crowbar/mutators/values.cr

Constant Summary

UNICODE_SNIPPETS = [Bytes[239, 187, 191], Bytes[254, 255], Bytes[255, 254], Bytes[226, 128, 174], Bytes[226, 128, 173], Bytes[226, 128, 139], Bytes[226, 128, 140], Bytes[226, 128, 141], Bytes[239, 191, 191], Bytes[244, 143, 191, 191], Bytes[244, 144, 128, 128], Bytes[237, 160, 128], Bytes[237, 191, 191], Bytes[239, 183, 186]]

Instance Method Summary

Instance methods inherited from class Crowbar::Mutator

adjust_score(delta : Int32) adjust_score, aliases : Array(String) aliases, description : String description, effective_weight : Float64 effective_weight, mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) mutate, name : String name, score : Int32 score, score=(score : Int32) score=, weight : Float64 weight, weight=(weight : Float64) weight=

Constructor methods inherited from class Crowbar::Mutator

new(weight : Float64 = 1.0) new

Instance Method Detail

def description : String #

def mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32) #

def name : String #