Skip to main content

merged_bits

Function merged_bits 

Source
pub fn merged_bits(current: Option<&Tv>, write: &Tv) -> (bool, bool)
Expand description

The bits a write leaves on a variable: no reducer clears a bit (spec 4.1 “a reducer cannot clear taint”, 4.2 “tainted if any contributing write is tainted”). With nothing there yet they are the write’s; after that they are join of the current value and the write, replace included: a clean write over a tainted value leaves it tainted, because a person cannot tell from the variable which text is still in it.