Skip to content

Commit 52a3e3c

Browse files
committed
spelling: heuristic
Signed-off-by: Josh Soref <[email protected]>
1 parent d0866c1 commit 52a3e3c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

java/ql/lib/semmle/code/java/security/regexp/ExponentialBackTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private predicate isFork(State q, InputSymbol s1, InputSymbol s2, State r1, Stat
202202
//
203203
// We additionally require that the there exists another InfiniteRepetitionQuantifier `mid` on the path from `q` to itself.
204204
// This is done to avoid flagging regular expressions such as `/(a?)*b/` - that only has polynomial runtime, and is detected by `js/polynomial-redos`.
205-
// The below code is therefore a heuritic, that only flags regular expressions such as `/(a*)*b/`,
205+
// The below code is therefore a heuristic, that only flags regular expressions such as `/(a*)*b/`,
206206
// and does not flag regular expressions such as `/(a?b?)c/`, but the latter pattern is not used frequently.
207207
r1 = r2 and
208208
q1 = q2 and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private predicate isFork(State q, InputSymbol s1, InputSymbol s2, State r1, Stat
202202
//
203203
// We additionally require that the there exists another InfiniteRepetitionQuantifier `mid` on the path from `q` to itself.
204204
// This is done to avoid flagging regular expressions such as `/(a?)*b/` - that only has polynomial runtime, and is detected by `js/polynomial-redos`.
205-
// The below code is therefore a heuritic, that only flags regular expressions such as `/(a*)*b/`,
205+
// The below code is therefore a heuristic, that only flags regular expressions such as `/(a*)*b/`,
206206
// and does not flag regular expressions such as `/(a?b?)c/`, but the latter pattern is not used frequently.
207207
r1 = r2 and
208208
q1 = q2 and

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private predicate isFork(State q, InputSymbol s1, InputSymbol s2, State r1, Stat
202202
//
203203
// We additionally require that the there exists another InfiniteRepetitionQuantifier `mid` on the path from `q` to itself.
204204
// This is done to avoid flagging regular expressions such as `/(a?)*b/` - that only has polynomial runtime, and is detected by `js/polynomial-redos`.
205-
// The below code is therefore a heuritic, that only flags regular expressions such as `/(a*)*b/`,
205+
// The below code is therefore a heuristic, that only flags regular expressions such as `/(a*)*b/`,
206206
// and does not flag regular expressions such as `/(a?b?)c/`, but the latter pattern is not used frequently.
207207
r1 = r2 and
208208
q1 = q2 and

ruby/ql/lib/codeql/ruby/security/regexp/ExponentialBackTracking.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private predicate isFork(State q, InputSymbol s1, InputSymbol s2, State r1, Stat
202202
//
203203
// We additionally require that the there exists another InfiniteRepetitionQuantifier `mid` on the path from `q` to itself.
204204
// This is done to avoid flagging regular expressions such as `/(a?)*b/` - that only has polynomial runtime, and is detected by `js/polynomial-redos`.
205-
// The below code is therefore a heuritic, that only flags regular expressions such as `/(a*)*b/`,
205+
// The below code is therefore a heuristic, that only flags regular expressions such as `/(a*)*b/`,
206206
// and does not flag regular expressions such as `/(a?b?)c/`, but the latter pattern is not used frequently.
207207
r1 = r2 and
208208
q1 = q2 and

0 commit comments

Comments
 (0)