mirror of
https://github.com/github/codeql.git
synced 2026-07-23 04:02:07 +02:00
646 B
646 B
category
| category |
|---|
| minorAnalysis |
- The C++ ReDoS queries (
cpp/redosandcpp/polynomial-redos) now treat regexes constructed with thestd::regex_constants::awk,grep, oregrepgrammar flags as non-backtracking, and exclude them from analysis. These POSIX tool-style grammars correspond to traditionally linear-time (DFA-based) matching semantics, so super-linear-backtracking ReDoS does not apply. Thebasic(BRE) andextended(ERE) grammars remain backtracking-eligible. Grammar selection and ReDoS-eligibility are exposed as independent axes via the newisBacktrackingEnginepredicate insemmle.code.cpp.regex.RegexFlowConfigs.