Skip to content

Commit a3b21ad

Browse files
erik-kroghasgerf
andauthored
Apply suggestions from code review
Co-authored-by: Asger F <[email protected]>
1 parent cc1d797 commit a3b21ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Performance/ReDoS.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,11 @@ predicate isPumpable(State fork, string w) {
871871
* This assumption breaks on regular expression that use the anchor `$`, e.g: `/^(a+)+$/`, and such regular
872872
* expression are not accurately modeled by this query.
873873
*
874-
* The the string `w` is repeated any number of times because the string `w` needs to be
874+
* The string `w` is repeated any number of times because it needs to be
875875
* infinitely repeatedable for the attack to work.
876876
* For a regular expression `/((ab)+)*abab/` the accepting state is not reachable from the fork
877877
* using epsilon transitions. But any attempt at repeating `w` will end in the accepting state.
878-
* This is also build on the assumption that any accepting state will accept all suffixes.
878+
* This also relies on the assumption that any accepting state will accept all suffixes.
879879
*/
880880
State process(State fork, string w, int i) {
881881
isPumpable(fork, w) and

0 commit comments

Comments
 (0)