8000 move RemoteFlowSource into it's own cached layer, to minimize re-eval… · github/codeql@938983d · GitHub
[go: up one dir, main page]

Skip to content

Commit 938983d

Browse files
committed
move RemoteFlowSource into it's own cached layer, to minimize re-evaluation of cached layer
1 parent f132cf2 commit 938983d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

javascript/ql/lib/semmle/javascript/internal/CachedStages.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ module Stages {
312312
or
313313
TaintTracking::heapStep(_, _)
314314
or
315-
exists(RemoteFlowSource r)
316-
or
317315
exists(Exports::getALibraryInputParameter())
318316
or
319317
any(RegExpTerm t).isUsedAsRegExp()

javascript/ql/lib/semmle/javascript/security/dataflow/RemoteFlowSources.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import javascript
66
import semmle.javascript.frameworks.HTTP
77
import semmle.javascript.security.dataflow.DOM
8-
private import semmle.javascript.internal.CachedStages
98

109
cached
1110
private module Cached {
@@ -173,7 +172,7 @@ private class ExternalRemoteFlowSourceSpecEntryPoint extends API::EntryPoint {
173172
private class ExternalRemoteFlowSource extends RemoteFlowSource {
174173
RemoteFlowSourceAccessPath ap;
175174

176-
ExternalRemoteFlowSource() { Stages::Taint::ref() and this = ap.resolve().asSource() }
175+
ExternalRemoteFlowSource() { this = ap.resolve().asSource() }
177176

178177
override string getSourceType() { result = ap.getSourceType() }
179178
}

0 commit comments

Comments
 (0)
0