mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
DataFlow: Permit local flow between post-update nodes
This commit is contained in:
@@ -254,7 +254,10 @@ module MakeConsistency<
|
||||
|
||||
query predicate postWithInFlow(PostUpdateNode n, string msg) {
|
||||
not clearsContent(n, _) and
|
||||
simpleLocalFlowStep(_, n, _) and
|
||||
exists(Node pred |
|
||||
simpleLocalFlowStep(pred, n, _) and
|
||||
not pred instanceof PostUpdateNode
|
||||
) and
|
||||
not Input::postWithInFlowExclude(n) and
|
||||
msg = "PostUpdateNode should not be the target of local flow."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user