pub struct TaintAnalysis { /* private fields */ }Implementations§
source§impl TaintAnalysis
impl TaintAnalysis
sourcepub fn get_definition(&self, var: &VariableName) -> Option<VariableUse>
pub fn get_definition(&self, var: &VariableName) -> Option<VariableUse>
Get the variable use corresponding to the definition of the variable.
pub fn definitions(&self) -> impl Iterator<Item = &VariableUse>
sourcepub fn get_declaration(&self, var: &VariableName) -> Option<VariableUse>
pub fn get_declaration(&self, var: &VariableName) -> Option<VariableUse>
Get the variable use corresponding to the declaration of the variable.
pub fn declarations(&self) -> impl Iterator<Item = &VariableUse>
sourcepub fn single_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
pub fn single_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
Returns variables tainted in a single step by source.
sourcepub fn multi_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
pub fn multi_step_taint(&self, source: &VariableName) -> HashSet<VariableName>
Returns variables tainted in zero or more steps by source.
sourcepub fn taints_any(
&self,
source: &VariableName,
sinks: &HashSet<VariableName>
) -> bool
pub fn taints_any(
&self,
source: &VariableName,
sinks: &HashSet<VariableName>
) -> bool
Returns true if the source taints any of the sinks.
Trait Implementations§
source§impl Clone for TaintAnalysis
impl Clone for TaintAnalysis
source§fn clone(&self) -> TaintAnalysis
fn clone(&self) -> TaintAnalysis
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for TaintAnalysis
impl Default for TaintAnalysis
source§fn default() -> TaintAnalysis
fn default() -> TaintAnalysis
Returns the “default value” for a type. Read more