We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re2
re
The Python re module is vulnerable to polynomial runtime due to backtracking. Detailed information can be found on Sonarcloud: https://sonarcloud.io/organizations/dsd-dbs/rules?open=python%3AS5852&rule_key=python%3AS5852
Especially, this line of code can lead to DOS attacks: res = re.search(r"(?s:.*)^---(.*?)---$", logs, re.MULTILINE)
res = re.search(r"(?s:.*)^---(.*?)---$", logs, re.MULTILINE)
One solution is to use re2 instead: https://github.com/google/re2
The text was updated successfully, but these errors were encountered:
MoritzWeber0
Successfully merging a pull request may close this issue.
The Python
re
module is vulnerable to polynomial runtime due to backtracking.Detailed information can be found on Sonarcloud: https://sonarcloud.io/organizations/dsd-dbs/rules?open=python%3AS5852&rule_key=python%3AS5852
Especially, this line of code can lead to DOS attacks:
res = re.search(r"(?s:.*)^---(.*?)---$", logs, re.MULTILINE)
One solution is to use re2 instead: https://github.com/google/re2
The text was updated successfully, but these errors were encountered: