4 ms·
I learned about ReDoS through a PostgreSQL bug. On an old pg version(9.4.5), the following regex expression made pg hang in an infinite loop. select 'anystri
by steve-chavez 6y ago
I learned about ReDoS through a PostgreSQL bug. On an old pg version(9.4.5), the following regex expression made pg hang in an infinite loop.
select 'anystring' ~ '($^)+';
Of course that was patched a long time ago, but since then I've avoided exposing regex functionality to end users.