mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
C++: Remove the problematic taint tracking rule. It seems like we get the flows from dataflow already now.
This commit is contained in:
@@ -257,15 +257,6 @@ private predicate instructionTaintStep(Instruction i1, Instruction i2) {
|
|||||||
i2.(ChiInstruction).getPartial() = i1.(WriteSideEffectInstruction) and
|
i2.(ChiInstruction).getPartial() = i1.(WriteSideEffectInstruction) and
|
||||||
not i2.isResultConflated()
|
not i2.isResultConflated()
|
||||||
or
|
or
|
||||||
// Flow from an element to an array or union that contains it.
|
|
||||||
i2.(ChiInstruction).getPartial() = i1 and
|
|
||||||
not i2.isResultConflated() and
|
|
||||||
exists(Type t | i2.getResultLanguageType().hasType(t, false) |
|
|
||||||
t instanceof Union
|
|
||||||
or
|
|
||||||
t instanceof ArrayType
|
|
||||||
)
|
|
||||||
or
|
|
||||||
exists(BinaryInstruction bin |
|
exists(BinaryInstruction bin |
|
||||||
bin = i2 and
|
bin = i2 and
|
||||||
predictableInstruction(i2.getAnOperand().getDef()) and
|
predictableInstruction(i2.getAnOperand().getDef()) and
|
||||||
|
|||||||
Reference in New Issue
Block a user