Skip to content

Commit b1ea00f

Browse files
committed
C++: Remove the taintflow edges that gives performance problems.
1 parent 710d0cf commit b1ea00f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ private predicate instructionToOperandTaintStep(Instruction fromInstr, Operand t
4444
fromInstr = readInstr.getArgumentDef() and
4545
toOperand = readInstr.getSideEffectOperand()
4646
)
47-
or
48-
toOperand.(LoadOperand).getAnyDef() = fromInstr
4947
}
5048

5149
/**
@@ -84,8 +82,6 @@ private predicate operandToInstructionTaintStep(Operand opFrom, Instruction inst
8482
instrTo.(FieldAddressInstruction).getField().getDeclaringType() instanceof Union
8583
)
8684
or
87-
instrTo.(LoadInstruction).getSourceAddressOperand() = opFrom
88-
or
8985
// Flow from an element to an array or union that contains it.
9086
instrTo.(ChiInstruction).getPartialOperand() = opFrom and
9187
not instrTo.isResultConflated() and

0 commit comments

Comments
 (0)