mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Java: bugfix
This commit is contained in:
@@ -150,7 +150,11 @@ predicate readStep(Node node1, Content f, Node node2) {
|
||||
* in `x.f = newValue`.
|
||||
*/
|
||||
predicate clearsContent(Node n, Content c) {
|
||||
exists(FieldAccess fa | instanceFieldAssign(_, fa) and n = getFieldQualifier(fa))
|
||||
exists(FieldAccess fa |
|
||||
instanceFieldAssign(_, fa) and
|
||||
n = getFieldQualifier(fa) and
|
||||
c.(FieldContent).getField() = fa.getField()
|
||||
)
|
||||
or
|
||||
FlowSummaryImpl::Private::Steps::summaryClearsContent(n, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user