Skip to content

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