We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06f6198 + 4d7aece commit e7576fdCopy full SHA for e7576fd
cpp/ql/test/library-tests/dataflow/taint-tests/taint.ql
@@ -95,16 +95,7 @@ module IRTest {
95
override predicate isSink(DataFlow::Node sink) {
96
exists(FunctionCall call |
97
call.getTarget().getName() = "sink" and
98
- sink.asConvertedExpr() = call.getAnArgument()
99
- or
100
- call.getTarget().getName() = "sink" and
101
- sink.asExpr() = call.getAnArgument() and
102
- sink.asConvertedExpr() instanceof ReferenceDereferenceExpr
103
- )
104
105
- exists(ReadSideEffectInstruction read |
106
- read.getSideEffectOperand() = sink.asOperand() and
107
- read.getPrimaryInstruction().(CallInstruction).getStaticCallTarget().hasName("sink")
+ sink.asExpr() = call.getAnArgument()
108
)
109
}
110
0 commit comments