Skip to content

[5.7] Don't assume quoted literals are non-empty during bytecodegen #601

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

Merged

Conversation

rctcwyvrn
Copy link
Contributor

When given an empty quoted literal (ie \Q\E) the regex engine crashes while attempting an optimization which assumes that the input is non-empty

Cherry pick of #600
rdar://98691039

@milseman milseman changed the title Don't assume quoted literals are non-empty during bytecodegen [5.7] Don't assume quoted literals are non-empty during bytecodegen Aug 16, 2022
@stephentyrone stephentyrone merged commit c5212e0 into swiftlang:swift/release/5.7 Aug 25, 2022
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

Successfully merging this pull request may close these issues.

2 participants