python: Document MaD format

- add a few tests reflecting the documentation
- make the mentioned sink-kinds have an effect on relevant queries
This commit is contained in:
Rasmus Lerchedahl Petersen
2024-06-14 16:02:38 +02:00
parent 6dbdc9e17f
commit 5cb37f5c4c
9 changed files with 502 additions and 1 deletions

View File

@@ -25,3 +25,12 @@ extensions:
- ["foo.MS_Class", "Member[instance_method]", "Argument[0]", "ReturnValue.TupleElement[1]", "value"]
- ["foo.MS_Class", "Member[explicit_self]", "Argument[self:]", "ReturnValue", "value"]
- ["json", "Member[MS_loads]", "Argument[0]", "ReturnValue", "taint"]
- addsTo:
pack: codeql/python-all
extensible: typeModel
data:
- ["foo.MS_Class", "foo", "Member[get_instance].ReturnValue"]
- ["foo.MS_Class!", "foo", "Member[get_class].ReturnValue"]
# Ideally this would be a consequence of the above line
- ["foo.MS_Class", "foo", "Member[get_class].ReturnValue.Instance"]