diff --git a/java/ql/src/Security/CWE/CWE-730/PolynomialReDoS.qhelp b/java/ql/src/Security/CWE/CWE-730/PolynomialReDoS.qhelp index dbb1f4c37f59..5a56343420a0 100644 --- a/java/ql/src/Security/CWE/CWE-730/PolynomialReDoS.qhelp +++ b/java/ql/src/Security/CWE/CWE-730/PolynomialReDoS.qhelp @@ -15,8 +15,7 @@
@@ -71,8 +70,7 @@
@@ -103,6 +101,33 @@
+
+ Sometimes it is unclear how a regular expression can be rewritten to
+ avoid the problem. In such cases, it often suffices to limit the
+ length of the input string. For instance, the following
+ regular expression is used to match numbers, and on some non-number
+ inputs it can have quadratic time complexity:
+
+ It is not immediately obvious how to rewrite this regular expression
+ to avoid the problem. However, you can mitigate performance issues by limiting the length
+ to 1000 characters, which will always finish in a reasonable amount
+ of time.
+
@@ -71,8 +70,7 @@
@@ -103,6 +101,33 @@
+
+ Sometimes it is unclear how a regular expression can be rewritten to
+ avoid the problem. In such cases, it often suffices to limit the
+ length of the input string. For instance, the following
+ regular expression is used to match numbers, and on some non-number
+ inputs it can have quadratic time complexity:
+
+ It is not immediately obvious how to rewrite this regular expression
+ to avoid the problem. However, you can mitigate performance issues by limiting the length
+ to 1000 characters, which will always finish in a reasonable amount
+ of time.
+
@@ -71,8 +70,7 @@
@@ -103,6 +101,32 @@
+
+ Sometimes it is unclear how a regular expression can be rewritten to
+ avoid the problem. In such cases, it often suffices to limit the
+ length of the input string. For instance, the following
+ regular expression is used to match numbers, and on some non-number
+ inputs it can have quadratic time complexity:
+
+ It is not immediately obvious how to rewrite this regular expression
+ to avoid the problem. However, you can mitigate performance issues by limiting the length
+ to 1000 characters, which will always finish in a reasonable amount
+ of time.
+
@@ -74,8 +73,7 @@
@@ -108,6 +106,33 @@
+
+ Sometimes it is unclear how a regular expression can be rewritten to
+ avoid the problem. In such cases, it often suffices to limit the
+ length of the input string. For instance, the following
+ regular expression is used to match numbers, and on some non-number
+ inputs it can have quadratic time complexity:
+
+ It is not immediately obvious how to rewrite this regular expression
+ to avoid the problem. However, you can mitigate performance issues by limiting the length
+ to 1000 characters, which will always finish in a reasonable amount
+ of time.
+