github-code-scanning[bot] commented on code in PR #24045:
URL: https://github.com/apache/superset/pull/24045#discussion_r1192480611
##########
superset/sql_parse.py:
##########
@@ -64,7 +64,7 @@
sqlparse.keywords.SQL_REGEX.insert(
0,
(
- re.compile(r"'(''|\\\\|\\|[^'])*'", sqlparse.keywords.FLAGS).match,
+ re.compile(r"'(''|\\\\|\\|[^'])*'", re.IGNORECASE | re.UNICODE).match,
Review Comment:
## Inefficient regular expression
This part of the regular expression may cause exponential backtracking on
strings starting with ''' and containing many repetitions of '\\'.
[Show more
details](https://github.com/apache/superset/security/code-scanning/1201)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]