Skip to content

Commit 318a60b

Browse files
authored
Merge pull request github#13456 from asgerf/js/vuex-perf
JS: Restrict length of state path in vuex model
2 parents 4d2e304 + 22b98c8 commit 318a60b

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ module Vuex {
289289
or
290290
exists(string base, string prop |
291291
result = stateRefByAccessPath(base).getMember(prop) and
292-
path = appendToNamespace(base, prop)
292+
path = appendToNamespace(base, prop) and
293+
path.length() < 100
293294
)
294295
}
295296

0 commit comments

Comments
 (0)