Python: Fully disallow API::moduleImport of module with dots

Inspired by discussion about this for MaD in
https://github.com/github/codeql/pull/8883#discussion_r865858084
This commit is contained in:
Rasmus Wriedt Larsen
2022-05-12 11:19:07 +02:00
parent 597a8414d9
commit f8253f5fef
2 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,5 @@
moduleImportWithDots
| file://:0:0:0:0 | ModuleImport moduleImport("a").getMember("b").getMember("c").getMember("d") |
doesntFullyWork
| test.py:28:10:28:17 | ControlFlowNode for method() |
works
| test.py:25:6:25:18 | ControlFlowNode for Attribute() |
| test.py:28:10:28:17 | ControlFlowNode for method() |