Skip to content

Commit 712805f

Browse files
committed
add a!=b to the overlap predicate
1 parent 592464d commit 712805f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ predicate isAlphanumeric(string char) {
4242
predicate overlap(RegExpCharacterRange a, RegExpCharacterRange b) {
4343
exists(RegExpCharacterClass clz |
4444
a = clz.getAChild() and
45-
b = clz.getAChild()
45+
b = clz.getAChild() and
46+
a != b
4647
|
4748
exists(int alow, int ahigh, int blow, int bhigh |
4849
isRange(a, alow, ahigh) and

0 commit comments

Comments
 (0)