ansi-to-react icon indicating copy to clipboard operation
ansi-to-react copied to clipboard

Catastrophic backtracking regex condition

Open tregoning opened this issue 3 years ago • 0 comments

Looks like the current linkify regular expression does not handle well strings with a significant number of whitespaces characters in a row (potentially a Catastrophic backtracking regex condition / ReDoS?)

Here is a reduced test case that replicates the root issue showing the potential regex fix and the current regex crashing

tregoning avatar Jul 18 '21 01:07 tregoning