mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
Python: ObjectAPI to ValueAPI: WrongNumberArgumentsInCall: Exceptions.qll: Fixes incorrect implementation of localRaisedType
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user