Skip to content

Commit 71d1179

Browse files
Fix FPs and typo
1 parent caddec4 commit 71d1179

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/src/Classes/CallsToInitDel/MethodCallOrder.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ predicate multipleCallsToSuperclassMethod(Function meth, Function calledMulti, s
88
exists(DataFlow::MethodCallNode call1, DataFlow::MethodCallNode call2, Class cls |
99
meth.getName() = name and
1010
meth.getScope() = cls and
11-
not call1 = call2 and
11+
call1.asExpr() != call2.asExpr() and
1212
calledMulti = getASuperCallTarget(cls, meth, call1) and
1313
calledMulti = getASuperCallTarget(cls, meth, call2) and
1414
nonTrivial(calledMulti)

python/ql/src/Classes/CallsToInitDel/SuperclassDelCalledMultipleTimes.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import python
1515
import MethodCallOrder
1616

1717
predicate multipleCallsToSuperclassDel(Function meth, Function calledMulti) {
18-
multipleCallsToSuperclassMethod(meth, calledMulti, "__sel__")
18+
multipleCallsToSuperclassMethod(meth, calledMulti, "__del__")
1919
}
2020

2121
from Function meth, Function calledMulti

0 commit comments

Comments
 (0)