pub struct TaintAnalysis {
pub taint: HashMap<String, TaintValue>,
}Expand description
Taint analysis state: map from variable to taint status.
Fields§
§taint: HashMap<String, TaintValue>Variable → taint status
Implementations§
Source§impl TaintAnalysis
impl TaintAnalysis
Sourcepub fn add_source(&mut self, var: impl Into<String>)
pub fn add_source(&mut self, var: impl Into<String>)
Mark a variable as a taint source.
Sourcepub fn is_tainted(&self, var: &str) -> bool
pub fn is_tainted(&self, var: &str) -> bool
Check if a variable is tainted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaintAnalysis
impl RefUnwindSafe for TaintAnalysis
impl Send for TaintAnalysis
impl Sync for TaintAnalysis
impl Unpin for TaintAnalysis
impl UnsafeUnpin for TaintAnalysis
impl UnwindSafe for TaintAnalysis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more