File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
python/ql/src/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,16 @@ class LocalSourceNode extends Node {
40
40
// Both of these preserve the identity of the underlying pointer, and hence we exclude these as
41
41
// local source nodes.
42
42
// We do, however, allow the post-update nodes that arise from object creation (which are non-synthetic).
43
- not this instanceof SyntheticPostUpdateNode
43
+ not this instanceof SyntheticPostUpdateNode and
44
+ // With similar reasoning to the above, we also exclude the following synthesized nodes
45
+ not this instanceof SyntheticPreUpdateNode and
46
+ not this instanceof KwOverflowNode and
47
+ not this instanceof PosOverflowNode and
48
+ not this instanceof KwUnpackedNode and
49
+ not this instanceof IterableSequenceNode and
50
+ not this instanceof IterableElementNode and
51
+ // ESSA nodes are also superfluous
52
+ not this instanceof EssaNode
44
53
or
45
54
this = any ( ModuleVariableNode mvn ) .getARead ( )
46
55
}
You can’t perform that action at this time.
0 commit comments