Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing locked up on regexp #201

Closed
toots opened this issue Dec 3, 2021 · 0 comments
Closed

Processing locked up on regexp #201

toots opened this issue Dec 3, 2021 · 0 comments

Comments

@toots
Copy link

toots commented Dec 3, 2021

The following creates a process lock:

let rex = Re.Pcre.regexp "^ *";;
Re.Pcre.substitute ~rex ~subst:(fun _ -> "") "Condition which should be satisfied.";;

I understand that the * should most likely be escaped but:

  • Other implementations accept this regexp as valid. Similar issue as in Parse error #200
  • The library should obviously not stall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant