File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed
lib/semmle/python/dataflow/new/internal
test/experimental/dataflow/summaries-checks Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ newtype TContent =
614
614
// instead we use a qltest to alert if we write a new summary in QL that uses an
615
615
// attribute -- see
616
616
// python/ql/test/experimental/dataflow/summaries-checks/missing-attribute-content.ql
617
- none ( ) // to be filled out in next commit
617
+ attr in [ "re" , "string" , "pattern" ]
618
618
or
619
619
//
620
620
// 2) summaries in data-extension files
Original file line number Diff line number Diff line change 1
- | compiled re.Match | Argument[self].Attribute[pattern] | Attribute[pattern] |
2
- | compiled re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[pattern] |
3
- | compiled re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[re] |
4
- | compiled re.Match | ReturnValue.Attribute[string] | Attribute[string] |
5
1
| compiled re.subn | ReturnValue.TupleElement[0] | TupleElement[0] |
6
- | re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[pattern] |
7
- | re.Match | ReturnValue.Attribute[re].Attribute[pattern] | Attribute[re] |
8
- | re.Match | ReturnValue.Attribute[string] | Attribute[string] |
9
- | re.Match.expand | Argument[self].Attribute[string] | Attribute[string] |
10
- | re.Match.group | Argument[self].Attribute[string] | Attribute[string] |
11
- | re.Match.groupdict | Argument[self].Attribute[string] | Attribute[string] |
12
- | re.Match.groups | Argument[self].Attribute[string] | Attribute[string] |
13
- | re.Pattern | ReturnValue.Attribute[pattern] | Attribute[pattern] |
14
2
| re.subn | ReturnValue.TupleElement[0] | TupleElement[0] |
Original file line number Diff line number Diff line change 1
- | The attribute "pattern" is not a valid TAttributeContent, please add it to the hardcoded list of TAttributeContent in the dataflow library. |
2
- | The attribute "re" is not a valid TAttributeContent, please add it to the hardcoded list of TAttributeContent in the dataflow library. |
3
- | The attribute "string" is not a valid TAttributeContent, please add it to the hardcoded list of TAttributeContent in the dataflow library. |
You can’t perform that action at this time.
0 commit comments