-
Notifications
You must be signed in to change notification settings - Fork 443
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
Regex::is_match panics after successful creation with regex 0.2.4 #437
Comments
BurntSushi
added a commit
that referenced
this issue
Dec 31, 2017
The TBM implementation tripped an assertion in debug mode if its haystack was smaller than its query. This is incorrect. The correct behavior is for TBM to report that no match can be found. Fixes #437
Merged
Gah. Sorry. This was an oversight on my part. Fix incoming in #438. I'll get a new release out once that's merged. |
BurntSushi
added a commit
that referenced
this issue
Dec 31, 2017
The TBM implementation tripped an assertion in debug mode if its haystack was smaller than its query. This is incorrect. The correct behavior is for TBM to report that no match can be found. Fixes #437
|
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ran into this while building a dependency which uses bindgen. Seems the issue is with the regex at https://github.com/rust-lang-nursery/rust-bindgen/blob/04591f01d96a5c05e690dcf49d19d8e003eac7bf/src/clang.rs#L1060.
Reproduction:
Error:
Occurs with regex 0.2.4 on x86_64 linux, works fine with regex 0.2.3.
Thanks!
The text was updated successfully, but these errors were encountered: