Skip to main content

taint_out

Function taint_out 

Source
pub fn taint_out(op: &TransformOp, input: &Tv) -> (bool, bool)
Expand description

What an operation does to the taint bits of the value it reads (the table of §3.9 and the derived-value rule of §4.5). Returns (tainted, derived).

  • Operations that can carry text (everything but the next line) pass the input’s bits on: tainted in, tainted out.
  • count, sum, min, max and exists cannot carry text: over tainted input they give a clean value that is derived, so it is clean as data and still attacker-chosen as control or as a numeric argument.
  • Over clean input they stay clean; over derived input they stay derived.