Skip to content

Commit db73a62

Browse files
author
Stephan Brandauer
committed
fix bug in InputArgumentIndex feature
1 parent 67500f8 commit db73a62

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ private module SyntacticUtilities {
599599
}
600600

601601
/**
602-
* Gets a property initializer value in a an object literal or one of its nested object literals.
602+
* Gets a property initializer value in an object literal or one of its nested object literals.
603603
*/
604604
Expr getANestedInitializerValue(ObjectExpr o) {
605605
exists(Expr init | init = o.getAProperty().getInit().getUnderlyingValue() |
@@ -823,7 +823,7 @@ class InputArgumentIndex extends EndpointFeature, TInputArgumentIndex {
823823
exists(DataFlow::InvokeNode invk, DataFlow::Node arg, int i | arg = invk.getArgument(i) |
824824
result = i + "" and
825825
(
826-
invk.getAnArgument() = endpoint
826+
invk.getArgument(i) = endpoint
827827
or
828828
SyntacticUtilities::getANestedInitializerValue(arg.asExpr().getUnderlyingValue()).flow() =
829829
endpoint

javascript/ql/experimental/adaptivethreatmodeling/test/generic_feature_testing/FeatureValue.expected

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| test.html:2:61:2:68 | endpoint | calleeAccessPath | |
55
| test.html:2:61:2:68 | endpoint | calleeAccessPathWithStructuralInfo | |
66
| test.html:2:61:2:68 | endpoint | calleeName | item |
7-
| test.html:2:61:2:68 | endpoint | contextFunctionInterfacesInFile | |
7+
| test.html:2:61:2:68 | endpoint | contextFunctionInterfaces | |
88
| test.html:2:61:2:68 | endpoint | contextSurroundingFunctionParameters | |
99
| test.html:2:61:2:68 | endpoint | fileImports | |
1010
| test.js:6:7:6:14 | endpoint | CalleeFlexibleAccessPath | f |
@@ -15,9 +15,9 @@
1515
| test.js:6:7:6:14 | endpoint | calleeApiName | lib3 |
1616
| test.js:6:7:6:14 | endpoint | calleeImports | ? lib3 |
1717
| test.js:6:7:6:14 | endpoint | calleeName | f |
18-
| test.js:6:7:6:14 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
18+
| test.js:6:7:6:14 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
1919
| test.js:6:7:6:14 | endpoint | contextSurroundingFunctionParameters | () |
20-
| test.js:6:7:6:14 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
20+
| test.js:6:7:6:14 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
2121
| test.js:6:7:6:14 | endpoint | enclosingFunctionName | |
2222
| test.js:6:7:6:14 | endpoint | fileImports | foo lib1 lib2 lib3 |
2323
| test.js:7:11:7:18 | endpoint | CalleeFlexibleAccessPath | f |
@@ -26,9 +26,9 @@
2626
| test.js:7:11:7:18 | endpoint | calleeAccessPath | |
2727
| test.js:7:11:7:18 | endpoint | calleeAccessPathWithStructuralInfo | |
2828
| test.js:7:11:7:18 | endpoint | calleeImports | ? lib3 |
29-
| test.js:7:11:7:18 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
29+
| test.js:7:11:7:18 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
3030
| test.js:7:11:7:18 | endpoint | contextSurroundingFunctionParameters | () |
31-
| test.js:7:11:7:18 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
31+
| test.js:7:11:7:18 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
3232
| test.js:7:11:7:18 | endpoint | enclosingFunctionName | |
3333
| test.js:7:11:7:18 | endpoint | fileImports | foo lib1 lib2 lib3 |
3434
| test.js:8:15:8:22 | endpoint | CalleeFlexibleAccessPath | f |
@@ -37,9 +37,9 @@
3737
| test.js:8:15:8:22 | endpoint | calleeAccessPath | |
3838
| test.js:8:15:8:22 | endpoint | calleeAccessPathWithStructuralInfo | |
3939
| test.js:8:15:8:22 | endpoint | calleeImports | ? lib3 |
40-
| test.js:8:15:8:22 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
40+
| test.js:8:15:8:22 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
4141
| test.js:8:15:8:22 | endpoint | contextSurroundingFunctionParameters | () |
42-
| test.js:8:15:8:22 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
42+
| test.js:8:15:8:22 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
4343
| test.js:8:15:8:22 | endpoint | enclosingFunctionName | |
4444
| test.js:8:15:8:22 | endpoint | fileImports | foo lib1 lib2 lib3 |
4545
| test.js:9:9:9:16 | endpoint | CalleeFlexibleAccessPath | o.m |
@@ -50,9 +50,9 @@
5050
| test.js:9:9:9:16 | endpoint | calleeApiName | lib2 |
5151
| test.js:9:9:9:16 | endpoint | calleeImports | ? lib2 |
5252
| test.js:9:9:9:16 | endpoint | calleeName | m |
53-
| test.js:9:9:9:16 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
53+
| test.js:9:9:9:16 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
5454
| test.js:9:9:9:16 | endpoint | contextSurroundingFunctionParameters | () |
55-
| test.js:9:9:9:16 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
55+
| test.js:9:9:9:16 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
5656
| test.js:9:9:9:16 | endpoint | enclosingFunctionName | |
5757
| test.js:9:9:9:16 | endpoint | fileImports | foo lib1 lib2 lib3 |
5858
| test.js:9:9:9:16 | endpoint | receiverName | o |
@@ -62,9 +62,9 @@
6262
| test.js:10:13:10:20 | endpoint | calleeAccessPath | |
6363
| test.js:10:13:10:20 | endpoint | calleeAccessPathWithStructuralInfo | |
6464
| test.js:10:13:10:20 | endpoint | calleeImports | ? lib2 |
65-
| test.js:10:13:10:20 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
65+
| test.js:10:13:10:20 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
6666
| test.js:10:13:10:20 | endpoint | contextSurroundingFunctionParameters | () |
67-
| test.js:10:13:10:20 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
67+
| test.js:10:13:10:20 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
6868
| test.js:10:13:10:20 | endpoint | enclosingFunctionName | |
6969
| test.js:10:13:10:20 | endpoint | fileImports | foo lib1 lib2 lib3 |
7070
| test.js:11:17:11:24 | endpoint | CalleeFlexibleAccessPath | o.m |
@@ -73,19 +73,19 @@
7373
| test.js:11:17:11:24 | endpoint | calleeAccessPath | |
7474
| test.js:11:17:11:24 | endpoint | calleeAccessPathWithStructuralInfo | |
7575
| test.js:11:17:11:24 | endpoint | calleeImports | ? lib2 |
76-
| test.js:11:17:11:24 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
76+
| test.js:11:17:11:24 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
7777
| test.js:11:17:11:24 | endpoint | contextSurroundingFunctionParameters | () |
78-
| test.js:11:17:11:24 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
78+
| test.js:11:17:11:24 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
7979
| test.js:11:17:11:24 | endpoint | enclosingFunctionName | |
8080
| test.js:11:17:11:24 | endpoint | fileImports | foo lib1 lib2 lib3 |
8181
| test.js:12:11:12:18 | endpoint | CalleeFlexibleAccessPath | F |
8282
| test.js:12:11:12:18 | endpoint | InputArgumentIndex | 0 |
8383
| test.js:12:11:12:18 | endpoint | calleeAccessPath | |
8484
| test.js:12:11:12:18 | endpoint | calleeAccessPathWithStructuralInfo | |
8585
| test.js:12:11:12:18 | endpoint | calleeImports | lib1 |
86-
| test.js:12:11:12:18 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
86+
| test.js:12:11:12:18 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
8787
| test.js:12:11:12:18 | endpoint | contextSurroundingFunctionParameters | () |
88-
| test.js:12:11:12:18 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
88+
| test.js:12:11:12:18 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
8989
| test.js:12:11:12:18 | endpoint | enclosingFunctionName | |
9090
| test.js:12:11:12:18 | endpoint | fileImports | foo lib1 lib2 lib3 |
9191
| test.js:13:17:13:24 | endpoint | CalleeFlexibleAccessPath | o.m().m().m |
@@ -96,9 +96,9 @@
9696
| test.js:13:17:13:24 | endpoint | calleeApiName | lib2 |
9797
| test.js:13:17:13:24 | endpoint | calleeImports | ? lib2 |
9898
| test.js:13:17:13:24 | endpoint | calleeName | m |
99-
| test.js:13:17:13:24 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
99+
| test.js:13:17:13:24 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
100100
| test.js:13:17:13:24 | endpoint | contextSurroundingFunctionParameters | () |
101-
| test.js:13:17:13:24 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
101+
| test.js:13:17:13:24 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
102102
| test.js:13:17:13:24 | endpoint | enclosingFunctionName | |
103103
| test.js:13:17:13:24 | endpoint | fileImports | foo lib1 lib2 lib3 |
104104
| test.js:14:9:14:16 | endpoint | CalleeFlexibleAccessPath | f() |
@@ -108,9 +108,9 @@
108108
| test.js:14:9:14:16 | endpoint | calleeAccessPathWithStructuralInfo | lib3 instanceorreturn instanceorreturn |
109109
| test.js:14:9:14:16 | endpoint | calleeApiName | lib3 |
110110
| test.js:14:9:14:16 | endpoint | calleeImports | ? lib3 |
111-
| test.js:14:9:14:16 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
111+
| test.js:14:9:14:16 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
112112
| test.js:14:9:14:16 | endpoint | contextSurroundingFunctionParameters | () |
113-
| test.js:14:9:14:16 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
113+
| test.js:14:9:14:16 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
114114
| test.js:14:9:14:16 | endpoint | enclosingFunctionName | |
115115
| test.js:14:9:14:16 | endpoint | fileImports | foo lib1 lib2 lib3 |
116116
| test.js:15:12:15:19 | endpoint | CalleeFlexibleAccessPath | o.?.m |
@@ -121,9 +121,9 @@
121121
| test.js:15:12:15:19 | endpoint | calleeApiName | lib2 |
122122
| test.js:15:12:15:19 | endpoint | calleeImports | ? lib2 |
123123
| test.js:15:12:15:19 | endpoint | calleeName | m |
124-
| test.js:15:12:15:19 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
124+
| test.js:15:12:15:19 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
125125
| test.js:15:12:15:19 | endpoint | contextSurroundingFunctionParameters | () |
126-
| test.js:15:12:15:19 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
126+
| test.js:15:12:15:19 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
127127
| test.js:15:12:15:19 | endpoint | enclosingFunctionName | |
128128
| test.js:15:12:15:19 | endpoint | fileImports | foo lib1 lib2 lib3 |
129129
| test.js:16:16:16:23 | endpoint | CalleeFlexibleAccessPath | o.m.?.p.m |
@@ -134,9 +134,9 @@
134134
| test.js:16:16:16:23 | endpoint | calleeApiName | lib2 |
135135
| test.js:16:16:16:23 | endpoint | calleeImports | ? lib2 |
136136
| test.js:16:16:16:23 | endpoint | calleeName | m |
137-
| test.js:16:16:16:23 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
137+
| test.js:16:16:16:23 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
138138
| test.js:16:16:16:23 | endpoint | contextSurroundingFunctionParameters | () |
139-
| test.js:16:16:16:23 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
139+
| test.js:16:16:16:23 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
140140
| test.js:16:16:16:23 | endpoint | enclosingFunctionName | |
141141
| test.js:16:16:16:23 | endpoint | fileImports | foo lib1 lib2 lib3 |
142142
| test.js:17:15:17:22 | endpoint | CalleeFlexibleAccessPath | (await p) |
@@ -146,9 +146,9 @@
146146
| test.js:17:15:17:22 | endpoint | calleeAccessPathWithStructuralInfo | lib1 member p instanceorreturn |
147147
| test.js:17:15:17:22 | endpoint | calleeApiName | lib1 |
148148
| test.js:17:15:17:22 | endpoint | calleeImports | lib1 |
149-
| test.js:17:15:17:22 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
149+
| test.js:17:15:17:22 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
150150
| test.js:17:15:17:22 | endpoint | contextSurroundingFunctionParameters | () |
151-
| test.js:17:15:17:22 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
151+
| test.js:17:15:17:22 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
152152
| test.js:17:15:17:22 | endpoint | enclosingFunctionName | |
153153
| test.js:17:15:17:22 | endpoint | fileImports | foo lib1 lib2 lib3 |
154154
| test.js:18:27:18:34 | endpoint | CalleeFlexibleAccessPath | import(!).bar.baz |
@@ -159,9 +159,9 @@
159159
| test.js:18:27:18:34 | endpoint | calleeApiName | foo |
160160
| test.js:18:27:18:34 | endpoint | calleeImports | foo |
161161
| test.js:18:27:18:34 | endpoint | calleeName | baz |
162-
| test.js:18:27:18:34 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
162+
| test.js:18:27:18:34 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
163163
| test.js:18:27:18:34 | endpoint | contextSurroundingFunctionParameters | () |
164-
| test.js:18:27:18:34 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
164+
| test.js:18:27:18:34 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
165165
| test.js:18:27:18:34 | endpoint | enclosingFunctionName | |
166166
| test.js:18:27:18:34 | endpoint | fileImports | foo lib1 lib2 lib3 |
167167
| test.js:20:13:20:20 | endpoint | CalleeFlexibleAccessPath | bar |
@@ -172,9 +172,9 @@
172172
| test.js:20:13:20:20 | endpoint | calleeApiName | lib1 |
173173
| test.js:20:13:20:20 | endpoint | calleeImports | lib1 |
174174
| test.js:20:13:20:20 | endpoint | calleeName | bar |
175-
| test.js:20:13:20:20 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
175+
| test.js:20:13:20:20 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
176176
| test.js:20:13:20:20 | endpoint | contextSurroundingFunctionParameters | () |
177-
| test.js:20:13:20:20 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
177+
| test.js:20:13:20:20 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
178178
| test.js:20:13:20:20 | endpoint | enclosingFunctionName | |
179179
| test.js:20:13:20:20 | endpoint | fileImports | foo lib1 lib2 lib3 |
180180
| test.js:22:21:22:28 | endpoint | InputArgumentIndex | 0 |
@@ -183,8 +183,8 @@
183183
| test.js:22:21:22:28 | endpoint | calleeAccessPathWithStructuralInfo | lib3 instanceorreturn |
184184
| test.js:22:21:22:28 | endpoint | calleeApiName | lib3 |
185185
| test.js:22:21:22:28 | endpoint | calleeImports | ? lib2 lib3 |
186-
| test.js:22:21:22:28 | endpoint | contextFunctionInterfacesInFile | f(?)\nfoo()\ng()\nm() |
186+
| test.js:22:21:22:28 | endpoint | contextFunctionInterfaces | f(?)\nfoo()\ng()\nm() |
187187
| test.js:22:21:22:28 | endpoint | contextSurroundingFunctionParameters | () |
188-
| test.js:22:21:22:28 | endpoint | enclosingFunctionBody | f endpoint f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
188+
| test.js:22:21:22:28 | endpoint | enclosingFunctionBody | f endpoint 12 f p endpoint f p q endpoint o m endpoint o m p endpoint o m p q endpoint F endpoint o m m m endpoint f endpoint o x m endpoint o m x p m endpoint p endpoint foo bar baz endpoint foo bar endpoint f f o m endpoint |
189189
| test.js:22:21:22:28 | endpoint | enclosingFunctionName | |
190190
| test.js:22:21:22:28 | endpoint | fileImports | foo lib1 lib2 lib3 |

javascript/ql/experimental/adaptivethreatmodeling/test/generic_feature_testing/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as o from 'lib2';
33
const f = require('lib3');
44

55
(async function () {
6-
f(endpoint);
6+
f(endpoint, 12);
77
f({p: endpoint});
88
f({p: {q: endpoint}});
99
o.m(endpoint);

0 commit comments

Comments
 (0)