port the Python regex/redos queries to use the shared pack

This commit is contained in:
erik-krogh
2022-11-01 12:08:19 +01:00
parent 05605480ae
commit 4f11e2d25f
13 changed files with 39 additions and 2665 deletions

View File

@@ -1,5 +1,6 @@
import python
import semmle.python.security.regexp.SuperlinearBackTracking
private import semmle.python.RegexTreeView::RegexTreeView as TreeView
import codeql.regex.nfa.SuperlinearBackTracking::Make<TreeView>
from PolynomialBackTrackingTerm t
select t.getRegex(), t, t.getReason()
select t.(TreeView::RegExpTerm).getRegex(), t, t.getReason()