alacritty/alacritty_terminal
Christian Duerr e35e5ad14f
Fix regex memory usage
This fixes an issue where regexes with a large number of possible states
would consume excessive memory, since the entire DFA was compiled ahead
of time.

To solve this, the DFA is now built at runtime using `regex-automata`'s
hybrid DFA.

There are however still some checks performed ahead of time, causing
errors with obscenely large regexes (`[0-9A-Za-z]{999999999}`), which
shouldn't cause any issues.

A regex which is large, but not large enough to fail the NFA
construction (like `[0-9A-Za-z]{999999}`) will cause a long search of
the entire grid, but will complete and show the match.

Closes #7097.
2023-09-17 13:04:05 +04:00
..
src Fix regex memory usage 2023-09-17 13:04:05 +04:00
tests Switch to VTE's built-in ansi feature 2023-05-23 20:35:58 +00:00
Cargo.toml Update regex-automata to v0.3.6 2023-08-27 16:48:55 +00:00
LICENSE-APACHE Add license symlinks for crates 2020-10-17 14:47:51 +00:00