mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
C#: Disregards compiler generated virtual calls as problematic virtual calls.
This commit is contained in:
@@ -34,7 +34,9 @@ predicate overriddenSealed(RefType t, Virtualizable d) {
|
||||
}
|
||||
|
||||
predicate virtualAccessWithThisQualifier(Expr e, Member d) {
|
||||
exists(VirtualMethodCall c | c = e and c.getTarget() = d and c.hasThisQualifier())
|
||||
exists(VirtualMethodCall c |
|
||||
c = e and c.getTarget() = d and c.hasThisQualifier() and not c.isImplicit()
|
||||
)
|
||||
or
|
||||
exists(VirtualMethodAccess c | c = e and c.getTarget() = d and c.hasThisQualifier())
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user