Skip to content

Commit dc8a31f

Browse files
committed
C#/Java: Update dataflow model generator related comments to include provenance.
1 parent de7f486 commit dc8a31f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

csharp/ql/src/utils/modelgenerator/internal/CaptureSummaryFlowQuery.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private import CaptureModels
1212
* }
1313
* ```
1414
* Captured Model:
15-
* ```Summaries;BasicFlow;false;ReturnThis;(System.Object);Argument[this];ReturnValue;value```
15+
* ```Summaries;BasicFlow;false;ReturnThis;(System.Object);Argument[this];ReturnValue;value;df-generated```
1616
* Capture APIs that transfer taint from an input parameter to an output return
1717
* value or parameter.
1818
* Allows a sequence of read steps followed by a sequence of store steps.
@@ -36,8 +36,8 @@ private import CaptureModels
3636
* ```
3737
* Captured Models:
3838
* ```
39-
* Summaries;BasicFlow;false;ReturnField;();Argument[this];ReturnValue;taint |
40-
* Summaries;BasicFlow;false;AssignFieldToArray;(System.Object[]);Argument[this];Argument[0].Element;taint
39+
* Summaries;BasicFlow;false;ReturnField;();Argument[this];ReturnValue;taint;df-generated |
40+
* Summaries;BasicFlow;false;AssignFieldToArray;(System.Object[]);Argument[this];Argument[0].Element;taint;df-generated
4141
* ```
4242
*
4343
* ```csharp
@@ -51,7 +51,7 @@ private import CaptureModels
5151
* }
5252
* ```
5353
* Captured Model:
54-
* ```Summaries;BasicFlow;false;SetField;(System.String);Argument[0];Argument[this];taint```
54+
* ```Summaries;BasicFlow;false;SetField;(System.String);Argument[0];Argument[this];taint;df-generated```
5555
*
5656
* ```csharp
5757
* public class BasicFlow {
@@ -62,7 +62,7 @@ private import CaptureModels
6262
* }
6363
* ```
6464
* Captured Model:
65-
* ```Summaries;BasicFlow;false;ReturnSubstring;(System.String);Argument[0];ReturnValue;taint```
65+
* ```Summaries;BasicFlow;false;ReturnSubstring;(System.String);Argument[0];ReturnValue;taint;df-generated```
6666
*
6767
* ```csharp
6868
* public class BasicFlow {
@@ -73,7 +73,7 @@ private import CaptureModels
7373
* }
7474
* ```
7575
* Captured Model:
76-
* ```Summaries;BasicFlow;false;AssignToArray;(System.Int32,System.Int32[]);Argument[0];Argument[1].Element;taint```
76+
* ```Summaries;BasicFlow;false;AssignToArray;(System.Int32,System.Int32[]);Argument[0];Argument[1].Element;taint;df-generated```
7777
*/
7878
string captureFlow(DataFlowTargetApi api) {
7979
result = captureQualifierFlow(api) or

java/ql/src/utils/modelgenerator/internal/CaptureSummaryFlowQuery.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ private import CaptureModels
3333
* ```
3434
* Captured Models:
3535
* ```
36-
* p;Foo;true;returnsTainted;;Argument[this];ReturnValue;taint
37-
* p;Foo;true;putsTaintIntoParameter;(List);Argument[this];Argument[0];taint
36+
* p;Foo;true;returnsTainted;;Argument[this];ReturnValue;taint;df-generated
37+
* p;Foo;true;putsTaintIntoParameter;(List);Argument[this];Argument[0];taint;df-generated
3838
* ```
3939
*
4040
* ```java
@@ -45,7 +45,7 @@ private import CaptureModels
4545
* }
4646
* ```
4747
* Captured Model:
48-
* ```p;Foo;true;doSomething;(String);Argument[0];Argument[this];taint```
48+
* ```p;Foo;true;doSomething;(String);Argument[0];Argument[this];taint;df-generated```
4949
*
5050
* ```java
5151
* public class Foo {
@@ -55,7 +55,7 @@ private import CaptureModels
5555
* }
5656
* ```
5757
* Captured Model:
58-
* ```p;Foo;true;returnData;;Argument[0];ReturnValue;taint```
58+
* ```p;Foo;true;returnData;;Argument[0];ReturnValue;taint;df-generated```
5959
*
6060
* ```java
6161
* public class Foo {
@@ -65,7 +65,7 @@ private import CaptureModels
6565
* }
6666
* ```
6767
* Captured Model:
68-
* ```p;Foo;true;addToList;;Argument[0];Argument[1];taint```
68+
* ```p;Foo;true;addToList;;Argument[0];Argument[1];taint;df-generated```
6969
*/
7070
string captureFlow(DataFlowTargetApi api) {
7171
result = captureQualifierFlow(api) or

0 commit comments

Comments
 (0)