-
Notifications
You must be signed in to change notification settings - Fork 74
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
Stackoverflow due to recursion when generating strings for non whitespace characters #26
Comments
Actually I was able to reproduce the same bug with the Xeger library, so I tend to assume that the problem is in fact related to the underlying |
I am also seeing a StackOverflowError when trying to generated |
@mifmif we also have this issue, it is a blocker... |
Stack trace:
|
Sometimes I'm getting a recursion stackoverflow exception when I generate strings for:
new Generex("\\S+_a+/").random()
You can reproduce this by running the code above 100k times or so.
I tried playing around with this:
\\S
with[^ \t\n\f\r]
or even[^ \n]
- FAIL\\S
with\\W
or\\D
- OK/
at the end of the expression - OK_
- OKI can't make sense of it. I'm guessing it's something to do with some UTF-8 character (though why would it work well with
\\W
?The text was updated successfully, but these errors were encountered: