Python: Prevent explosion in poly-ReDoS query · github/codeql@af91a2d · GitHub
Skip to content

Commit af91a2d

Browse files
authored
Python: Prevent explosion in poly-ReDoS query
I consider this to be a short-term solution to the performance problems we identified. The choice of "at most ten occurrences of `.*`" is somewhat arbitrary, and it's possible a higher limit would work just as well.
1 parent 92804a3 commit af91a2d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎python/ql/src/semmle/python/security/performance/RegExpTreeView.qll‎

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)