mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Python: Swaps out element_from_tuple
This commit is contained in:
@@ -274,9 +274,9 @@ class ExceptFlowNode extends ControlFlowNode {
|
||||
(
|
||||
this.getType().pointsTo(val, origin)
|
||||
or
|
||||
exists(Value tup |
|
||||
this.handledObject(val, ClassValue::tuple(), _) |
|
||||
element_from_tuple(tup).pointsTo(val, origin)
|
||||
exists(TupleValue tup |
|
||||
this.handledObject(tup, ClassValue::tuple(), _) |
|
||||
val = tup.getItem(_) and origin.pointsTo(val)
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -317,12 +317,6 @@ private ControlFlowNode element_from_tuple_objectapi(Object tuple) {
|
||||
)
|
||||
}
|
||||
|
||||
private ControlFlowNode element_from_tuple(Value tuple) {
|
||||
exists(Expr x, Tuple t |
|
||||
x.pointsTo(tuple,t) and result = t.getAnElt().getAFlowNode()
|
||||
)
|
||||
}
|
||||
|
||||
/** A Reraising node is the node at the end of a finally block (on the exceptional branch)
|
||||
* that reraises the current exception.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user