mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Allow _some_ PostUpdateNodes
Specifically, allow the ones arising from calls, but not reads or writes. This should fix the tests.
This commit is contained in:
@@ -27,7 +27,9 @@ class LocalSourceNode extends Node {
|
||||
LocalSourceNode() {
|
||||
not comes_from_cfgnode(this) and
|
||||
not this instanceof ModuleVariableNode and
|
||||
not this instanceof PostUpdateNode
|
||||
not this.(PostUpdateNode).getPreUpdateNode() in [
|
||||
syntheticPostUpdateNode::storePreUpdateNode(), syntheticPostUpdateNode::readPreUpdateNode()
|
||||
]
|
||||
or
|
||||
this = any(ModuleVariableNode mvn).getARead()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user