Skip to content

Commit 22c1556

Browse files
committed
Python: Fix code after removing getPostUpdateNode
1 parent 7a6eee5 commit 22c1556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/dataflow/new/internal/TaintTrackingPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ predicate containerStep(DataFlow::CfgNode nodeFrom, DataFlow::Node nodeTo) {
178178
// list.append, set.add
179179
exists(DataFlow::MethodCallNode call, DataFlow::Node obj |
180180
call.calls(obj, ["append", "add"]) and
181-
obj.getPostUpdateNode() = nodeTo and
181+
obj = nodeTo.(DataFlow::PostUpdateNode).getPreUpdateNode() and
182182
call.getArg(0) = nodeFrom
183183
)
184184
}

0 commit comments

Comments
 (0)