Skip to content

[5.0][SourceKit] Add defensive guard for invalid offset #14871

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

rintaro
Copy link
Member

@rintaro rintaro commented Feb 28, 2018

Cherry-pick of #14803 for swift-5.0-branch

Invalid offset used to cause a inifinite loop in Lexer in some race
condition.

This is a quick fix until we fix underlying problem in SourceKit.

Invalid offset used to cause a inifinite loop in Lexer in some race
condition.

This is a quick fix until we fix underlying problem in SourceKit.
@rintaro
Copy link
Member Author

rintaro commented Feb 28, 2018

@swift-ci Please smoke test

@rintaro rintaro merged commit 7c48bea into swiftlang:swift-5.0-branch Feb 28, 2018
@rintaro rintaro deleted the 5.0-sourcekit-offset-guard branch February 28, 2018 02:08
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.

1 participant