You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] caja-html-sanitizer: avoid catastrophic backtracking in lexCss
The caja-html-sanitizer uses a complex regular expression to tokenize
CSS styles before parsing and sanitizing them. That regular expression
contains a sub-expression that allows alternative interpretations of
arbitrarily long input sequences and therefore might cause extensive
backtracking (see googlearchive/caja#2037 ).
To prevent this, the corresponding sub-expression has been rewritten to
simulate an atomic group (or possessive quantifier) as described in
https://instanceof.me/post/52245507631/regex-emulate-atomic-grouping-with-lookahead.
Change-Id: Ia9e8e038d8b4cf5a7cf2684a14877fc08bf1be80
CR-Id: 002075125800001440612020
BCP: 002075129500001766652020
0 commit comments