Fix FPs and typo

This commit is contained in:
Joe Farebrother
2025-07-01 16:39:12 +01:00
parent 4f63528844
commit 45b5efad25
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ predicate multipleCallsToSuperclassMethod(Function meth, Function calledMulti, s
exists(DataFlow::MethodCallNode call1, DataFlow::MethodCallNode call2, Class cls |
meth.getName() = name and
meth.getScope() = cls and
not call1 = call2 and
call1.asExpr() != call2.asExpr() and
calledMulti = getASuperCallTarget(cls, meth, call1) and
calledMulti = getASuperCallTarget(cls, meth, call2) and
nonTrivial(calledMulti)

View File

@@ -15,7 +15,7 @@ import python
import MethodCallOrder
predicate multipleCallsToSuperclassDel(Function meth, Function calledMulti) {
multipleCallsToSuperclassMethod(meth, calledMulti, "__sel__")
multipleCallsToSuperclassMethod(meth, calledMulti, "__del__")
}
from Function meth, Function calledMulti