Skip to content

Commit 64227c9

Browse files
Fix codescanning alerts
1 parent c7d3008 commit 64227c9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

java/ql/src/Security/CWE/CWE-730/PolynomialReDoS.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* to match may be vulnerable to denial-of-service attacks.
55
* @kind path-problem
66
* @problem.severity warning
7+
* @security-severity 7.5
78
* @precision high
89
* @id java/polynomial-redos
910
* @tags security

java/ql/src/Security/CWE/CWE-730/ReDoS.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* attacks.
66
* @kind problem
77
* @problem.severity error
8+
* @security-severity 7.5
89
* @precision high
910
* @id java/redos
1011
* @tags security

java/ql/test/query-tests/security/CWE-730/PolynomialReDoS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import semmle.code.java.security.performance.PolynomialReDoSQuery
55
class HasPolyRedos extends InlineExpectationsTest {
66
HasPolyRedos() { this = "HasPolyRedos" }
77

8-
override string getARelevantTag() { result = ["hasPolyRedos"] }
8+
override string getARelevantTag() { result = "hasPolyRedos" }
99

1010
override predicate hasActualResult(Location location, string element, string tag, string value) {
1111
tag = "hasPolyRedos" and

0 commit comments

Comments
 (0)