CodeQL library for C#
codeql/csharp-all 0.9.0 (changelog, source)
Search

Predicate isExponentialRegex

An expression that represents a regular expression with potential exponential behavior.

Import path

import semmle.code.csharp.security.dataflow.ReDoSQuery
predicate isExponentialRegex(StringLiteral s)