Zum Inhalt springen

Regex DoS (ARCH8135)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key kotlin.security.regex-dos · Severity warning · Category security · CWE CWE-1333

Flags regex literals with nested quantifiers ((a+)+, (\w*)*) that backtrack catastrophically on crafted input.

Regex("(a+)+$")
Regex("a+$")

Rewrite the pattern without nested quantifiers, or bound the input length.