Skip to content

Commit 44571ff

Browse files
committed
use the full ascii set instead of a few chosen chars
1 parent 303408b commit 44571ff

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/src/semmle/javascript/security/performance

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ private module SuffixConstruction {
915915
*/
916916
pragma[noinline]
917917
private string relevant(RegExpRoot root) {
918-
result = ["a", "9", " ", "|", "\n", "Z"] // must include all the strings from `hasSimpleRejectEdge`.
918+
exists(ascii(result))
919919
or
920920
exists(InputSymbol s | belongsTo(s, root) | result = intersect(s, _))
921921
}

0 commit comments

Comments
 (0)