-
Notifications
You must be signed in to change notification settings - Fork 15
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
Empty concat causes vector error #26
Comments
Wow... how did you even find this example? :) We can rewrite these cases to |
Well, as you can imagine, I was using Z3 to construct a full proof of correctness of the code... Uh, no. It was basically just stupidity and/or luck. I think I wasn't yet sure how to specify an empty match. With that said, I suppose a simple tester that enumerates all small SREs might well have found it. XSmith, maybe? Dunno. |
It looks like somehow the states corresponding to the second
|
OK, turned out to be a pretty simple fix |
Could you review it @ashinn, just to make sure it is indeed the correct fix? |
…nces-in-or Fix #26 by taking the max of the inserted state numbers
Using an empty concatenation as part of an SRE pattern can cause an out-of-range vector reference.
(irregex-search '(or (:) "was") "abc")
The text was updated successfully, but these errors were encountered: