Skip to content

Commit d99bb54

Browse files
authored
Fix and verify Vue flow summaries
1 parent dc15554 commit d99bb54

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

javascript/ql/lib/semmle/javascript/frameworks/Vue.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module Vue {
3636
}
3737

3838
/** Models data flow through Vue Composition API helpers. */
39+
overlay[local?]
3940
private class VueCompositionApiSummary extends DataFlow::SummarizedCallable::Range {
4041
string name;
4142

javascript/ql/test/library-tests/frameworks/Vue/tests.expected

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,13 @@ threatModelSource
248248
| single-file-component-6.vue:5:11:5:15 | input | view-component-input |
249249
| single-file-component-7.vue:5:11:5:15 | input | view-component-input |
250250
| single-file-component-8.vue:5:11:5:15 | input | view-component-input |
251+
compositionApiDataFlow
252+
| tst.js:119:14:119:26 | source("ref") | tst.js:119:6:119:33 | Vue.ref ... ).value |
253+
| tst.js:120:21:120:40 | source("shallowRef") | tst.js:120:6:120:47 | Vue.sha ... ).value |
254+
| tst.js:123:25:123:42 | source("computed") | tst.js:123:6:123:49 | Vue.com ... ).value |
255+
compositionApiTaintFlow
256+
| tst.js:119:14:119:26 | source("ref") | tst.js:119:6:119:33 | Vue.ref ... ).value |
257+
| tst.js:120:21:120:40 | source("shallowRef") | tst.js:120:6:120:47 | Vue.sha ... ).value |
258+
| tst.js:121:16:121:30 | source("toRef") | tst.js:121:6:121:37 | Vue.toR ... ).value |
259+
| tst.js:122:19:122:36 | source("reactive") | tst.js:122:6:122:37 | Vue.rea ... tive")) |
260+
| tst.js:123:25:123:42 | source("computed") | tst.js:123:6:123:49 | Vue.com ... ).value |

0 commit comments

Comments
 (0)