Пример #1
0
      /* Untaint the register */
      bool TaintEngine::untaintRegister(const triton::arch::Register& reg) {
        if (!this->isEnabled())
          return this->isRegisterTainted(reg);
        this->taintedRegisters.erase(reg.getParent());

        return !TAINTED;
      }
Пример #2
0
      /* Returns true of false if the register is currently tainted */
      bool TaintEngine::isRegisterTainted(const triton::arch::Register& reg) const {
        if (this->taintedRegisters.find(reg.getParent()) != this->taintedRegisters.end())
          return TAINTED;

        return !TAINTED;
      }