Skip to content

Commit 81d4ec1

Browse files
committed
pragma node
1 parent 8e653d0 commit 81d4ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ predicate defaultImplicitTaintRead(DataFlow::Node node, DataFlow::ContentSet cs)
3131
// So when the node is a `PostUpdateNode` we allow any sequence of implicit read steps of an appropriate
3232
// type to make sure we arrive at the sink with an empty access path.
3333
exists(NominalTypeDecl d, Decl cx |
34-
node.(DataFlow::PostUpdateNode).getPreUpdateNode().asExpr().getType().getUnderlyingType() =
34+
pragma[only_bind_out](node).(DataFlow::PostUpdateNode).getPreUpdateNode().asExpr().getType().getUnderlyingType() =
3535
d.getType().getABaseType*() and
3636
cx.asNominalTypeDecl() = d and
3737
cs.getAReadContent().(DataFlow::Content::FieldContent).getField() = cx.getAMember()

0 commit comments

Comments
 (0)