Skip to content

Commit a0f8e28

Browse files
committed
JS: Accept a fixed FN
1 parent 1fcebce commit a0f8e28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • javascript/ql/test/query-tests/Security/CWE-400/ReDoS

javascript/ql/test/query-tests/Security/CWE-400/ReDoS/tst.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ var good28 = /foo([\uDC66\uDC67]|[\uDC68\uDC69])*foo/
216216

217217
var good29 = /foo((\uDC66|\uDC67)|(\uDC68|\uDC69))*foo/
218218

219-
var bad62 = /a{2,3}(b+)+X/; // $ MISSING: Alert - cannot currently construct a prefix
219+
var bad62 = /a{2,3}(b+)+X/; // $ Alert[js/redos]
220220

221221
var bad63 = /^<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/; // $ Alert[js/redos] - and a good prefix test
222222

0 commit comments

Comments
 (0)