Python: ObjectAPI to ValueAPI: WrongNumberArgumentsInCall: Exceptions.qll: Fixes incorrect implementation of localRaisedType

This commit is contained in:
Rebecca Valentine
2020-04-03 20:08:00 -07:00
parent c6fbbb1cd1
commit f25428b7a9

View File

@@ -97,7 +97,7 @@ class RaisingNode extends ControlFlowNode {
(
exists(ControlFlowNode ex |
ex = this.getExceptionNode() and
(ex.pointsTo(result) or ex.pointsTo(_, result, _))
(ex.pointsTo(result) or ex.pointsTo().getClass() = result)
)
or
this.getNode() instanceof ImportExpr and result = ClassValue::importError()