mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Java: Add test case.
This commit is contained in:
@@ -86,6 +86,9 @@ class ExpRedosTest {
|
||||
// NOT GOOD; attack: "\n".repeat(100) + "."
|
||||
"(?s)(.|\\n)*!", // $ hasExpRedos
|
||||
|
||||
// NOT GOOD; attack: "\n".repeat(100) + "."
|
||||
"(?is)(.|\\n)*!", // $ MISSING: hasExpRedos
|
||||
|
||||
// GOOD
|
||||
"([\\w.]+)*",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user