Skip to content

Commit 6b5cd9a

Browse files
committed
use RegExpTreeView insteaed of RegexTreeView in JS
1 parent f9b775e commit 6b5cd9a

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

javascript/ql/lib/semmle/javascript/security/BadTagFilterQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Provides predicates for reasoning about bad tag filter vulnerabilities.
33
*/
44

5-
private import regexp.RegexTreeView::RegexTreeView as TreeView
5+
private import regexp.RegExpTreeView::RegExpTreeView as TreeView
66
// BadTagFilterQuery should be used directly from the shared pack, and not from this file.
77
deprecated private import codeql.regex.nfa.BadTagFilterQuery::Make<TreeView> as Dep
88
import Dep

javascript/ql/lib/semmle/javascript/security/IncompleteMultiCharacterSanitizationSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import javascript
6-
private import semmle.javascript.security.regexp.RegexTreeView::RegexTreeView as TreeView
6+
private import semmle.javascript.security.regexp.RegExpTreeView::RegExpTreeView as TreeView
77
import codeql.regex.nfa.NfaUtils::Make<TreeView> as NfaUtils
88

99
class StringSubstitutionCall = StringReplaceCall;

javascript/ql/lib/semmle/javascript/security/OverlyLargeRangeQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Classes and predicates for working with suspicious character ranges.
33
*/
44

5-
private import regexp.RegexTreeView::RegexTreeView as TreeView
5+
private import regexp.RegExpTreeView::RegExpTreeView as TreeView
66
// OverlyLargeRangeQuery should be used directly from the shared pack, and not from this file.
77
deprecated private import codeql.regex.OverlyLargeRangeQuery::Make<TreeView> as Dep
88
import Dep

javascript/ql/lib/semmle/javascript/security/regexp/ExponentialBackTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* a suffix `x` (possible empty) that is most likely __not__ accepted.
6363
*/
6464

65-
private import RegexTreeView::RegexTreeView as TreeView
65+
private import RegExpTreeView::RegExpTreeView as TreeView
6666
// ExponentialBackTracking should be used directly from the shared pack, and not from this file.
6767
deprecated private import codeql.regex.nfa.ExponentialBackTracking::Make<TreeView> as Dep
6868
import Dep

javascript/ql/lib/semmle/javascript/security/regexp/NfaUtils.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* other queries that benefit from reasoning about NFAs.
88
*/
99

10-
private import RegexTreeView::RegexTreeView as TreeView
10+
private import RegExpTreeView::RegExpTreeView as TreeView
1111
// NfaUtils should be used directly from the shared pack, and not from this file.
1212
deprecated private import codeql.regex.nfa.NfaUtils::Make<TreeView> as Dep
1313
import Dep

javascript/ql/lib/semmle/javascript/security/regexp/PolynomialReDoSCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import javascript
8-
private import semmle.javascript.security.regexp.RegexTreeView::RegexTreeView as TreeView
8+
private import semmle.javascript.security.regexp.RegExpTreeView::RegExpTreeView as TreeView
99

1010
/** Module containing sources, sinks, and sanitizers for polynomial regular expression denial-of-service attacks. */
1111
module PolynomialReDoS {

javascript/ql/lib/semmle/javascript/security/regexp/RegexTreeView.qll renamed to javascript/ql/lib/semmle/javascript/security/regexp/RegExpTreeView.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ private import codeql.regex.nfa.NfaUtils as NfaUtils
66
private import codeql.regex.RegexTreeView
77

88
/** An implementation that parses a regular expression into a tree of `RegExpTerm`s. */
9-
module RegexTreeView implements RegexTreeViewSig {
9+
module RegExpTreeView implements RegexTreeViewSig {
1010
import javascript
1111

1212
class Top = Locatable;

javascript/ql/lib/semmle/javascript/security/regexp/RegexpMatching.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* and for testing which capture groups are filled when a particular regexp matches a string.
44
*/
55

6-
private import RegexTreeView::RegexTreeView as TreeView
6+
private import RegExpTreeView::RegExpTreeView as TreeView
77
// RegexpMatching should be used directly from the shared pack, and not from this file.
88
deprecated private import codeql.regex.nfa.RegexpMatching::Make<TreeView> as Dep
99
import Dep

javascript/ql/lib/semmle/javascript/security/regexp/SuperlinearBackTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* It also doesn't find all transitions in the product automaton, which can cause false negatives.
3636
*/
3737

38-
private import RegexTreeView::RegexTreeView as TreeView
38+
private import RegExpTreeView::RegExpTreeView as TreeView
3939
// SuperlinearBackTracking should be used directly from the shared pack, and not from this file.
4040
deprecated private import codeql.regex.nfa.SuperlinearBackTracking::Make<TreeView> as Dep
4141
import Dep

javascript/ql/src/Performance/ReDoS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import javascript
18-
private import semmle.javascript.security.regexp.RegexTreeView::RegexTreeView as TreeView
18+
private import semmle.javascript.security.regexp.RegExpTreeView::RegExpTreeView as TreeView
1919
import codeql.regex.nfa.ExponentialBackTracking::Make<TreeView>
2020

2121
from RegExpTerm t, string pump, State s, string prefixMsg

0 commit comments

Comments
 (0)