mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Fix FPs and typo
This commit is contained in:
@@ -8,7 +8,7 @@ predicate multipleCallsToSuperclassMethod(Function meth, Function calledMulti, s
|
|||||||
exists(DataFlow::MethodCallNode call1, DataFlow::MethodCallNode call2, Class cls |
|
exists(DataFlow::MethodCallNode call1, DataFlow::MethodCallNode call2, Class cls |
|
||||||
meth.getName() = name and
|
meth.getName() = name and
|
||||||
meth.getScope() = cls and
|
meth.getScope() = cls and
|
||||||
not call1 = call2 and
|
call1.asExpr() != call2.asExpr() and
|
||||||
calledMulti = getASuperCallTarget(cls, meth, call1) and
|
calledMulti = getASuperCallTarget(cls, meth, call1) and
|
||||||
calledMulti = getASuperCallTarget(cls, meth, call2) and
|
calledMulti = getASuperCallTarget(cls, meth, call2) and
|
||||||
nonTrivial(calledMulti)
|
nonTrivial(calledMulti)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import python
|
|||||||
import MethodCallOrder
|
import MethodCallOrder
|
||||||
|
|
||||||
predicate multipleCallsToSuperclassDel(Function meth, Function calledMulti) {
|
predicate multipleCallsToSuperclassDel(Function meth, Function calledMulti) {
|
||||||
multipleCallsToSuperclassMethod(meth, calledMulti, "__sel__")
|
multipleCallsToSuperclassMethod(meth, calledMulti, "__del__")
|
||||||
}
|
}
|
||||||
|
|
||||||
from Function meth, Function calledMulti
|
from Function meth, Function calledMulti
|
||||||
|
|||||||
Reference in New Issue
Block a user