зеркало из https://github.com/github/codeql.git
Merge pull request #1810 from markshannon/python-speedup-slow-predicate
Python: Prevent bad magic in one predicate.
This commit is contained in:
Коммит
c6c307ffef
|
@ -78,6 +78,7 @@ abstract class ConstantObjectInternal extends ObjectInternal {
|
|||
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
private boolean callToBool(CallNode call, PointsToContext context) {
|
||||
PointsToInternal::pointsTo(call.getFunction(), context, ClassValue::bool(), _) and
|
||||
exists(ObjectInternal arg |
|
||||
|
|
Загрузка…
Ссылка в новой задаче