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

Panic on some regex patterns #253

Closed
Stranger6667 opened this issue Jul 23, 2021 · 0 comments · Fixed by #268
Closed

Panic on some regex patterns #253

Stranger6667 opened this issue Jul 23, 2021 · 0 comments · Fixed by #268

Comments

@Stranger6667
Copy link
Owner

On {"pattern": "\\u"}, schema compilation panics with:

thread 'main' panicked at 'index out of bounds: the len is 2 but the index is 2', /home/stranger6667/.cargo/registry/src/github.com-1ecc6299db9ec823/fancy-regex-0.6.0/src/parse.rs:394:17

Though, it seems like an issue with fancy-regex itself as it takes ix'th byte without checking the bounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant