mirror of
https://github.com/github/codeql.git
synced 2026-06-22 21:27:04 +02:00
Java: Don't clear content in store steps in summaries.
This commit is contained in:
@@ -150,8 +150,7 @@ predicate readStep(Node node1, Content f, Node node2) {
|
||||
* in `x.f = newValue`.
|
||||
*/
|
||||
predicate clearsContent(Node n, Content c) {
|
||||
c instanceof FieldContent and
|
||||
n = any(PostUpdateNode pun | storeStep(_, c, pun)).getPreUpdateNode()
|
||||
exists(FieldAccess fa | instanceFieldAssign(_, fa) and n = getFieldQualifier(fa))
|
||||
or
|
||||
FlowSummaryImpl::Private::Steps::summaryClearsContent(n, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user