Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringSpecialization ¶
type StringSpecialization int
StringSpecialization Based on taint analysis, could check how input strings are used, and inform the search about it
const ( // DATE_FORMAT_UNKNOWN_PATTERN String used as a Date with unknown format DATE_FORMAT_UNKNOWN_PATTERN StringSpecialization = iota // DATE_FORMAT_PATTERN String used as a Date with not explicitly supported format DATE_FORMAT_PATTERN // DATE_YYYY_MM_DD String used as a Date in YYYY_MM_DD format DATE_YYYY_MM_DD // DATE_YYYY_MM_DD_HH_MM String used as a Date in YYYY_MM_DD_HH_MM format DATE_YYYY_MM_DD_HH_MM // ISO_LOCAL_DATE_TIME An ISO Local Date Time (i.e. ISO_LOCAL_DATE + 'T' + ISO_LOCAL_TIME) ISO_LOCAL_DATE_TIME // ISO_LOCAL_TIME An ISO Local Time (with or without no seconds) ISO_LOCAL_TIME // INTEGER String used as an integer INTEGER // CONSTANT String used with a specific, constant value CONSTANT // CONSTANT_IGNORE_CASE String used with a specific, constant value, ignoring its case CONSTANT_IGNORE_CASE // REGEX String constrained by a regular expression REGEX // DOUBLE String parsed to double DOUBLE // LONG String parsed to long LONG // BOOLEAN String parsed to boolean BOOLEAN // FLOAT String parsed to float FLOAT // EQUAL String should be equal to another string variable, // ie 2 (or more) different variables should be keep their // value in sync EQUAL )
func (StringSpecialization) String ¶
func (s StringSpecialization) String() string
type StringSpecializationInfo ¶
type StringSpecializationInfo struct { StringSpecialization StringSpecialization /** * Value A possible Value to provide context to the specialization. * For example, if the specialization is a CONSTANT, then the "Value" here would * the content of the constant */ Value string TaintType taint_type.TaintType }
func NewStringSpecializationInfo ¶
func NewStringSpecializationInfo( stringSpecialization StringSpecialization, value string, taintType taint_type.TaintType, ) StringSpecializationInfo
Click to show internal directories.
Click to hide internal directories.